avcodec/vqavideo: reset accounting on error
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 19 Dec 2021 21:26:00 +0000 (22:26 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 23 Dec 2021 14:22:06 +0000 (15:22 +0100)
commitd8ea7a67ba62f5d4520e75e56b9954d80e7ff223
tree0fbddaa847f1a9de6299491e5169deb9accf666f
parent60ead5cd68586d25bd6a0c285907f72b8a2534bf
avcodec/vqavideo: reset accounting on error

Fixes: Timeout (same growing chunk is decoded to failure repeatedly)
Fixes: 42582/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VQA_fuzzer-6531195591065600

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/vqavideo.c