[FFmpeg-cvslog] avcodec/mips: Fix a warnning of indentation not reflect the block structure.

Shiyou Yin git at videolan.org
Tue Sep 10 18:23:14 EEST 2019


ffmpeg | branch: master | Shiyou Yin <yinshiyou-hf at loongson.cn> | Mon Sep  9 11:50:51 2019 +0800| [de5543d8d442759093c0e0e8beeea1e7a3ff0333] | committer: Michael Niedermayer

avcodec/mips: Fix a warnning of indentation not reflect the block structure.

The indentation of code dose not reflect the if block structure in
'apply_ltp_mips', and this will generate a warnning when build with
'-Wall' or '-Wmisleading-indentation'.

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 libavcodec/mips/aacdec_mips.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavcodec/mips/aacdec_mips.c b/libavcodec/mips/aacdec_mips.c
index 253cdeb80b..01a2b3087b 100644
--- a/libavcodec/mips/aacdec_mips.c
+++ b/libavcodec/mips/aacdec_mips.c
@@ -237,9 +237,9 @@ static void apply_ltp_mips(AACContext *ac, SingleChannelElement *sce)
 
         if (ltp->lag < 1024)
             num_samples = ltp->lag + 1024;
-            j = (2048 - num_samples) >> 2;
-            k = (2048 - num_samples) & 3;
-            p_predTime = &predTime[num_samples];
+        j = (2048 - num_samples) >> 2;
+        k = (2048 - num_samples) & 3;
+        p_predTime = &predTime[num_samples];
 
         for (i = 0; i < num_samples; i++)
             predTime[i] = sce->ltp_state[i + 2048 - ltp->lag] * ltp->coef;



More information about the ffmpeg-cvslog mailing list