Skip to content

Commit 564795c

Browse files
fix: reformat C code according to latest clang-format guidelines
1 parent ffe075b commit 564795c

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

src/lib_ccx/asf_functions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ int asf_get_more_data(struct lib_ccx_ctx *ctx, struct demuxer_data **ppdata)
561561
dbg_print(CCX_DMT_PARSE, "Number of data packets: %ld\n", (long)asf_data_container.TotalDataPackets);
562562

563563
reentry = 0; // Make sure we read the Data Packet Headers
564-
} // End of if (firstcall)
564+
} // End of if (firstcall)
565565
firstcall = 0;
566566

567567
// Start loop over Data Packets

src/lib_ccx/ccx_decoders_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ int do_cb(struct lib_cc_decode *ctx, unsigned char *cc_block, struct cc_subtitle
219219
default:
220220
fatal(CCX_COMMON_EXIT_BUG_BUG, "In do_cb: Impossible value for cc_type, Please file a bug report on GitHub.\n");
221221
} // switch (cc_type)
222-
} // cc_valid
222+
} // cc_valid
223223
else
224224
{
225225
dbg_print(CCX_DMT_CBRAW, " .. .. ..\n");

src/lib_ccx/ccx_encoders_spupng.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ uint32_t *utf8_to_utf32(char *src)
704704
}
705705

706706
// Convert big-endian and little-endian
707-
#define BigtoLittle32(A) ((((uint32_t)(A)&0xff000000) >> 24) | (((uint32_t)(A)&0x00ff0000) >> 8) | (((uint32_t)(A)&0x0000ff00) << 8) | (((uint32_t)(A)&0x000000ff) << 24))
707+
#define BigtoLittle32(A) ((((uint32_t)(A) & 0xff000000) >> 24) | (((uint32_t)(A) & 0x00ff0000) >> 8) | (((uint32_t)(A) & 0x0000ff00) << 8) | (((uint32_t)(A) & 0x000000ff) << 24))
708708

709709
// Generate PNG file from an UTF-8 string (str)
710710
// PNG file will be stored at output

src/lib_ccx/dvb_subtitle_decoder.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,20 @@
3939

4040
#define YUV_TO_RGB1_CCIR(cb1, cr1) \
4141
{ \
42-
cb = (cb1)-128; \
43-
cr = (cr1)-128; \
42+
cb = (cb1) - 128; \
43+
cr = (cr1) - 128; \
4444
r_add = FIX(1.40200 * 255.0 / 224.0) * cr + ONE_HALF; \
4545
g_add = -FIX(0.34414 * 255.0 / 224.0) * cb - FIX(0.71414 * 255.0 / 224.0) * cr + \
4646
ONE_HALF; \
4747
b_add = FIX(1.77200 * 255.0 / 224.0) * cb + ONE_HALF; \
4848
}
4949

50-
#define YUV_TO_RGB2_CCIR(r, g, b, y1) \
51-
{ \
52-
y = ((y1)-16) * FIX(255.0 / 219.0); \
53-
r = cm[(y + r_add) >> SCALEBITS]; \
54-
g = cm[(y + g_add) >> SCALEBITS]; \
55-
b = cm[(y + b_add) >> SCALEBITS]; \
50+
#define YUV_TO_RGB2_CCIR(r, g, b, y1) \
51+
{ \
52+
y = ((y1) - 16) * FIX(255.0 / 219.0); \
53+
r = cm[(y + r_add) >> SCALEBITS]; \
54+
g = cm[(y + g_add) >> SCALEBITS]; \
55+
b = cm[(y + b_add) >> SCALEBITS]; \
5656
}
5757

5858
#define times4(x) x, x, x, x

src/lib_ccx/general_loop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ int general_loop(struct lib_ccx_ctx *ctx)
993993
enum ccx_stream_mode_enum stream_mode;
994994
struct demuxer_data *datalist = NULL;
995995
struct demuxer_data *data_node = NULL;
996-
int (*get_more_data)(struct lib_ccx_ctx * c, struct demuxer_data * *d);
996+
int (*get_more_data)(struct lib_ccx_ctx *c, struct demuxer_data **d);
997997
int ret;
998998
int caps = 0;
999999

src/lib_ccx/hardsubx_decoder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ void process_hardsubx_linear_frames_and_normal_subs(struct lib_hardsubx_ctx *har
552552
enum ccx_stream_mode_enum stream_mode;
553553
struct demuxer_data *datalist = NULL;
554554
struct demuxer_data *data_node = NULL;
555-
int (*get_more_data)(struct lib_ccx_ctx * c, struct demuxer_data * *d);
555+
int (*get_more_data)(struct lib_ccx_ctx *c, struct demuxer_data **d);
556556
int ret;
557557
int caps = 0;
558558

0 commit comments

Comments
 (0)