matroskaenc: write correct Display{Width, Height} in stereo encoding
authorVittorio Giovara <vittorio.giovara@gmail.com>
Wed, 22 Oct 2014 13:36:32 +0000 (14:36 +0100)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Mon, 12 Jan 2015 23:05:13 +0000 (00:05 +0100)
commitbae05e5326703dad3bfe0ed5b31ba73ee9254515
treed615ad2261b06fbcfdcccce486966ca75d549683
parent26ba78adacd8469fca97c8c833e2e6364b13b7c8
matroskaenc: write correct Display{Width, Height} in stereo encoding

should be the raw amount of pixels (for example 3840x1080 for full HD side by
side) and the DisplayWidth/Height in pixels should be the amount of pixels for
one plane (1920x1080 for that full HD stream)."

So, move the aspect ratio check in the mkv_write_stereo_mode() function
and always write the embl when stereo format and/or aspect ration is set.
Also add a few comments to that function.

CC: libav-stable@libav.org
Found-by: Asan Usipov <asan.usipov@gmail.com>
libavformat/matroskaenc.c