ffv1dec: set the first slices bytestream end correctly
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 16 Jul 2012 13:41:17 +0000 (15:41 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 16 Jul 2012 13:48:04 +0000 (15:48 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/ffv1.c

index f03ea8e..41c27ce 100644 (file)
@@ -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*));