diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-08-05 09:45:29 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-08-05 09:46:04 +0200 |
commit | 48af87819a035816f2fd0270d4ac3e54143a86a2 (patch) | |
tree | 3ad09422030b2ecd157eb660076857cdbbd94003 | |
parent | 783c674da7da4335b75c23809774161e4ac4398d (diff) | |
parent | 71953ebcf94fe4ef316cdad1f276089205dd1d65 (diff) | |
download | ffmpeg-48af87819a035816f2fd0270d4ac3e54143a86a2.tar.gz |
Merge commit '71953ebcf94fe4ef316cdad1f276089205dd1d65'
* commit '71953ebcf94fe4ef316cdad1f276089205dd1d65':
aac: Check init_get_bits return value
Conflicts:
libavcodec/aacdec.c
See: 73abc3a634d84e4cc8951787323b594c5476e4a8
Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/aacdec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c index 1bdc22d5c5..e54d4cd584 100644 --- a/libavcodec/aacdec.c +++ b/libavcodec/aacdec.c @@ -2766,7 +2766,8 @@ static int aac_decode_frame(AVCodecContext *avctx, void *data, if (INT_MAX / 8 <= buf_size) return AVERROR_INVALIDDATA; - init_get_bits(&gb, buf, buf_size * 8); + if ((err = init_get_bits(&gb, buf, buf_size * 8)) < 0) + return err; if ((err = aac_decode_frame_int(avctx, data, got_frame_ptr, &gb, avpkt)) < 0) return err; |