diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-07-29 14:11:21 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-07-29 14:11:21 +0200 |
commit | 2f9e97b32a7a541095654bed2e8763dd79c98366 (patch) | |
tree | 48572ff1a2ceb6deb102a91e0f1b6fa13397b2e5 /libavformat/hls.c | |
parent | d31c0fcfa55a841bc47d44bedd407b2c623f939a (diff) | |
parent | c11e33a3d9665dd1fc5dbdecdd03a4860ac6a622 (diff) | |
download | ffmpeg-2f9e97b32a7a541095654bed2e8763dd79c98366.tar.gz |
Merge commit 'c11e33a3d9665dd1fc5dbdecdd03a4860ac6a622'
* commit 'c11e33a3d9665dd1fc5dbdecdd03a4860ac6a622':
hls: Set stream offset before opening a chained demuxer
Conflicts:
libavformat/hls.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/hls.c')
-rw-r--r-- | libavformat/hls.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/hls.c b/libavformat/hls.c index c3d83defa8..84bd8448a4 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) |