mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2024-12-24 20:01:42 +00:00
adding encoder in rcwt loop
This commit is contained in:
parent
1000e33e7f
commit
2206cc1f78
@ -695,12 +695,12 @@ int main(int argc, char *argv[])
|
||||
break;
|
||||
case CCX_SM_RCWT:
|
||||
mprint ("\rAnalyzing data in CCExtractor's binary format\n");
|
||||
rcwt_loop();
|
||||
rcwt_loop(&enc_ctx);
|
||||
break;
|
||||
case CCX_SM_MYTH:
|
||||
mprint ("\rAnalyzing data in MythTV mode\n");
|
||||
show_myth_banner = 1;
|
||||
myth_loop();
|
||||
myth_loop(&enc_ctx);
|
||||
break;
|
||||
case CCX_SM_MP4:
|
||||
mprint ("\rAnalyzing data with GPAC (MP4 library)\n");
|
||||
|
@ -249,7 +249,7 @@ void raw_loop (void *enc_ctx);
|
||||
LLONG process_raw (struct cc_subtitle *sub);
|
||||
void general_loop(void *enc_ctx);
|
||||
void processhex (char *filename);
|
||||
void rcwt_loop( void );
|
||||
void rcwt_loop(void *enc_ctx);
|
||||
|
||||
#ifndef __cplusplus
|
||||
#define false 0
|
||||
@ -362,7 +362,7 @@ int parse_PMT (unsigned char *buf,int len, int pos);
|
||||
int parse_PAT (void);
|
||||
|
||||
// myth.c
|
||||
void myth_loop(void);
|
||||
void myth_loop(void *enc_ctx);
|
||||
|
||||
// mp4_bridge2bento4.c
|
||||
void mp4_loop (char *filename);
|
||||
|
@ -729,12 +729,13 @@ void general_loop(void *enc_ctx)
|
||||
}
|
||||
|
||||
// Raw caption with FTS file process
|
||||
void rcwt_loop( void )
|
||||
void rcwt_loop(void *enc_ctx)
|
||||
{
|
||||
static unsigned char *parsebuf;
|
||||
static long parsebufsize = 1024;
|
||||
struct cc_subtitle dec_sub;
|
||||
|
||||
memset(&dec_sub, 0,sizeof(dec_sub));
|
||||
// As BUFSIZE is a macro this is just a reminder
|
||||
if (BUFSIZE < (3*0xFFFF + 10))
|
||||
fatal (EXIT_BUG_BUG, "BUFSIZE too small for RCWT caption block.\n");
|
||||
@ -835,6 +836,11 @@ void rcwt_loop( void )
|
||||
do_cb(parsebuf+j, &dec_sub);
|
||||
}
|
||||
}
|
||||
if (dec_sub.got_output)
|
||||
{
|
||||
encode_sub(enc_ctx,&dec_sub);
|
||||
dec_sub.got_output = 0;
|
||||
}
|
||||
} // end while(1)
|
||||
|
||||
dbg_print(CCX_DMT_PARSE, "Processed %d bytes\n", bread);
|
||||
|
@ -819,7 +819,7 @@ void build_parity_table (void)
|
||||
cc608_build_parity_table(cc608_parity_table);
|
||||
}
|
||||
|
||||
void myth_loop(void)
|
||||
void myth_loop(void *enc_ctx)
|
||||
{
|
||||
int rc;
|
||||
int has_vbi=0;
|
||||
|
Loading…
Reference in New Issue
Block a user