[FFmpeg-cvslog] r10342 - trunk/libavformat/matroskaenc.c

conrad subversion
Wed Sep 5 02:24:15 CEST 2007


Author: conrad
Date: Wed Sep  5 02:24:15 2007
New Revision: 10342

Log:
Write the display size elements


Modified:
   trunk/libavformat/matroskaenc.c

Modified: trunk/libavformat/matroskaenc.c
==============================================================================
--- trunk/libavformat/matroskaenc.c	(original)
+++ trunk/libavformat/matroskaenc.c	Wed Sep  5 02:24:15 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-cvslog mailing list