You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-30 22:24:04 +02:00
avcodec/diracdec: Propagate errors from dirac_get_arith_uint()
Testcase: 11663/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DIRAC_fuzzer-5636791864918016 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@ -115,6 +115,7 @@ void ff_dirac_init_arith_decoder(DiracArith *c, GetBitContext *gb, int length)
|
||||
|
||||
c->counter = -16;
|
||||
c->range = 0xffff;
|
||||
c->error = 0;
|
||||
|
||||
for (i = 0; i < DIRAC_CTX_COUNT; i++)
|
||||
c->contexts[i] = 0x8000;
|
||||
|
Reference in New Issue
Block a user