[FFmpeg-cvslog] r19736 - trunk/libavcodec/libspeexdec.c
jbr
subversion
Fri Aug 28 02:57:00 CEST 2009
Author: jbr
Date: Fri Aug 28 02:57:00 2009
New Revision: 19736
Log:
Use the output data type to determine the maximum number of samples that can be
decoded.
Modified:
trunk/libavcodec/libspeexdec.c
Modified: trunk/libavcodec/libspeexdec.c
==============================================================================
--- trunk/libavcodec/libspeexdec.c Fri Aug 28 02:46:19 2009 (r19735)
+++ trunk/libavcodec/libspeexdec.c Fri Aug 28 02:57:00 2009 (r19736)
@@ -101,7 +101,7 @@ static int libspeex_decode_frame(AVCodec
int i, num_samples;
num_samples = s->header->frame_size * avctx->channels;
- end = output + *data_size/2;
+ end = output + *data_size / sizeof(*output);
speex_bits_read_from(&s->bits, buf, buf_size);
More information about the ffmpeg-cvslog
mailing list