[FFmpeg-cvslog] avformat/matroskaenc: don' t write DisplayUnit with value Unknown on WebM files
James Almer
git at videolan.org
Wed Feb 22 02:16:21 EET 2017
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Tue Feb 21 21:14:17 2017 -0300| [1ad60e4e70ecc71b1301bdc041fa133129338393] | committer: James Almer
avformat/matroskaenc: don't write DisplayUnit with value Unknown on WebM files
Value 4 (Unknown) is for the time being part of the Matroska spec but not
supported by WebM
Addresses ticket #6176
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1ad60e4e70ecc71b1301bdc041fa133129338393
---
libavformat/matroskaenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index d19646c..7cb8893 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -1258,7 +1258,7 @@ static int mkv_write_track(AVFormatContext *s, MatroskaMuxContext *mkv,
} else if (display_width_div != 1 || display_height_div != 1) {
put_ebml_uint(pb, MATROSKA_ID_VIDEODISPLAYWIDTH , par->width / display_width_div);
put_ebml_uint(pb, MATROSKA_ID_VIDEODISPLAYHEIGHT, par->height / display_height_div);
- } else
+ } else if (mkv->mode != MODE_WEBM)
put_ebml_uint(pb, MATROSKA_ID_VIDEODISPLAYUNIT, MATROSKA_VIDEO_DISPLAYUNIT_UNKNOWN);
if (par->codec_id == AV_CODEC_ID_RAWVIDEO) {
More information about the ffmpeg-cvslog
mailing list