summaryrefslogtreecommitdiff
path: root/libavcodec/twinvq.c
diff options
context:
space:
mode:
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;
}