Skip to content
Snippets Groups Projects
Commit 549bccdb authored by Justin Ruggles's avatar Justin Ruggles
Browse files

flacdec: Handle 32 bps data when checking allocated size.

Originally committed as revision 17814 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent a3d2379b
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment