mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-20 06:20:40 +00:00
aacdec: Fix null pointer crash
Fixes bug170 Bug found by: Gautam Gupta Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
4d70023a2a
commit
f37b2d5a68
@ -82,6 +82,9 @@ int avpriv_mpeg4audio_get_config(MPEG4AudioConfig *c, const uint8_t *buf,
|
||||
GetBitContext gb;
|
||||
int specific_config_bitindex;
|
||||
|
||||
if(bit_size<=0)
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
||||
init_get_bits(&gb, buf, bit_size);
|
||||
c->object_type = get_object_type(&gb);
|
||||
c->sample_rate = get_sample_rate(&gb, &c->sampling_index);
|
||||
|
Loading…
Reference in New Issue
Block a user