CC: [email protected]
Bug-Id: CID 1265713
---
libavformat/segment.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/libavformat/segment.c b/libavformat/segment.c
index cd34a8c..64cb43a 100644
--- a/libavformat/segment.c
+++ b/libavformat/segment.c
@@ -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);
}
--
1.9.3 (Apple Git-50)
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel