aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/twinvq.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-11-14 16:01:57 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-11-14 16:02:11 +0100
commit726566704f3258b1f4b9fbe2bcb69e1fe752ed09 (patch)
treea8b92e14540a5ce95ae31d1cae73eae49e5d425f /libavcodec/twinvq.c
parenta24aef5dfa5117008c74ee2149346eebe325349d (diff)
parent669fe505952f3d8175b1ad6971033a8e8120523b (diff)
downloadffmpeg-726566704f3258b1f4b9fbe2bcb69e1fe752ed09.tar.gz
Merge commit '669fe505952f3d8175b1ad6971033a8e8120523b'
* commit '669fe505952f3d8175b1ad6971033a8e8120523b': twinvq: consume block_align+1 packets as full ones Conflicts: libavcodec/twinvq.c See: 2e7a1fdd6d51aec59931ce7b278b12faa66f98fd Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/twinvq.c')
-rw-r--r--libavcodec/twinvq.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/twinvq.c b/libavcodec/twinvq.c
index 66def84543..31fefa4cf9 100644
--- a/libavcodec/twinvq.c
+++ b/libavcodec/twinvq.c
@@ -521,7 +521,10 @@ int ff_twinvq_decode_frame(AVCodecContext *avctx, void *data,
*got_frame_ptr = 1;
- return ret;
+ // VQF can deliver packets 1 byte greater than block align
+ if (buf_size == avctx->block_align + 1)
+ return buf_size;
+ return avctx->block_align;
}
/**