corrected typo cxx to ccx

This commit is contained in:
Anshul Maheshwari 2014-10-07 19:56:35 +05:30
parent c9c063b8d8
commit 6cfddb12a6
5 changed files with 11 additions and 11 deletions

View File

@ -222,7 +222,7 @@ typedef enum {
UNDEF = 0xff
} bool_t;
enum cxx_code_type
enum ccx_code_type
{
CCX_CODEC_ANY,
CCX_CODEC_TELETEXT,

View File

@ -36,7 +36,7 @@ unsigned char *filebuffer;
LLONG filebuffer_start; // Position of buffer start relative to file
int filebuffer_pos; // Position of pointer relative to buffer start
int bytesinbuffer; // Number of bytes we actually have on buffer
extern void *cxx_dvb_context;
extern void *ccx_dvb_context;
LLONG process_raw_with_field (struct cc_subtitle *sub);
@ -602,7 +602,7 @@ void general_loop(void *enc_ctx)
}
else if(ccx_bufferdatatype == CCX_DVB_SUBTITLE)
{
dvbsub_decode(cxx_dvb_context, buffer + 2, inbuf, &dec_sub);
dvbsub_decode(ccx_dvb_context, buffer + 2, inbuf, &dec_sub);
set_fts();
got = inbuf;
}

View File

@ -47,8 +47,8 @@ struct ccx_s_options // Options from user parameters
ccx_decoder_608_settings settings_608; // Contains the settings for the 608 decoder.
/* subtitle codec type */
enum cxx_code_type codec;
enum cxx_code_type nocodec;
enum ccx_code_type codec;
enum ccx_code_type nocodec;
/* Credit stuff */
char *start_credits_text;
char *end_credits_text;

View File

@ -17,7 +17,7 @@ static long haup_capbuflen = 0; // Bytes read in haup_capbuf
unsigned TS_program_number = 0; // Identifier for current program
unsigned pmtpid = 0; // PID for Program Map Table
unsigned cap_stream_type=CCX_STREAM_TYPE_UNKNOWNSTREAM; // Stream type for cappid
extern void *cxx_dvb_context;
extern void *ccx_dvb_context;
// Descriptions for ts ccx_stream_type
const char *desc[256];
@ -373,7 +373,7 @@ long ts_readstream(void)
* if dvb subtitle is selected then start time taken from first PTS
* of any stream
*/
if ( cap_stream_type == CCX_STREAM_TYPE_PRIVATE_MPEG2 && cxx_dvb_context && !pts_set)
if ( cap_stream_type == CCX_STREAM_TYPE_PRIVATE_MPEG2 && ccx_dvb_context && !pts_set)
{
if(read_pts_pes(payload.start,payload.length) == 0)
set_fts();
@ -480,7 +480,7 @@ LLONG ts_getmoredata(void)
ccx_bufferdatatype = CCX_H264;
tstr = "H.264";
}
else if ( cap_stream_type == CCX_STREAM_TYPE_PRIVATE_MPEG2 && cxx_dvb_context )
else if ( cap_stream_type == CCX_STREAM_TYPE_PRIVATE_MPEG2 && ccx_dvb_context )
{
ccx_bufferdatatype = CCX_DVB_SUBTITLE;
tstr = "DVB subtitle";

View File

@ -9,7 +9,7 @@
#include "dvb_subtitle_decoder.h"
#include "utility.h"
static unsigned pmt_warning_shown=0; // Only display warning once
void *cxx_dvb_context = NULL;
void *ccx_dvb_context = NULL;
// PMTs table
struct PAT_entry pmt_array[TS_PMT_MAP_SIZE] = {{ 0 }};
@ -281,8 +281,8 @@ int parse_PMT (unsigned char *buf,int len, int pos)
ret = parse_dvb_description(&cnf,es_info,desc_len);
if(ret < 0)
break;
cxx_dvb_context = dvbsub_init_decoder(&cnf);
if (cxx_dvb_context == NULL)
ccx_dvb_context = dvbsub_init_decoder(&cnf);
if (ccx_dvb_context == NULL)
break;
ccx_options.ts_cappid = newcappid = elementary_PID;
cap_stream_type = newcap_stream_type = ccx_stream_type;