• Derek Buitenhuis's avatar
    lavc/ffv1: Properly check that the 4th and 5th quant tables are zeroes · a2d35111
    Derek Buitenhuis authored
    Currently, the decoder checks the 128th value of the 4th quant table during
    while deriving the context on each sample, in order to speed itself up. This
    is due to relying on the behavior of FFmpeg's FFV1 encoder, in which if that
    value is zero, the entire 4th and 5th quant tables are assumed to be entirely
    zero.
    
    This does not match the FFV1 spec, which has no such restriction, and after
    some discussion, it was decided to fix FFmpeg to abide by the spec, rather
    than change the spec.
    
    We will now check whether the 4th and 5th quant tables are zero properly,
    by checking the 128th valye of both tables (which means they are zero due
    to the way they're coded in the bitstream).
    
    For further context, the FFV1 issue in question is located at:
    
        https://github.com/FFmpeg/FFV1/issues/169Signed-off-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
    a2d35111
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...