[FFmpeg-cvslog] hls: replace probsize=0 by noheader flag removial.

Michael Niedermayer git at videolan.org
Thu Jul 26 03:10:03 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jul 26 02:52:08 2012 +0200| [6f6182372ccac3f29ce29637a27ef8a2833619a7] | committer: Michael Niedermayer

hls: replace probsize=0 by noheader flag removial.

This fixes h264 timestamps in hls
Fixes ticket1572

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

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

 libavformat/hls.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavformat/hls.c b/libavformat/hls.c
index 08df96a..9d4a2bc 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -528,7 +528,8 @@ 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;
+
+        v->ctx->ctx_flags &= ~AVFMTCTX_NOHEADER;
         ret = avformat_find_stream_info(v->ctx, NULL);
         if (ret < 0)
             goto fail;



More information about the ffmpeg-cvslog mailing list