mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
segment: Check av_get_frame_filename() return value
CC: libav-stable@libav.org Bug-Id: CID 1265713
This commit is contained in:
parent
7915e6741d
commit
3a6dfec864
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user