mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2024-12-25 12:23:59 +00:00
reverted back the changes of adding exra byte
This commit is contained in:
parent
b06654b760
commit
5e22be2576
@ -459,7 +459,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
}
|
||||
else
|
||||
cc_count = (len-2)/3;
|
||||
cc_count = len/3;
|
||||
store_hdcc(ctx, bptr, cc_count, i++,fts_now,&dec_sub);
|
||||
if(dec_sub.got_output)
|
||||
{
|
||||
|
@ -142,7 +142,7 @@ int user_data(struct lib_ccx_ctx *ctx, struct bitstream *ustream, int udtype, st
|
||||
{
|
||||
if ((ud_header[1]&0x7F) == 0x01)
|
||||
{
|
||||
unsigned char cc_data[3*31+2]; // Maximum cc_count is 31
|
||||
unsigned char cc_data[3*31+1]; // Maximum cc_count is 31
|
||||
|
||||
ctx->stat_scte20ccheaders++;
|
||||
read_bytes(ustream, 2); // "03 01"
|
||||
|
@ -11,7 +11,7 @@ int cc_data_count[SORTBUF];
|
||||
// Store fts;
|
||||
static LLONG cc_fts[SORTBUF];
|
||||
// Store HD CC packets
|
||||
unsigned char cc_data_pkts[SORTBUF][10*31*3+2]; // *10, because MP4 seems to have different limits
|
||||
unsigned char cc_data_pkts[SORTBUF][10*31*3+1]; // *10, because MP4 seems to have different limits
|
||||
|
||||
// Set to true if data is buffered
|
||||
int has_ccdata_buffered = 0;
|
||||
@ -29,7 +29,7 @@ void init_hdcc (void)
|
||||
cc_data_count[j] = 0;
|
||||
cc_fts[j] = 0;
|
||||
}
|
||||
memset(cc_data_pkts, 0, SORTBUF*(31*3+2));
|
||||
memset(cc_data_pkts, 0, SORTBUF*(31*3+1));
|
||||
has_ccdata_buffered = 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user