mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-27 01:42:20 +00:00
swr: check count argument of realloc_audio()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
50858a64bf
commit
a645049bd8
@ -344,6 +344,9 @@ static int realloc_audio(AudioData *a, int count){
|
||||
int i, countb;
|
||||
AudioData old;
|
||||
|
||||
if(count < 0 || count > INT_MAX/2/a->bps/a->ch_count)
|
||||
return AVERROR(EINVAL);
|
||||
|
||||
if(a->count >= count)
|
||||
return 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user