OSDN Git Service

avformat/matroskaenc: use display aspect ratio for DisplayWidth and DisplayHeight...
authorJames Almer <jamrial@gmail.com>
Sat, 22 Oct 2016 18:56:28 +0000 (15:56 -0300)
committerJames Almer <jamrial@gmail.com>
Wed, 2 Nov 2016 20:08:38 +0000 (17:08 -0300)
commit5cb57131d3bb2422858467828a5763646f004bbe
treed5db3ec2b8b2eaee315e05886ceeb5b4313543d3
parentbab6b606752e5ba93f9d2d1b71f264dc8e3031b3
avformat/matroskaenc: use display aspect ratio for DisplayWidth and DisplayHeight when possible

This avoids potential rounding errors and guarantees the source aspect
ratio is preserved.
Keep writing pixel values when Stereo 3D Mode is enabled and for WebM,
as the format doesn't support anything else.

This fixes ticket #5743, implementing the suggestion from ticket #5903.

Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/matroskaenc.c