From 45c4f59eb2da4a084fd2cda52ec362e6185839b8 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Tue, 23 Jun 2026 17:38:52 +0200 Subject: [PATCH] avformat/aviobuf: add prefer_libcurl to ffurl_copy_url_options() Otherwise this doesn't reach e.g. the inner HTTP requets made by HLS etc. Sponsored-by: nxtedition AB Signed-off-by: Niklas Haas --- libavformat/aviobuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index cc71638f0c..60a5d33304 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -994,7 +994,7 @@ void ffio_write_lines(AVIOContext *s, const unsigned char *buf, int size, int ffio_copy_url_options(AVIOContext* pb, AVDictionary** avio_opts) { const char *opts[] = { - "headers", "user_agent", "cookies", "http_proxy", "referer", "rw_timeout", "icy", NULL }; + "headers", "user_agent", "cookies", "http_proxy", "referer", "rw_timeout", "icy", "prefer_libcurl", NULL }; const char **opt = opts; uint8_t *buf = NULL; int ret = 0;