diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2009-08-28 00:57:00 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2009-08-28 00:57:00 +0000 |
commit | 5c3b5e3053d89365f08dbc7621a61d22edea9a49 (patch) | |
tree | d2501ab41bddffe00bb34c24e1dd3cb7105b34b2 /libavcodec/libspeexdec.c | |
parent | 13db8750bb109e21ec46365637b8ab05ffc98ab2 (diff) | |
download | ffmpeg-5c3b5e3053d89365f08dbc7621a61d22edea9a49.tar.gz |
Use the output data type to determine the maximum number of samples that can be
decoded.
Originally committed as revision 19736 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/libspeexdec.c')
-rw-r--r-- | libavcodec/libspeexdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |