diff --git a/libavformat/hls.c b/libavformat/hls.c index 08df96a01e..9d4a2bc39f 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -528,7 +528,8 @@ static int hls_read_header(AVFormatContext *s) ret = avformat_open_input(&v->ctx, v->segments[0]->url, in_fmt, NULL); if (ret < 0) goto fail; - v->ctx->probesize = 0; + + v->ctx->ctx_flags &= ~AVFMTCTX_NOHEADER; ret = avformat_find_stream_info(v->ctx, NULL); if (ret < 0) goto fail;