Skip to content
Merged
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
12 changes: 6 additions & 6 deletions src/lib_ccx/telxcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1054,12 +1054,12 @@ void process_telx_packet(struct TeletextCtx *ctx, data_unit_t data_unit_id, tele
ctx->page_buffer.text[yt][it] = telx_to_ucs2(ctx->page_buffer.text[yt][it]);
}
}
// it would be nice, if subtitle hides on previous video frame, so we contract 40 ms (1 frame @25 fps)
ctx->page_buffer.hide_timestamp = timestamp - 40;
if (ctx->page_buffer.hide_timestamp > timestamp)
{
ctx->page_buffer.hide_timestamp = 0;
}
// Previously subtracted 40ms (1 frame @ 25fps) to hide subtitle "early",
// but this produced a visible ~40ms blink gap in rolling teletext subs
// and caused zero-length cues when a page was displayed for exactly 40ms.
// WebVTT allows touching cues (where the end time of one cue perfectly matches
// the start time of the next), which makes rolling look continuous.
ctx->page_buffer.hide_timestamp = timestamp;
process_page(ctx, &ctx->page_buffer, sub);
de_ctr = 0;
}
Expand Down
Loading