[FFmpeg-devel] [PATCH 1/1] avformat/hlsenc: Added configuration to override HTTP User-Agent

Michael Niedermayer michael at niedermayer.cc
Tue Sep 5 16:45:00 EEST 2017


On Mon, Sep 04, 2017 at 08:16:53AM +0000, Jeyapal, Karthick wrote:
> >On 9/4/17, 1:36 PM, "Steven Liu" <lingjiujianke at gmail.com<mailto:lingjiujianke at gmail.com>> wrote:
> >+    if (c->user_agent)
> >+        av_dict_set(options, "user-agent", c->user_agent, 0);
> >
> >should be
> >av_dict_set(options, "user_agent", c->user_agent, 0);
> 
> Oh! OK Got it. Sorry for the confusion. Have attached the patch with user_agent being set.
> 
> Thanks,
> Karthick

>  doc/muxers.texi       |    4 ++++
>  libavformat/hlsenc.c  |    5 +++++
>  libavformat/version.h |    2 +-
>  3 files changed, 10 insertions(+), 1 deletion(-)
> 012d43c19fc3e01262158cd9becb63ce582f02f9  0001-avformat-hlsenc-Added-configuration-to-override-HTTP.patch
> From 7edb12511ec72ada156af86cc8b23c9410695117 Mon Sep 17 00:00:00 2001
> From: Karthick J <kjeyapal at akamai.com>
> Date: Fri, 1 Sep 2017 15:55:48 +0530
> Subject: [PATCH 1/1] avformat/hlsenc: Added configuration to override HTTP
>  User-Agent
> 
> Signed-off-by: Karthick J <kjeyapal at akamai.com>
> ---
>  doc/muxers.texi       | 4 ++++
>  libavformat/hlsenc.c  | 5 +++++
>  libavformat/version.h | 2 +-
>  3 files changed, 10 insertions(+), 1 deletion(-)

doesnt apply automatically

Applying: avformat/hlsenc: Added configuration to override HTTP User-Agent
error: sha1 information is lacking or useless (libavformat/hlsenc.c).
error: could not build fake ancestor
Patch failed at 0001 avformat/hlsenc: Added configuration to override HTTP User-Agent
The copy of the patch that failed is found in: .git/rebase-apply/patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".


[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

"You are 36 times more likely to die in a bathtub than at the hands of a
terrorist. Also, you are 2.5 times more likely to become a president and
2 times more likely to become an astronaut, than to die in a terrorist
attack." -- Thoughty2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170905/45a33f25/attachment.sig>


More information about the ffmpeg-devel mailing list