[FFmpeg-cvslog] avformat/hlsenc: Initialize vtt_oc to help static analyzers

Michael Niedermayer git at videolan.org
Thu Sep 3 11:41:17 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu Sep  3 11:14:48 2015 +0200| [e3d8504fd043bdc2535525128b158fbc1fb18c67] | committer: Michael Niedermayer

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 at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e3d8504fd043bdc2535525128b158fbc1fb18c67
---

 libavformat/hlsenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index fea5ef8..861faf9 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);



More information about the ffmpeg-cvslog mailing list