From 300512248536d701651b8ee26bc10f4427c9a832 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 25 Jul 2012 17:40:33 +0200 Subject: [PATCH] hls: call avformat_find_stream_info() This is needed to correctly demux h264 in ts Signed-off-by: Michael Niedermayer --- libavformat/hls.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavformat/hls.c b/libavformat/hls.c index a51a616d38..08df96a01e 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -526,6 +526,10 @@ static int hls_read_header(AVFormatContext *s) } v->ctx->pb = &v->pb; ret = avformat_open_input(&v->ctx, v->segments[0]->url, in_fmt, NULL); + if (ret < 0) + goto fail; + v->ctx->probesize = 0; + ret = avformat_find_stream_info(v->ctx, NULL); if (ret < 0) goto fail; v->stream_offset = stream_offset;