Mercurial > libavformat.hg
changeset 2473:e7a1cf0b0693 libavformat
Write the display size elements
author | conrad |
---|---|
date | Wed, 05 Sep 2007 00:24:15 +0000 |
parents | 0c66ab2e0b43 |
children | f2a36975b73b |
files | matroskaenc.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/matroskaenc.c Wed Sep 05 00:24:12 2007 +0000 +++ b/matroskaenc.c Wed Sep 05 00:24:15 2007 +0000 @@ -476,7 +476,10 @@ // 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;