Signed-off-by: Steven Liu <l...@chinaffmpeg.org> --- libavformat/hlsenc.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index eacc438e30..fcc154013c 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -2008,6 +2008,9 @@ static int parse_cc_stream_mapstring(AVFormatContext *s) ClosedCaptionsStream *ccs; p = av_strdup(hls->cc_stream_map); + if(!p) + return AVERROR(ENOMEM); + q = p; while (av_strtok(q, " \t", &saveptr1)) { q = NULL; -- 2.15.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".