diff options
author | Aman Gupta <aman@tmm1.net> | 2017-12-24 11:59:32 -0800 |
---|---|---|
committer | Aman Gupta <aman@tmm1.net> | 2017-12-24 11:59:32 -0800 |
commit | b33cf735071cfe07ac60fd8f95e7f1f984005f45 (patch) | |
tree | ce7ac34b9e81438cbfc6991c34c39b0e1613db3a /libavformat/hls.c | |
parent | 3d95868d1bf2197597fbcbddd984eac175325a14 (diff) | |
download | ffmpeg-streaming-b33cf735071cfe07ac60fd8f95e7f1f984005f45.zip ffmpeg-streaming-b33cf735071cfe07ac60fd8f95e7f1f984005f45.tar.gz |
avformat/hls: fix memory leak with non-http segments
Signed-off-by: Aman Gupta <aman@tmm1.net>
Diffstat (limited to 'libavformat/hls.c')
-rw-r--r-- | libavformat/hls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/hls.c b/libavformat/hls.c index 5dadcfc..3805ed6 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); |