avformat/hls: fix missing segment offset reset on last segment when http_multiple...
authorvectronic <hello.vectronic@gmail.com>
Fri, 4 Oct 2019 22:04:12 +0000 (23:04 +0100)
committerSteven Liu <lq@chinaffmpeg.org>
Tue, 8 Oct 2019 06:58:47 +0000 (14:58 +0800)
Reviewed-by: Steven Liu <lq@onvideo.cn>
Signed-off-by: vectronic <hello.vectronic@gmail.com>
libavformat/hls.c

index 336608f..d7f4d5b 100644 (file)
@@ -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 {