Commit 3914c8e0 authored by Timo Rothenpieler's avatar Timo Rothenpieler Committed by Steven Liu

avformat/hlsenc: initialize saveptrs

av_strtok calls strspn on a non-NULL *saveptr, so not NULL initializing
it is an issue.
Fixes CID #1428568
Reviewed-by: 's avatarKarthick Jeyapal <kjeyapal@akamai.com>
Signed-off-by: 's avatarSteven Liu <lq@onvideo.cn>
Signed-off-by: 's avatarSteven Liu <lq@chinaffmpeg.org>
parent ac6e27d7
......@@ -1888,7 +1888,8 @@ static int parse_cc_stream_mapstring(AVFormatContext *s)
{
HLSContext *hls = s->priv_data;
int nb_ccstreams;
char *p, *q, *saveptr1, *saveptr2, *ccstr, *keyval;
char *p, *q, *ccstr, *keyval;
char *saveptr1 = NULL, *saveptr2 = NULL;
const char *val;
ClosedCaptionsStream *ccs;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment