aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-07-25 17:40:33 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-07-25 17:40:33 +0200
commit300512248536d701651b8ee26bc10f4427c9a832 (patch)
tree6836ae925df6dafa54a7db5ff2fa777f95267936 /libavformat
parentda62b4326b18b9e9cc7dae2467c23a71ab61b47a (diff)
downloadffmpeg-300512248536d701651b8ee26bc10f4427c9a832.tar.gz
hls: call avformat_find_stream_info()
This is needed to correctly demux h264 in ts Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/hls.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/hls.c b/libavformat/hls.c
index a51a616d38..08df96a01e 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -528,6 +528,10 @@ 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;
+ ret = avformat_find_stream_info(v->ctx, NULL);
+ if (ret < 0)
+ goto fail;
v->stream_offset = stream_offset;
snprintf(bitrate_str, sizeof(bitrate_str), "%d", v->bandwidth);
/* Create new AVStreams for each stream in this variant */