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

vectronic git at videolan.org
Tue Oct 8 10:00:02 EEST 2019


ffmpeg | branch: master | vectronic <hello.vectronic at gmail.com> | Fri Oct  4 23:04:12 2019 +0100| [e149be38a86fbb81fb3313c8a86a819baa42c9eb] | committer: Steven Liu

avformat/hls: fix missing segment offset reset on last segment when http_multiple is enabled.

Reviewed-by: Steven Liu <lq at onvideo.cn>
Signed-off-by: vectronic <hello.vectronic at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e149be38a86fbb81fb3313c8a86a819baa42c9eb
---

 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 {



More information about the ffmpeg-cvslog mailing list