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 <git@haasn.dev>
This commit is contained in:
Niklas Haas
2026-06-23 17:38:52 +02:00
committed by Kacper Michajłow
parent b737bddaf1
commit 45c4f59eb2

View File

@@ -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;