Commit a645049b authored by Michael Niedermayer's avatar Michael Niedermayer

swr: check count argument of realloc_audio()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 50858a64
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment