X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fvp56rac.c;h=64fb6a99b4fb0930e461e99b0bf5b01d065d81a2;hb=d7e0d428faaa04e2fd850eca82f314ca2ad3dfe5;hp=e70302bf856da9771830ff5fcc64f2891613461c;hpb=27e30c73d722ec13e59753dea91be00859c72bf2;p=ffmpeg diff --git a/libavcodec/vp56rac.c b/libavcodec/vp56rac.c index e70302bf856..64fb6a99b4f 100644 --- a/libavcodec/vp56rac.c +++ b/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);