avcodec/vcr1: return the actual number of consumed bytes
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 3 Sep 2013 13:44:37 +0000 (15:44 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 3 Sep 2013 13:44:37 +0000 (15:44 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/vcr1.c

index 675ada8..d6b617a 100644 (file)
@@ -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 = {