HLS input streams ignored CLI parameters which control the probing
process. Each stream was initialized with fresh context and used
the default values for probing.
---
 libavformat/hls.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/libavformat/hls.c b/libavformat/hls.c
index 1f58e745a7..5954b1d2d9 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -1919,6 +1919,14 @@ static int hls_read_header(AVFormatContext *s)
         pls->needed = 1;
         pls->parent = s;
 
+        /* Pass top-level probing parameters to actual stream */
+        pls->ctx->probesize = s->probesize;
+        pls->ctx->format_probesize = s->format_probesize;
+        pls->ctx->max_analyze_duration = s->max_analyze_duration;
+        pls->ctx->fps_probe_size = s->fps_probe_size;
+        pls->ctx->max_ts_probe = s->max_ts_probe;
+        pls->ctx->max_probe_packets = s->max_probe_packets;
+
         /*
          * If this is a live stream and this playlist looks like it is one 
segment
          * behind, try to sync it up so that every substream starts at the same
-- 
2.16.4

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to