mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Check sampling index validity for AAC decoding
Patch by Jai Menon ( jmenon86 gmail com ) Originally committed as revision 17131 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
c7efffcb44
commit
f418b86151
@ -1555,6 +1555,10 @@ static int aac_decode_frame(AVCodecContext * avccontext, void * data, int * data
|
||||
av_log(avccontext, AV_LOG_ERROR, "Error decoding AAC frame header.\n");
|
||||
return -1;
|
||||
}
|
||||
if (ac->m4ac.sampling_index > 11) {
|
||||
av_log(ac->avccontext, AV_LOG_ERROR, "invalid sampling rate index %d\n", ac->m4ac.sampling_index);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
// parse
|
||||
|
Loading…
Reference in New Issue
Block a user