[FFmpeg-cvslog] hls: call avformat_find_stream_info()

Michael Niedermayer git at videolan.org
Wed Jul 25 17:51:48 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Jul 25 17:40:33 2012 +0200| [300512248536d701651b8ee26bc10f4427c9a832] | committer: Michael Niedermayer

hls: call avformat_find_stream_info()

This is needed to correctly demux h264 in ts

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=300512248536d701651b8ee26bc10f4427c9a832
---

 libavformat/hls.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavformat/hls.c b/libavformat/hls.c
index a51a616..08df96a 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 */



More information about the ffmpeg-cvslog mailing list