[FFmpeg-cvslog] r17814 - trunk/libavcodec/flacdec.c
jbr
subversion
Thu Mar 5 00:16:33 CET 2009
Author: jbr
Date: Thu Mar 5 00:16:30 2009
New Revision: 17814
Log:
flacdec: Handle 32 bps data when checking allocated size.
Modified:
trunk/libavcodec/flacdec.c
Modified: trunk/libavcodec/flacdec.c
==============================================================================
--- trunk/libavcodec/flacdec.c Thu Mar 5 00:10:40 2009 (r17813)
+++ trunk/libavcodec/flacdec.c Thu Mar 5 00:16:30 2009 (r17814)
@@ -545,7 +545,7 @@ static int decode_frame(FLACContext *s,
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)
More information about the ffmpeg-cvslog
mailing list