Browse Source

avformat/hlsenc: fix CID 1418106

fix the "Uninitialized scalar variable (UNINIT)" problem.

Signed-off-by: Steven Liu <lq@onvideo.cn>
tags/n3.4
Steven Liu 8 years ago
parent
commit
7e9cdd3f49
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      libavformat/hlsenc.c

+ 3
- 3
libavformat/hlsenc.c View File

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


Loading…
Cancel
Save