aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ffv1.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-07-16 15:41:17 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-07-16 15:48:04 +0200
commitb0d674ec1063484de4df9594ad409021350adef3 (patch)
treeef037a9e65e1115032fbe3ff81115d7cf0dca46c /libavcodec/ffv1.c
parentf5af3568f6408b559a6f97c09a376a27f36ccfb8 (diff)
downloadandroid_external_ffmpeg-b0d674ec1063484de4df9594ad409021350adef3.tar.gz
android_external_ffmpeg-b0d674ec1063484de4df9594ad409021350adef3.tar.bz2
android_external_ffmpeg-b0d674ec1063484de4df9594ad409021350adef3.zip
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.c3
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*));