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

aurel subversion
Wed Jul 14 21:36:14 CEST 2010


Author: aurel
Date: Wed Jul 14 21:36:14 2010
New Revision: 24239

Log:
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.

Modified:
   trunk/libavformat/matroskaenc.c

Modified: trunk/libavformat/matroskaenc.c
==============================================================================
--- trunk/libavformat/matroskaenc.c	Wed Jul 14 19:28:40 2010	(r24238)
+++ trunk/libavformat/matroskaenc.c	Wed Jul 14 21:36:14 2010	(r24239)
@@ -603,6 +603,7 @@ static int mkv_write_tracks(AVFormatCont
                     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;



More information about the ffmpeg-cvslog mailing list