This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
flacdec: Handle 32 bps data when checking allocated size.
Originally committed as revision 17814 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Justin Ruggles
16 years ago
parent
a3d2379bdd
commit
549bccdbe4
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libavcodec/flacdec.c
+ 1
- 1
libavcodec/flacdec.c
View File
@@ -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)
Write
Preview
Loading…
Cancel
Save