[FFmpeg-devel] [PATCH 07/14] avcodec/mjpegenc_common: Fix intendation
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Wed Dec 22 05:25:07 EET 2021
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
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 8046e4b8f7..b9df32ad15 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 */
--
2.32.0
More information about the ffmpeg-devel
mailing list