From d00a351606dde58afbfb47041cc97f3139d4cd2f Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Wed, 14 Jul 2010 19:36:14 +0000 Subject: [PATCH] matroskaenc: write DisplayUnit element to better match the spec This makes it clear that we are specifying the aspect ratio, and not the intended display size in pixels. Originally committed as revision 24239 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/matroskaenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index d906662b95..f275d44e55 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -603,6 +603,7 @@ static int mkv_write_tracks(AVFormatContext *s) int d_width = codec->width*av_q2d(st->sample_aspect_ratio); put_ebml_uint(pb, MATROSKA_ID_VIDEODISPLAYWIDTH , d_width); put_ebml_uint(pb, MATROSKA_ID_VIDEODISPLAYHEIGHT, codec->height); + put_ebml_uint(pb, MATROSKA_ID_VIDEODISPLAYUNIT, 3); } end_ebml_master(pb, subinfo); break;