summaryrefslogtreecommitdiff
path: root/libs/ffvpx/libavcodec/vp56rac.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ffvpx/libavcodec/vp56rac.c')
-rw-r--r--libs/ffvpx/libavcodec/vp56rac.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/ffvpx/libavcodec/vp56rac.c b/libs/ffvpx/libavcodec/vp56rac.c
index e70302bf8..64fb6a99b 100644
--- a/libs/ffvpx/libavcodec/vp56rac.c
+++ b/libs/ffvpx/libavcodec/vp56rac.c
@@ -43,6 +43,7 @@ int ff_vp56_init_range_decoder(VP56RangeCoder *c, const uint8_t *buf, int buf_si
c->bits = -16;
c->buffer = buf;
c->end = buf + buf_size;
+ c->end_reached = 0;
if (buf_size < 1)
return AVERROR_INVALIDDATA;
c->code_word = bytestream_get_be24(&c->buffer);