summaryrefslogtreecommitdiff
path: root/libavformat/hls.c
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2017-12-24 12:31:27 -0800
committerAman Gupta <aman@tmm1.net>2017-12-24 12:31:27 -0800
commit207e98b4e502edc17c2e0fcba91bf122892f718c (patch)
tree7ba79a90ce06b4ad2f975e621e8c6128cb4828b2 /libavformat/hls.c
parentb33cf735071cfe07ac60fd8f95e7f1f984005f45 (diff)
avformat/hls: fix SEGV in previous commit
Signed-off-by: Aman Gupta <aman@tmm1.net>
Diffstat (limited to 'libavformat/hls.c')
-rw-r--r--libavformat/hls.c3
1 files changed, 2 insertions, 1 deletions
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