diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2010-07-14 19:36:14 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2010-07-14 19:36:14 +0000 |
commit | d00a351606dde58afbfb47041cc97f3139d4cd2f (patch) | |
tree | 5c9dc47be5db4974e2356baa5214d26eaeb7d967 /libavformat/matroskaenc.c | |
parent | b834becdaed1019d926a957628ecd54a69694cb4 (diff) | |
download | ffmpeg-d00a351606dde58afbfb47041cc97f3139d4cd2f.tar.gz |
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
Diffstat (limited to 'libavformat/matroskaenc.c')
-rw-r--r-- | libavformat/matroskaenc.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |