[FFmpeg-devel] [PATCH] avformat/hls: Use probing parameters for actual stream
Jacek Tomasiak
jacek.tomasiak at gmail.com
Thu Jul 9 13:56:35 EEST 2020
Hi,
Could someone please take a look at this?
It's a pretty small fix and it has been sitting in the queue since March.
Best Regards,
Jacek
pon., 16 mar 2020 o 11:54 Jacek Tomasiak <jacek.tomasiak at gmail.com>
napisaĆ(a):
> 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
>
>
--
| PZDR Jacek aka SkaZi \\
| mail: jacek.tomasiak at gmail.com "Oset nie ma zadnego /O `----.
| XMPP/Jabber: skazi at tomasiak.pl pozytku z tego, ze * (_.-. )\
| sie na nim siedzi..." *|* rs //--// X
More information about the ffmpeg-devel
mailing list