Mercurial > libavcodec.hg
changeset 10111:ebe5812b39a7 libavcodec
Use the output data type to determine the maximum number of samples that can be
decoded.
author | jbr |
---|---|
date | Fri, 28 Aug 2009 00:57:00 +0000 |
parents | 4186efb86933 |
children | e3fc952dd4b2 |
files | libspeexdec.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libspeexdec.c Fri Aug 28 00:44:54 2009 +0000 +++ b/libspeexdec.c Fri Aug 28 00:57:00 2009 +0000 @@ -101,7 +101,7 @@ 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);