From 16c91d2b233fe04697ba8f7ab6d1bad12a4ad69f Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Wed, 30 Sep 2009 01:09:57 +0000 Subject: [PATCH] remove unneeded assignment in inner loop. rematrixing bands are contiguous. Originally committed as revision 20089 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/ac3dec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c index 85c60241ed..dd97d116cd 100644 --- 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; bndnum_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]; ifixed_coeffs[1][i]; tmp1 = s->fixed_coeffs[2][i]; s->fixed_coeffs[1][i] = tmp0 + tmp1; -- 2.11.0