[FFmpeg-devel] [PATCH 1/1] [PATCH] avformat/hls: fix missing segment offset reset on last segment when http_multiple is enabled.

vectronic hello.vectronic at gmail.com
Sat Oct 5 01:04:12 EEST 2019


Signed-off-by: vectronic <hello.vectronic at gmail.com>
---
 libavformat/hls.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/hls.c b/libavformat/hls.c
index 336608fa2d..d7f4d5b442 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -1449,6 +1449,7 @@ reload:
 
         if (c->http_multiple == 1 && v->input_next_requested) {
             FFSWAP(AVIOContext *, v->input, v->input_next);
+            v->cur_seg_offset = 0;
             v->input_next_requested = 0;
             ret = 0;
         } else {
-- 
2.21.0 (Apple Git-122)



More information about the ffmpeg-devel mailing list