X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fhls.c;fp=libavformat%2Fhls.c;h=84bd8448a46b64d8b3d00530682c19d538acdc4e;hb=2f9e97b32a7a541095654bed2e8763dd79c98366;hp=c3d83defa8d6e672328419d0e4e8da65c2d22d33;hpb=d31c0fcfa55a841bc47d44bedd407b2c623f939a;p=ffmpeg diff --git a/libavformat/hls.c b/libavformat/hls.c index c3d83defa8d..84bd8448a46 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -572,11 +572,10 @@ static int hls_read_header(AVFormatContext *s) goto fail; } v->ctx->pb = &v->pb; + v->stream_offset = stream_offset; ret = avformat_open_input(&v->ctx, v->segments[0]->url, in_fmt, NULL); if (ret < 0) goto fail; - - v->stream_offset = stream_offset; v->ctx->ctx_flags &= ~AVFMTCTX_NOHEADER; ret = avformat_find_stream_info(v->ctx, NULL); if (ret < 0)