Commit 2f9e97b3 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'c11e33a3'

* commit 'c11e33a3':
  hls: Set stream offset before opening a chained demuxer

Conflicts:
	libavformat/hls.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents d31c0fcf c11e33a3
...@@ -572,11 +572,10 @@ static int hls_read_header(AVFormatContext *s) ...@@ -572,11 +572,10 @@ static int hls_read_header(AVFormatContext *s)
goto fail; goto fail;
} }
v->ctx->pb = &v->pb; v->ctx->pb = &v->pb;
v->stream_offset = stream_offset;
ret = avformat_open_input(&v->ctx, v->segments[0]->url, in_fmt, NULL); ret = avformat_open_input(&v->ctx, v->segments[0]->url, in_fmt, NULL);
if (ret < 0) if (ret < 0)
goto fail; goto fail;
v->stream_offset = stream_offset;
v->ctx->ctx_flags &= ~AVFMTCTX_NOHEADER; v->ctx->ctx_flags &= ~AVFMTCTX_NOHEADER;
ret = avformat_find_stream_info(v->ctx, NULL); ret = avformat_find_stream_info(v->ctx, NULL);
if (ret < 0) if (ret < 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment