summaryrefslogtreecommitdiff
path: root/libavcodec/mjpegenc_common.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-12-22 01:31:56 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-01-04 16:28:54 +0100
commit506758357e21f4500e160496734d1128c68a8983 (patch)
tree48f3a013a8c90bd3e2c97925c334ef1351ea0973 /libavcodec/mjpegenc_common.c
parent8edb2c638cb2970585ad4bc1a5dc632bdc85ae45 (diff)
avcodec/mjpegenc_common: Fix intendation
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mjpegenc_common.c')
-rw-r--r--libavcodec/mjpegenc_common.c22
1 files 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 */