diff mbox

[FFmpeg-devel,V1,2/2] lavf/dashdec: Save and forward more avio options same as HLS demuxer

Message ID 1560476150-5011-2-git-send-email-mypopydev@gmail.com
State New
Headers show

Commit Message

Jun Zhao June 14, 2019, 1:35 a.m. UTC
From: Jun Zhao <barryjzhao@tencent.com>

Save and forward more avio options same as HLS demuxer

Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
---
 libavformat/dashdec.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

Comments

Liu Steven June 14, 2019, 2:05 a.m. UTC | #1
https://patchwork.ffmpeg.org/patch/13388/
reference this patch.

> 在 2019年6月14日,上午9:35,Jun Zhao <mypopydev@gmail.com> 写道:
> 
> From: Jun Zhao <barryjzhao@tencent.com>
> 
> Save and forward more avio options same as HLS demuxer
> 
> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
> ---
> libavformat/dashdec.c |    4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c
> index 2c50f23..446825d 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;
> +    static const char * const opts[] = {
> +        "headers", "http_proxy", "user_agent", "cookies", "referer", "rw_timeout", NULL };
> +    const char * const * opt = opts;
>     uint8_t *buf = NULL;
>     int ret = 0;
> 
> -- 
> 1.7.1
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
diff mbox

Patch

diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c
index 2c50f23..446825d 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;
+    static const char * const opts[] = {
+        "headers", "http_proxy", "user_agent", "cookies", "referer", "rw_timeout", NULL };
+    const char * const * opt = opts;
     uint8_t *buf = NULL;
     int ret = 0;