[FFmpeg-cvslog] avcodec/twinvq: return the actual number of consumed bytes

Michael Niedermayer git at videolan.org
Fri Oct 25 17:47:03 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Oct 25 17:25:26 2013 +0200| [2e7a1fdd6d51aec59931ce7b278b12faa66f98fd] | committer: Michael Niedermayer

avcodec/twinvq: return the actual number of consumed bytes

Fixes Ticket2980

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2e7a1fdd6d51aec59931ce7b278b12faa66f98fd
---

 libavcodec/twinvq.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/twinvq.c b/libavcodec/twinvq.c
index 00b423d..e7ade93 100644
--- a/libavcodec/twinvq.c
+++ b/libavcodec/twinvq.c
@@ -512,7 +512,7 @@ int ff_twinvq_decode_frame(AVCodecContext *avctx, void *data,
 
     *got_frame_ptr = 1;
 
-    return avctx->block_align;
+    return ret;
 }
 
 /**



More information about the ffmpeg-cvslog mailing list