Module: libav
Branch: master
Commit: 669fe505952f3d8175b1ad6971033a8e8120523b

Author:    Kostya Shishkov <[email protected]>
Committer: Diego Biurrun <[email protected]>
Date:      Sun Oct 20 16:30:54 2013 +0200

twinvq: consume block_align+1 packets as full ones

They can be produced by VQF.

Signed-off-by: Diego Biurrun <[email protected]>

---

 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;
 }
 

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to