aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-05-13 01:45:29 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-05-13 01:46:05 +0200
commit96cbaaa5481baa020eb0cb6faac83e4c5059b212 (patch)
tree0dd0267af4f06be87c67c15745d9517e61b52b4a
parentafb4632cc30e83287338690c785ebac180436a59 (diff)
downloadffmpeg-96cbaaa5481baa020eb0cb6faac83e4c5059b212.tar.gz
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>
-rw-r--r--libavcodec/rangecoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/rangecoder.c b/libavcodec/rangecoder.c
index d7a2774d27..0bb79c880e 100644
--- a/libavcodec/rangecoder.c
+++ b/libavcodec/rangecoder.c
@@ -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;
}
}