From a4e70918316c6d1423e559aad15823a5e0453fcf Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 3 Sep 2013 15:44:37 +0200 Subject: [PATCH] avcodec/vcr1: return the actual number of consumed bytes Signed-off-by: Michael Niedermayer --- libavcodec/vcr1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/vcr1.c b/libavcodec/vcr1.c index 675ada87e4..d6b617a11e 100644 --- a/libavcodec/vcr1.c +++ b/libavcodec/vcr1.c @@ -123,7 +123,7 @@ static int vcr1_decode_frame(AVCodecContext *avctx, void *data, *got_frame = 1; - return buf_size; + return bytestream - avpkt->data; } AVCodec ff_vcr1_decoder = {