[FFmpeg-cvslog] avformat/hls: fix memory leak with non-http segments
Aman Gupta
git at videolan.org
Sun Dec 24 22:00:28 EET 2017
ffmpeg | branch: master | Aman Gupta <aman at tmm1.net> | Sun Dec 24 11:59:32 2017 -0800| [b33cf735071cfe07ac60fd8f95e7f1f984005f45] | committer: Aman Gupta
avformat/hls: fix memory leak with non-http segments
Signed-off-by: Aman Gupta <aman at tmm1.net>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b33cf735071cfe07ac60fd8f95e7f1f984005f45
---
libavformat/hls.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/hls.c b/libavformat/hls.c
index 5dadcfcc29..3805ed6dba 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -1497,7 +1497,7 @@ reload:
return ret;
}
- if (c->http_persistent) {
+ if (c->http_persistent && av_strstart(seg->url, "http", NULL)) {
v->input_read_done = 1;
} else {
ff_format_io_close(v->parent, &v->input);
More information about the ffmpeg-cvslog
mailing list