diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-07-16 17:41:17 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-07-16 17:48:04 +0400 |
commit | b0d674ec1063484de4df9594ad409021350adef3 (patch) | |
tree | ef037a9e65e1115032fbe3ff81115d7cf0dca46c /libavcodec/ffv1.c | |
parent | f5af3568f6408b559a6f97c09a376a27f36ccfb8 (diff) |
ffv1dec: set the first slices bytestream end correctly
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ffv1.c')
-rw-r--r-- | libavcodec/ffv1.c | 3 |
1 files changed, 2 insertions, 1 deletions
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*)); |