avcodec/twinvq: return the actual number of consumed bytes
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 25 Oct 2013 15:25:26 +0000 (17:25 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 25 Oct 2013 15:25:26 +0000 (17:25 +0200)
Fixes Ticket2980

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/twinvq.c

index 00b423d..e7ade93 100644 (file)
@@ -512,7 +512,7 @@ int ff_twinvq_decode_frame(AVCodecContext *avctx, void *data,
 
     *got_frame_ptr = 1;
 
-    return avctx->block_align;
+    return ret;
 }
 
 /**