diff options
author | David Conrad <lessen42@gmail.com> | 2007-09-05 00:24:15 +0000 |
---|---|---|
committer | David Conrad <lessen42@gmail.com> | 2007-09-05 00:24:15 +0000 |
commit | 7332adddaedb155f5f5fcffa0f9dc2452a29d65b (patch) | |
tree | 59d529b19e1c2b8fd5399f87a256e6052bc98489 /libavformat/matroskaenc.c | |
parent | d1a8d959fd15a7b6bd59337d692e7447703d7191 (diff) | |
download | ffmpeg-7332adddaedb155f5f5fcffa0f9dc2452a29d65b.tar.gz |
Write the display size elements
Originally committed as revision 10342 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/matroskaenc.c')
-rw-r--r-- | libavformat/matroskaenc.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; |