[FIX] segmentation fault on encoding McPoodle's raw to WebVTT (#1329)

This commit is contained in:
Suvigya 2021-04-27 20:51:07 +05:30 committed by GitHub
parent 4f5bd7bf37
commit a2af0d7044
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;