mirror of https://git.ffmpeg.org/ffmpeg.git
twinvq: consume block_align+1 packets as full ones
They can be produced by VQF. Signed-off-by: Diego Biurrun <diego@biurrun.de>
This commit is contained in:
parent
1afa8a7568
commit
669fe50595
|
@ -523,6 +523,9 @@ int ff_twinvq_decode_frame(AVCodecContext *avctx, void *data,
|
||||||
|
|
||||||
*got_frame_ptr = 1;
|
*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;
|
return avctx->block_align;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue