From dad108b7e19de49d970a962a5f7bd53180e64576 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20ANDR=C3=89-CHANG?= Date: Mon, 13 Jan 2020 15:54:15 +0000 Subject: [PATCH] Fix wrong format string (#1177) --- src/lib_ccx/ccx_encoders_webvtt.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/lib_ccx/ccx_encoders_webvtt.c b/src/lib_ccx/ccx_encoders_webvtt.c index 4c143a51..98a8c8d8 100644 --- a/src/lib_ccx/ccx_encoders_webvtt.c +++ b/src/lib_ccx/ccx_encoders_webvtt.c @@ -215,18 +215,13 @@ int write_webvtt_header(struct encoder_ctx *context) unsigned h1, m1, s1, ms1; millis_to_time(context->timing->sync_pts2fts_fts, &h1, &m1, &s1, &ms1); - // If the user has not disabled X-TIMESTAMP-MAP + // If the user has not disabled X-TIMESTAMP-MAP if (!context->no_timestamp_map) { sprintf(header_string, "X-TIMESTAMP-MAP=MPEGTS:%ld,LOCAL:%02u:%02u:%02u.%03u%s", context->timing->sync_pts2fts_pts, h1, m1, s1, ms1, ccx_options.enc_cfg.line_terminator_lf ? "\n\n" : "\r\n\r\n"); } - else { - sprintf(header_string, - context->timing->sync_pts2fts_pts, h1, m1, s1, ms1, - ccx_options.enc_cfg.line_terminator_lf ? "\n\n" : "\r\n\r\n"); - } used = encode_line(context, context->buffer, (unsigned char *)header_string); write(context->out->fh, context->buffer, used);