diff mbox series

[FFmpeg-devel] avformat/hls: Use probing parameters for actual stream

Message ID 20200316105802.16824-1-jacek.tomasiak@gmail.com
State Withdrawn
Headers show
Series [FFmpeg-devel] avformat/hls: Use probing parameters for actual stream
Related show


Context Check Description
andriy/ffmpeg-patchwork pending
andriy/ffmpeg-patchwork success Applied patch
andriy/ffmpeg-patchwork success Configure finished
andriy/ffmpeg-patchwork success Make finished
andriy/ffmpeg-patchwork success Make fate finished

Commit Message

Jacek Tomasiak March 16, 2020, 10:58 a.m. UTC
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 mbox series


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