[FFmpeg-soc] http header dictionary

Josh Allmann joshua.allmann at gmail.com
Sat Jun 5 19:46:56 CEST 2010


On 5 June 2010 03:26, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Sat, Jun 05, 2010 at 01:44:56AM -0700, Josh Allmann wrote:
>> Hi guys,
>>
>> So I caved and made HTTP headers settable by a dictionary. Let me know
>> what you think.
>
> overkill for http headers (not saying its neccessarily useless for
> other code ...), would belong to libavutil,
> we have a avl tree in avutil alraedy if you need hundreads of headers.

D'oh... if I had known, I would not have done this :)

> and which headers do you want to override anyway?
> if its just 1 or 2 where overriding makes sense there is a much
> simpler solution, namely 1 or 2 int in a struct

I need to add some, replace some, and remove some. But not hundreds.
Will setting headers via flat strings be preferable? Like in the following:
http://github.com/j0sh/ffmpeg-soc/commit/004f4a60761fd7dc3d299525b7f337550f0cc5cd

Josh


More information about the FFmpeg-soc mailing list