Commit 6b6ae7c3 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/atrac3plusdec: consume only as many bytes as available

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3c803ed9
......@@ -384,7 +384,7 @@ static int atrac3p_decode_frame(AVCodecContext *avctx, void *data,
*got_frame_ptr = 1;
return avctx->block_align;
return FFMIN(avctx->block_align, avpkt->size);
}
AVCodec ff_atrac3p_decoder = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment