[FFmpeg-soc] [soc]: r656 - matroska/matroskaenc.c
conrad
subversion at mplayerhq.hu
Fri Aug 10 01:37:12 CEST 2007
Author: conrad
Date: Fri Aug 10 01:37:12 2007
New Revision: 656
Log:
Write the display size elements
Modified:
matroska/matroskaenc.c
Modified: matroska/matroskaenc.c
==============================================================================
--- matroska/matroskaenc.c (original)
+++ matroska/matroskaenc.c Fri Aug 10 01:37:12 2007
@@ -476,7 +476,10 @@ static int mkv_write_tracks(AVFormatCont
// 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;
More information about the FFmpeg-soc
mailing list