Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lib_ccx/general_loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,7 @@ int general_loop(struct lib_ccx_ctx *ctx)
enum ccx_stream_mode_enum stream_mode = CCX_SM_ELEMENTARY_OR_NOT_FOUND;
struct demuxer_data *datalist = NULL;
struct demuxer_data *data_node = NULL;
int (*get_more_data)(struct lib_ccx_ctx *c, struct demuxer_data **d) = NULL;
int (*get_more_data)(struct lib_ccx_ctx * c, struct demuxer_data * *d) = NULL;
int ret = 0;
int caps = 0;

Expand Down Expand Up @@ -1495,7 +1495,7 @@ int rcwt_loop(struct lib_ccx_ctx *ctx)
#ifndef DISABLE_RUST
ccxr_dtvcc_set_encoder(dec_ctx->dtvcc_rust, enc_ctx);
#else
dec_ctx->dtvcc->encoder = (void *)enc_ctx; // WARN: otherwise cea-708 will not work
dec_ctx->dtvcc->encoder = (void *)enc_ctx; // WARN: otherwise cea-708 will not work
#endif
if (parsebuf[6] == 0 && parsebuf[7] == 2)
{
Expand Down
7 changes: 7 additions & 0 deletions src/lib_ccx/utility.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ extern void ccxr_timestamp_to_srttime(uint64_t timestamp, char *buffer);
extern void ccxr_timestamp_to_vtttime(uint64_t timestamp, char *buffer);
extern void ccxr_millis_to_date(uint64_t timestamp, char *buffer, enum ccx_output_date_format date_format, char millis_separator);
extern int ccxr_stringztoms(const char *s, struct ccx_boundary_time *bt);
#ifndef DISABLE_RUST
extern int ccxr_hex_to_int(char high, char low);
#endif

static uint32_t crc32_table[] = {
0x00000000, 0x04c11db7, 0x09823b6e, 0x0d4326d9,
Expand Down Expand Up @@ -266,6 +269,9 @@ void sleep_secs(int secs)

int hex_to_int(char high, char low)
{
#ifndef DISABLE_RUST
return ccxr_hex_to_int(high, low);
#else
unsigned char h, l;
if (high >= '0' && high <= '9')
h = high - '0';
Expand All @@ -280,6 +286,7 @@ int hex_to_int(char high, char low)
else
return -1;
return h * 16 + l;
#endif
}
int hex_string_to_int(char *string, int len)
{
Expand Down
Loading