From 669fe505952f3d8175b1ad6971033a8e8120523b Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sun, 20 Oct 2013 16:30:54 +0200 Subject: twinvq: consume block_align+1 packets as full ones They can be produced by VQF. Signed-off-by: Diego Biurrun --- libavcodec/twinvq.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavcodec/twinvq.c') diff --git a/libavcodec/twinvq.c b/libavcodec/twinvq.c index 4f79679c21..bc0205bc55 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; } -- cgit v1.2.3