OSDN Git Service

mov: Check angle rather than full matrix when updating SAR
authorVittorio Giovara <vittorio.giovara@gmail.com>
Fri, 9 Jan 2015 10:24:22 +0000 (11:24 +0100)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Wed, 14 Jan 2015 16:17:23 +0000 (17:17 +0100)
commitcf70ba37ba74089a18295b29e77dead0a3222c9e
treeb3d19bd0e53f921f157cfb7e45d7c59a4f56ee1f
parent1e763454322f7fbc7799f6009bf2e11d7a3b9821
mov: Check angle rather than full matrix when updating SAR

When the display matrix is not the identity one, but the rotation angle
is zero, there is no need to update the sample aspect ratio.

Otherwise, it is possible to obtain negative values which interferes
with transcoding in later stages. This kind of behaviour is reproducible
on mov files with "major_brand: MSNV".

CC: libav-stable@libav.org
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
libavformat/mov.c