[FFmpeg-cvslog] alac: remove unneeded conditionals in predictor_decompress_fir_adapt()

Justin Ruggles git at videolan.org
Thu Jul 19 23:35:51 CEST 2012


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Mon Jul  9 11:07:57 2012 -0400| [79def4c523a1ebb4222c79f5dbf054d7bb4a5f01] | committer: Justin Ruggles

alac: remove unneeded conditionals in predictor_decompress_fir_adapt()

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=79def4c523a1ebb4222c79f5dbf054d7bb4a5f01
---

 libavcodec/alac.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/libavcodec/alac.c b/libavcodec/alac.c
index 483346c..027e094 100644
--- a/libavcodec/alac.c
+++ b/libavcodec/alac.c
@@ -199,7 +199,6 @@ static void predictor_decompress_fir_adapt(int32_t *error_buffer,
     }
 
     /* read warm-up samples */
-    if (predictor_coef_num > 0)
         for (i = 0; i < predictor_coef_num; i++) {
             int32_t val;
 
@@ -211,7 +210,6 @@ static void predictor_decompress_fir_adapt(int32_t *error_buffer,
     /* NOTE: 4 and 8 are very common cases that could be optimized. */
 
     /* general case */
-    if (predictor_coef_num > 0) {
         for (i = predictor_coef_num + 1; i < output_size; i++) {
             int j;
             int sum = 0;
@@ -266,7 +264,6 @@ static void predictor_decompress_fir_adapt(int32_t *error_buffer,
 
             buffer_out++;
         }
-    }
 }
 
 static void decorrelate_stereo(int32_t *buffer[MAX_CHANNELS],



More information about the ffmpeg-cvslog mailing list