From a842e1f7dbf72260855205f880ad53103b4d3fc5 Mon Sep 17 00:00:00 2001 From: AlexBratosin2001 Date: Fri, 2 Jun 2017 19:12:31 +0300 Subject: [PATCH] Fix PTS and Length in preview section (Teletext subtitles) --- src/lib_ccx/telxcc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib_ccx/telxcc.c b/src/lib_ccx/telxcc.c index c9f8131e..74be42ef 100644 --- a/src/lib_ccx/telxcc.c +++ b/src/lib_ccx/telxcc.c @@ -1492,6 +1492,9 @@ int tlt_process_pes_packet(struct lib_cc_decode *dec_ctx, uint8_t *buffer, uint1 pts |= ((buffer[13] & 0xfe) >> 1); t = (uint32_t) (pts / 90); + set_current_pts(dec_ctx->timing, pts); + set_fts(dec_ctx->timing); + if (ccx_options.pes_header_to_stdout) { //printf("# Associated PTS: %d \n", pts);