diff options
author | Steven Liu <lq@chinaffmpeg.org> | 2017-09-21 23:08:00 +0800 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2017-09-21 23:08:00 +0800 |
commit | 7e9cdd3f49e50ef5d8f85d3510c8f0d305671dac (patch) | |
tree | e9de195590b81b79c60c867fd7b60affd7101224 /libavformat/hlsenc.c | |
parent | 6f15f1cdc85350b7adcfb7c50eedb5ecde6a384a (diff) |
avformat/hlsenc: fix CID 1418106
fix the "Uninitialized scalar variable (UNINIT)" problem.
Signed-off-by: Steven Liu <lq@onvideo.cn>
Diffstat (limited to 'libavformat/hlsenc.c')
-rw-r--r-- | libavformat/hlsenc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 3a9a235514..d70a2f7ff6 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -1327,13 +1327,13 @@ static int hls_write_header(AVFormatContext *s) { HLSContext *hls = s->priv_data; int ret, i; - char *p; + char *p = NULL; const char *pattern = "%d.ts"; const char *pattern_localtime_fmt = get_default_pattern_localtime_fmt(s); const char *vtt_pattern = "%d.vtt"; AVDictionary *options = NULL; - int basename_size; - int vtt_basename_size; + int basename_size = 0; + int vtt_basename_size = 0; if (hls->segment_type == SEGMENT_TYPE_FMP4) { pattern = "%d.m4s"; |