[FFmpeg-devel] [RFC] An hash table container in libavutil?

Stefano Sabatini stefano.sabatini-lala
Fri May 23 09:31:27 CEST 2008


On date Friday 2008-05-23 02:41:30 +0200, Michael Niedermayer encoded:
> On Fri, May 23, 2008 at 01:27:41AM +0200, Stefano Sabatini wrote:
[...]
> > (for what regards the
> > av_set_string() problem, I'll try to look meaningwhile for a simpler
> > solution).
> 
> Dont bother, ive fixed the bug already.

Sorry to bother again ;-), but your solution has still two problems,
first av_get_double() when called the first time returns the value
already contained in the context and not 0 as we expect, second the
evaluation of the string has to be performed *globally*, or something
like -1+2 => +1 will fail when evaluating the first -1 if for example
-1 is out of range (cleanest solution looks like to use ff_eval on the
whole value string).

Regards.
-- 
FFmpeg = Foolish and Furious Multimedia Powered EnGine




More information about the ffmpeg-devel mailing list