[FFmpeg-devel] avformat/dashdec: add http_proxy, referer and rw_timeout http method support for segments

Submitted by Steven Liu on June 3, 2019, 8:41 a.m.

Details

Message ID 20190603084104.30288-1-lq@chinaffmpeg.org
State New
Headers show

Commit Message

Steven Liu June 3, 2019, 8:41 a.m.
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
---
 libavformat/dashdec.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c
index 2c50f23c06..315dcae651 100644
--- a/libavformat/dashdec.c
+++ b/libavformat/dashdec.c
@@ -1834,7 +1834,9 @@  end:
 static int save_avio_options(AVFormatContext *s)
 {
     DASHContext *c = s->priv_data;
-    const char *opts[] = { "headers", "user_agent", "cookies", NULL }, **opt = opts;
+    const char *opts[] = {
+        "headers", "user_agent", "cookies", "http_proxy", "referer", "rw_timeout", NULL },
+    const char **opt = opts;
     uint8_t *buf = NULL;
     int ret = 0;