From aff9535f2900a93cbd553dbc59cac1eb2eab295d Mon Sep 17 00:00:00 2001 From: jbr Date: Fri, 28 Aug 2009 00:57:00 +0000 Subject: [PATCH] Use the output data type to determine the maximum number of samples that can be decoded. git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19736 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- libavcodec/libspeexdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/libspeexdec.c b/libavcodec/libspeexdec.c index 82b83b8369..4241de2ab4 100644 --- a/libavcodec/libspeexdec.c +++ b/libavcodec/libspeexdec.c @@ -101,7 +101,7 @@ static int libspeex_decode_frame(AVCodecContext *avctx, 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); -- 2.11.4.GIT