diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c index f03ea8ea1b..41c27cea06 100644 --- a/libavcodec/ffv1.c +++ b/libavcodec/ffv1.c @@ -2038,7 +2038,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac if(i){ ff_init_range_decoder(&fs->c, buf_p, v); - } + }else + fs->c.bytestream_end = buf_p + v; } avctx->execute(avctx, decode_slice, &f->slice_context[0], NULL, f->slice_count, sizeof(void*));