[FFmpeg-cvslog] avcodec/mjpegenc_common: Fix intendation

Andreas Rheinhardt git at videolan.org
Tue Jan 4 18:20:28 EET 2022


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Wed Dec 22 01:31:56 2021 +0100| [506758357e21f4500e160496734d1128c68a8983] | committer: Andreas Rheinhardt

avcodec/mjpegenc_common: Fix intendation

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

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

 libavcodec/mjpegenc_common.c | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/libavcodec/mjpegenc_common.c b/libavcodec/mjpegenc_common.c
index 86a9791477..049a8f4d25 100644
--- a/libavcodec/mjpegenc_common.c
+++ b/libavcodec/mjpegenc_common.c
@@ -73,17 +73,17 @@ static void jpeg_table_header(AVCodecContext *avctx, PutBitContext *p,
         int matrix_count = 1 + !!memcmp(luma_intra_matrix,
                                         chroma_intra_matrix,
                                         sizeof(luma_intra_matrix[0]) * 64);
-    if (s && s->force_duplicated_matrix)
-        matrix_count = 2;
-    /* quant matrixes */
-    put_marker(p, DQT);
-    put_bits(p, 16, 2 + matrix_count * (1 + 64));
-    put_bits(p, 4, 0); /* 8 bit precision */
-    put_bits(p, 4, 0); /* table 0 */
-    for(i=0;i<64;i++) {
-        j = intra_scantable->permutated[i];
-        put_bits(p, 8, luma_intra_matrix[j]);
-    }
+        if (s && s->force_duplicated_matrix)
+            matrix_count = 2;
+        /* quant matrixes */
+        put_marker(p, DQT);
+        put_bits(p, 16, 2 + matrix_count * (1 + 64));
+        put_bits(p, 4, 0); /* 8 bit precision */
+        put_bits(p, 4, 0); /* table 0 */
+        for (int i = 0; i < 64; i++) {
+            uint8_t j = intra_scantable->permutated[i];
+            put_bits(p, 8, luma_intra_matrix[j]);
+        }
 
         if (matrix_count > 1) {
             put_bits(p, 4, 0); /* 8 bit precision */



More information about the ffmpeg-cvslog mailing list