mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-19 09:02:26 +02:00
avformat/hls: fix memory leak with non-http segments
Signed-off-by: Aman Gupta <aman@tmm1.net>
This commit is contained in:
parent
3d95868d1b
commit
b33cf73507
@ -1497,7 +1497,7 @@ reload:
|
|||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
if (c->http_persistent) {
|
if (c->http_persistent && av_strstart(seg->url, "http", NULL)) {
|
||||||
v->input_read_done = 1;
|
v->input_read_done = 1;
|
||||||
} else {
|
} else {
|
||||||
ff_format_io_close(v->parent, &v->input);
|
ff_format_io_close(v->parent, &v->input);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user