[SCM] libav/experimental: remove unneeded assignment in inner loop. rematrixing bands are contiguous.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:52:11 UTC 2013


The following commit has been merged in the experimental branch:
commit 16c91d2b233fe04697ba8f7ab6d1bad12a4ad69f
Author: Justin Ruggles <justin.ruggles at gmail.com>
Date:   Wed Sep 30 01:09:57 2009 +0000

    remove unneeded assignment in inner loop. rematrixing bands are contiguous.
    
    Originally committed as revision 20089 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
index 85c6024..dd97d11 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; 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;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list