]> git.sesse.net Git - ffmpeg/commit
avcodec/vp6: select idct based (loosely) on number of coefficients decoded
authorPeter Ross <pross@xvid.org>
Sun, 13 Jan 2019 04:45:07 +0000 (15:45 +1100)
committerPeter Ross <pross@xvid.org>
Sat, 26 Jan 2019 12:49:09 +0000 (23:49 +1100)
commitd8ebfd1bdf7e2c47af3eb057b97de5b7fe854e35
tree381ef5658380b185ae2b25af9f3e864cf33f4f81
parent160ebe0a8d780f6db7c18e824d8ec6f437da33a2
avcodec/vp6: select idct based (loosely) on number of coefficients decoded

The VP3/4/5/6 reference decoders all use three IDCT versions: one for the
DC-only case, another for blocks with more than 10 coefficients, and an
optimised one for blocks with up to 10 AC coefficents. VP6 relies on the
sparse 10 coefficient version, and without it, IDCT drift occurs.

Fixes: https://trac.ffmpeg.org/ticket/1282
Signed-off-by: Peter Ross <pross@xvid.org>
libavcodec/vp5.c
libavcodec/vp56.c
libavcodec/vp56.h
libavcodec/vp6.c
tests/ref/fate/vp6a
tests/ref/fate/vp6a-skip_alpha