mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/rangecoder: Fix range coder corner case handling
Fixes: 1511/clusterfuzz-testcase-minimized-5906663800307712 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
afb4632cc3
commit
96cbaaa548
|
@ -60,7 +60,7 @@ av_cold void ff_init_range_decoder(RangeCoder *c, const uint8_t *buf,
|
|||
c->bytestream += 2;
|
||||
if (c->low >= 0xFF00) {
|
||||
c->low = 0xFF00;
|
||||
c->bytestream_end = c->bytestream + 2;
|
||||
c->bytestream_end = c->bytestream;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue