[FFmpeg-cvslog] twinvq: consume block_align+1 packets as full ones

Kostya Shishkov git at videolan.org
Thu Nov 14 16:15:12 CET 2013


ffmpeg | branch: master | Kostya Shishkov <kostya.shishkov at gmail.com> | Sun Oct 20 16:30:54 2013 +0200| [669fe505952f3d8175b1ad6971033a8e8120523b] | committer: Diego Biurrun

twinvq: consume block_align+1 packets as full ones

They can be produced by VQF.

Signed-off-by: Diego Biurrun <diego at biurrun.de>

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

 libavcodec/twinvq.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/twinvq.c b/libavcodec/twinvq.c
index 4f79679..bc0205b 100644
--- a/libavcodec/twinvq.c
+++ b/libavcodec/twinvq.c
@@ -523,6 +523,9 @@ int ff_twinvq_decode_frame(AVCodecContext *avctx, void *data,
 
     *got_frame_ptr = 1;
 
+    // VQF can deliver packets 1 byte greater than block align
+    if (buf_size == avctx->block_align + 1)
+        return buf_size;
     return avctx->block_align;
 }
 



More information about the ffmpeg-cvslog mailing list