mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2025-01-30 22:05:20 +00:00
Fixed -unixts option
This commit is contained in:
parent
943bb576a9
commit
7d60f558d5
@ -1077,6 +1077,13 @@ int encode_sub(struct encoder_ctx *context, struct cc_subtitle *sub)
|
||||
}
|
||||
|
||||
data->end_time = data->end_time + context->subs_delay;
|
||||
|
||||
if (utc_refvalue != UINT64_MAX)
|
||||
{
|
||||
data->start_time += utc_refvalue * 1000;
|
||||
data->end_time += utc_refvalue * 1000;
|
||||
}
|
||||
|
||||
switch (context->write_format)
|
||||
{
|
||||
case CCX_OF_SRT:
|
||||
|
Loading…
Reference in New Issue
Block a user