projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13db875
)
Use the output data type to determine the maximum number of samples that can be
author
Justin Ruggles
<justin.ruggles@gmail.com>
Fri, 28 Aug 2009 00:57:00 +0000
(
00:57
+0000)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Fri, 28 Aug 2009 00:57:00 +0000
(
00:57
+0000)
decoded.
Originally committed as revision 19736 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/libspeexdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/libspeexdec.c
b/libavcodec/libspeexdec.c
index
82b83b8
..
4241de2
100644
(file)
--- 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);