[FFmpeg-devel] [PATCH] mov: Skip computing SAR from invalid display matrix elements
Vittorio Giovara
vittorio.giovara at gmail.com
Tue Apr 6 02:16:56 EEST 2021
On Tue, Mar 30, 2021 at 6:55 PM Vittorio Giovara <vittorio.giovara at gmail.com>
wrote:
> Hello,
> I was debugging an issue with a video file containing an invalid
> display matrix, probably produced by a non conforming software.
>
> The content of the matrix is:
> 00000000: 0 65536 0
> 00000001: -1 0 0
> 00000002: 0 0 1073741824
>
> The -1 (stored as 4294967295) was probably a 1 shifted 32 times instead
> of 16. The problem is that this value is bypassing the validation check
> in the code below, and the resulting computed SAR value becomes 1:65536.
>
> This change interprets extremely low entries as invalid and makes sure
> to skip them in the SAR computation. This passes fate, but I haven't been
> able to test this extensively.
> Please see the attached patch, any feedback or better solution is welcome.
>
Hi,
in case of no objections, I'd push this patch tomorrow, and send the
discussed patchset to the mailing list right after.
Thanks
--
Vittorio
More information about the ffmpeg-devel
mailing list