Commit 013ceab3 authored by jbr's avatar jbr

flacdec: Handle 32 bps data when checking allocated size.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17814 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 622ca5a3
......@@ -545,7 +545,7 @@ static int decode_frame(FLACContext *s, int alloc_data_size)
return -1;
}
if (blocksize * s->channels * sizeof(int16_t) > alloc_data_size)
if (blocksize * s->channels * (s->is32 ? 4 : 2) > alloc_data_size)
return -1;
if (sample_rate_code == 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