Skip to content

Commit 02445a0

Browse files
committed
C formatting
1 parent dd630f1 commit 02445a0

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

src/lib_ccx/ccx_demuxer.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,9 @@ static int ccx_demuxer_get_stream_mode(struct ccx_demuxer *ctx)
247247

248248
static void ccx_demuxer_print_cfg(struct ccx_demuxer *ctx)
249249
{
250-
#ifndef DISABLE_RUST
251-
ccxr_demuxer_print_cfg(ctx);
252-
#else
250+
#ifndef DISABLE_RUST
251+
ccxr_demuxer_print_cfg(ctx);
252+
#else
253253
switch (ctx->auto_stream)
254254
{
255255
case CCX_SM_ELEMENTARY_OR_NOT_FOUND:
@@ -294,7 +294,7 @@ static void ccx_demuxer_print_cfg(struct ccx_demuxer *ctx)
294294
fatal(CCX_COMMON_EXIT_BUG_BUG, "BUG: Unknown stream mode. Please file a bug report on Github.\n");
295295
break;
296296
}
297-
#endif
297+
#endif
298298
}
299299

300300
void ccx_demuxer_delete(struct ccx_demuxer **ctx)

src/lib_ccx/ccx_demuxer_mxf.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#define IS_KLV_KEY(x, y) (!memcmp(x, y, sizeof(y)))
1515
#define IS_KLV_KEY_ANY_VERSION(x, y) (!memcmp(x, y, 7) && !memcmp(x + 8, y + 8, sizeof(y) - 8))
1616

17-
1817
typedef struct KLVPacket
1918
{
2019
UID key;
@@ -29,14 +28,12 @@ typedef struct MXFCodecUL
2928

3029
typedef int ReadFunc(struct ccx_demuxer *ctx, uint64_t size);
3130

32-
3331
typedef struct MXFReadTableEntry
3432
{
3533
const UID key;
3634
ReadFunc *read;
3735
} MXFReadTableEntry;
3836

39-
4037
typedef struct MXFLocalTAGS
4138
{
4239
uint16_t tag;

src/lib_ccx/ccx_gxf.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include "ccx_demuxer.h"
2020
#include "file_buffer.h"
2121

22-
2322
#define CLOSED_CAP_DID 0x61
2423
#define CLOSED_C708_SDID 0x01
2524
#define CLOSED_C608_SDID 0x02
@@ -279,7 +278,6 @@ struct ccx_gxf_ancillary_data_track
279278
uint32_t field_per_frame;
280279
};
281280

282-
283281
/**
284282
* @brief parses a packet header, extracting type and length
285283
* @param ctx Demuxer Ctx used for reading from file
@@ -953,7 +951,7 @@ static int parse_ad_vbi(struct ccx_demuxer *demux, int len, struct demuxer_data
953951
if (result != len)
954952
ret = CCX_EOF;
955953
return ret;
956-
// #endif
954+
// #endif
957955
}
958956

959957
static int parse_ad_field(struct ccx_demuxer *demux, int len, struct demuxer_data *data)
@@ -1172,7 +1170,7 @@ static void set_data_timebase(int32_t vid_format, struct demuxer_data *data)
11721170
default:
11731171
break;
11741172
}
1175-
// #endif
1173+
// #endif
11761174
}
11771175

11781176
static int parse_mpeg_packet(struct ccx_demuxer *demux, int len, struct demuxer_data *data)
@@ -1615,7 +1613,7 @@ int ccx_gxf_probe(unsigned char *buf, int len)
16151613
if (!memcmp(buf, startcode, sizeof(startcode)))
16161614
return CCX_TRUE;
16171615
return CCX_FALSE;
1618-
// #endif
1616+
// #endif
16191617
}
16201618

16211619
int ccx_gxf_get_more_data(struct lib_ccx_ctx *ctx, struct demuxer_data **ppdata)

0 commit comments

Comments
 (0)