Browse Source

avformat/hls: fix SEGV in previous commit

Signed-off-by: Aman Gupta <aman@tmm1.net>
tags/n4.0
Aman Gupta 7 years ago
parent
commit
207e98b4e5
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavformat/hls.c

+ 2
- 1
libavformat/hls.c View File

@@ -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


Loading…
Cancel
Save