From 7332adddaedb155f5f5fcffa0f9dc2452a29d65b Mon Sep 17 00:00:00 2001 From: David Conrad Date: Wed, 5 Sep 2007 00:24:15 +0000 Subject: [PATCH] Write the display size elements Originally committed as revision 10342 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/matroskaenc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 3daaa96556..a0577cbfa1 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -476,7 +476,10 @@ static int mkv_write_tracks(AVFormatContext *s) // XXX: interlace flag? put_ebml_uint (pb, MATROSKA_ID_VIDEOPIXELWIDTH , codec->width); put_ebml_uint (pb, MATROSKA_ID_VIDEOPIXELHEIGHT, codec->height); - // XXX: display width/height + if (codec->sample_aspect_ratio.num) { + put_ebml_uint(pb, MATROSKA_ID_VIDEODISPLAYWIDTH , codec->sample_aspect_ratio.num); + put_ebml_uint(pb, MATROSKA_ID_VIDEODISPLAYHEIGHT, codec->sample_aspect_ratio.den); + } end_ebml_master(pb, subinfo); break;