[FFmpeg-cvslog] ffv1dec: set the first slices bytestream end correctly
Michael Niedermayer
git at videolan.org
Mon Jul 16 15:54:07 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Jul 16 15:41:17 2012 +0200| [b0d674ec1063484de4df9594ad409021350adef3] | committer: Michael Niedermayer
ffv1dec: set the first slices bytestream end correctly
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b0d674ec1063484de4df9594ad409021350adef3
---
libavcodec/ffv1.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c
index f03ea8e..41c27ce 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*));
More information about the ffmpeg-cvslog
mailing list