summaryrefslogtreecommitdiff
path: root/libavcodec/twinvq.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2013-10-20 16:30:54 +0200
committerDiego Biurrun <diego@biurrun.de>2013-11-14 13:38:10 +0100
commit669fe505952f3d8175b1ad6971033a8e8120523b (patch)
treeee0c14c0f7943607edc9b7b7a0f7e93d9e978c58 /libavcodec/twinvq.c
parent1afa8a7568ba57ad0cd2923f6e641e10d32cded4 (diff)
twinvq: consume block_align+1 packets as full ones
They can be produced by VQF. Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libavcodec/twinvq.c')
-rw-r--r--libavcodec/twinvq.c3
1 files changed, 3 insertions, 0 deletions
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;
}