[FFmpeg-devel] [PATCH] http: add user_agent option.

Stefano Sabatini stefasab at gmail.com
Thu Sep 29 01:07:16 CEST 2011


On date Wednesday 2011-09-28 21:07:12 +0200, Clément Bœsch encoded:
> ---
> Hi :)
> 
> I'm not able to actually test this patch; the option parsing looks broken (or
> I'm doing something wrong):
> 
> ./ffplay -user-agent
> → missing argument, ok
> 
> ./ffplay -user-agent foobar
> → Unrecognized option 'user-agent'
>   Failed to set value 'foo' for option 'user-agent'
>
>   Why unrecognized here?
> 
> ./ffplay -user-agent foobar http://example.org
> → Unrecognized option 'user-agent'
>   Failed to set value 'foobar' for option 'user-agent'
> 
>   Doesn't seem to help.

user-agent is a protocol option, right now it is not possible to set
protocol options (check cmdutils.c:opt_default). Don't ask me why though...

> Setting -user-agent foobar after the URL doesn't raise an error but doesn't
> actually set the option.

Bug?

> 
> Any hint?
-- 
FFmpeg = Friendly & Fascinating Muttering Portable Elaborated Gymnast


More information about the ffmpeg-devel mailing list