mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-19 22:10:34 +00:00
Write the display size elements
Originally committed as revision 10342 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
d1a8d959fd
commit
7332adddae
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user