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:
e935fa9
)
remove unneeded assignment in inner loop. rematrixing bands are contiguous.
author
Justin Ruggles
<justin.ruggles@gmail.com>
Wed, 30 Sep 2009 01:09:57 +0000
(
01:09
+0000)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Wed, 30 Sep 2009 01:09:57 +0000
(
01:09
+0000)
Originally committed as revision 20089 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/ac3dec.c
patch
|
blob
|
history
diff --git
a/libavcodec/ac3dec.c
b/libavcodec/ac3dec.c
index 85c60241edd32c71ace70b8f1dc4a74822306981..dd97d116cd198f4e8f02fab7ac82ea196ca44dd6 100644
(file)
--- a/
libavcodec/ac3dec.c
+++ b/
libavcodec/ac3dec.c
@@
-608,10
+608,11
@@
static void do_rematrixing(AC3DecodeContext *s)
end = FFMIN(s->end_freq[1], s->end_freq[2]);
+ i = ff_ac3_rematrix_band_tab[0];
for(bnd=0; bnd<s->num_rematrixing_bands; bnd++) {
if(s->rematrixing_flags[bnd]) {
bndend = FFMIN(end, ff_ac3_rematrix_band_tab[bnd+1]);
- for(
i=ff_ac3_rematrix_band_tab[bnd]
; i<bndend; i++) {
+ for(; i<bndend; i++) {
tmp0 = s->fixed_coeffs[1][i];
tmp1 = s->fixed_coeffs[2][i];
s->fixed_coeffs[1][i] = tmp0 + tmp1;