OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7915e67
)
segment: Check av_get_frame_filename() return value
author
Vittorio Giovara
<vittorio.giovara@gmail.com>
Thu, 22 Jan 2015 20:13:45 +0000
(20:13 +0000)
committer
Vittorio Giovara
<vittorio.giovara@gmail.com>
Fri, 23 Jan 2015 14:55:03 +0000
(14:55 +0000)
CC: libav-stable@libav.org
Bug-Id: CID
1265713
libavformat/segment.c
patch
|
blob
|
history
diff --git
a/libavformat/segment.c
b/libavformat/segment.c
index
bcfd1f9
..
824bbf7
100644
(file)
--- 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);
}