diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2013-10-20 16:30:54 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-11-14 13:38:10 +0100 |
commit | 669fe505952f3d8175b1ad6971033a8e8120523b (patch) | |
tree | ee0c14c0f7943607edc9b7b7a0f7e93d9e978c58 /libavcodec | |
parent | 1afa8a7568ba57ad0cd2923f6e641e10d32cded4 (diff) | |
download | ffmpeg-669fe505952f3d8175b1ad6971033a8e8120523b.tar.gz |
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')
-rw-r--r-- | libavcodec/twinvq.c | 3 |
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; } |