diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-06-04 23:47:24 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-05 00:10:56 +0300 |
commit | 6b6ae7c3ead5dee786a4aea929820076a7c82da4 (patch) | |
tree | e494a4a161a548de144846697b9d94d35321cf97 /libavcodec | |
parent | 3c803ed9cb23e5a8d76b6c31d8a8c71cac27e769 (diff) |
avcodec/atrac3plusdec: consume only as many bytes as available
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/atrac3plusdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/atrac3plusdec.c b/libavcodec/atrac3plusdec.c index f858497d46..b4437f1a92 100644 --- a/libavcodec/atrac3plusdec.c +++ b/libavcodec/atrac3plusdec.c @@ -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 = { |