From a2af0d70447e84d5f69d03f12c5ca598e8bb4376 Mon Sep 17 00:00:00 2001 From: Suvigya <33174957+SuvigyaJain1@users.noreply.github.com> Date: Tue, 27 Apr 2021 20:51:07 +0530 Subject: [PATCH] [FIX] segmentation fault on encoding McPoodle's raw to WebVTT (#1329) --- src/lib_ccx/ccx_encoders_webvtt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib_ccx/ccx_encoders_webvtt.c b/src/lib_ccx/ccx_encoders_webvtt.c index ccd53ec6..e39336ad 100644 --- a/src/lib_ccx/ccx_encoders_webvtt.c +++ b/src/lib_ccx/ccx_encoders_webvtt.c @@ -207,7 +207,7 @@ void write_webvtt_header(struct encoder_ctx *context) if (context->wrote_webvtt_header) // Already done return; - if (context->timing->sync_pts2fts_set) + if (context->timing != NULL && context->timing->sync_pts2fts_set) { char header_string[200]; int used;