From e3d8504fd043bdc2535525128b158fbc1fb18c67 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 3 Sep 2015 11:14:48 +0200 Subject: [PATCH] avformat/hlsenc: Initialize vtt_oc to help static analyzers This is also more robust in case it ever is used Signed-off-by: Michael Niedermayer --- libavformat/hlsenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index fea5ef8586..861faf9dee 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -253,7 +253,7 @@ static int hls_mux_init(AVFormatContext *s) { HLSContext *hls = s->priv_data; AVFormatContext *oc; - AVFormatContext *vtt_oc; + AVFormatContext *vtt_oc = NULL; int i, ret; ret = avformat_alloc_output_context2(&hls->avf, hls->oformat, NULL, NULL);