Commit 3a6dfec8 authored by Vittorio Giovara's avatar Vittorio Giovara

segment: Check av_get_frame_filename() return value

CC: libav-stable@libav.org
Bug-Id: CID 1265713
parent 7915e674
......@@ -105,7 +105,11 @@ static int segment_hls_window(AVFormatContext *s, int last)
if (seg->entry_prefix) {
avio_printf(seg->pb, "%s", seg->entry_prefix);
}
av_get_frame_filename(buf, sizeof(buf), s->filename, i);
ret = av_get_frame_filename(buf, sizeof(buf), s->filename, i);
if (ret < 0) {
ret = AVERROR(EINVAL);
goto fail;
}
avio_printf(seg->pb, "%s\n", buf);
}
......
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