[FFmpeg-cvslog] avformat/hls: fix SEGV in previous commit

Aman Gupta git at videolan.org
Sun Dec 24 22:33:02 EET 2017


ffmpeg | branch: master | Aman Gupta <aman at tmm1.net> | Sun Dec 24 12:31:27 2017 -0800| [207e98b4e502edc17c2e0fcba91bf122892f718c] | committer: Aman Gupta

avformat/hls: fix SEGV in previous commit

Signed-off-by: Aman Gupta <aman at tmm1.net>

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

 libavformat/hls.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavformat/hls.c b/libavformat/hls.c
index 3805ed6dba..f00e22dfef 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -1487,7 +1487,8 @@ reload:
         return copy_size;
     }
 
-    ret = read_from_url(v, current_segment(v), buf, buf_size, READ_NORMAL);
+    seg = current_segment(v);
+    ret = read_from_url(v, seg, buf, buf_size, READ_NORMAL);
     if (ret > 0) {
         if (just_opened && v->is_id3_timestamped != 0) {
             /* Intercept ID3 tags here, elementary audio streams are required



More information about the ffmpeg-cvslog mailing list