aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-09-03 11:14:48 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-09-03 11:28:29 +0200
commite3d8504fd043bdc2535525128b158fbc1fb18c67 (patch)
treee3e3e6a68399ba6649549389fb5c682147acfac6 /libavformat
parent879603fa3f8d99d084ae470f7c804df8373da0b6 (diff)
downloadffmpeg-e3d8504fd043bdc2535525128b158fbc1fb18c67.tar.gz
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 <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/hlsenc.c2
1 files changed, 1 insertions, 1 deletions
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);