OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b736a36
)
simplify
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 7 Apr 2007 21:30:19 +0000
(21:30 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 7 Apr 2007 21:30:19 +0000
(21:30 +0000)
Originally committed as revision 8655 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/adpcm.c
patch
|
blob
|
history
diff --git
a/libavcodec/adpcm.c
b/libavcodec/adpcm.c
index
085d1a1
..
d24acbc
100644
(file)
--- a/
libavcodec/adpcm.c
+++ b/
libavcodec/adpcm.c
@@
-1332,10
+1332,8
@@
static int adpcm_decode_frame(AVCodecContext *avctx,
table[0][i] = get_sbits(&gb, 16);
/* Initialize the previous sample. */
- for (ch = 0; ch < 2; ch++) {
- prev[ch][0] = get_sbits(&gb, 16);
- prev[ch][1] = get_sbits(&gb, 16);
- }
+ for (i = 0; i < 4; i++)
+ prev[0][i] = get_sbits(&gb, 16);
if (samplecnt >= (samples_end - samples) / (st + 1)) {
av_log(avctx, AV_LOG_ERROR, "allocated output buffer is too small\n");