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;