[MPlayer-dev-eng] [PATCH] allow builtin codecs table to be const

Uoti Urpala uoti.urpala at pp1.inet.fi
Wed Dec 5 03:55:49 CET 2007


On Tue, 2007-12-04 at 19:37 +0100, Reimar Döffinger wrote:
> But actually the concept of tagging the already tried codecs might be
> rather stupid anyway, the tagged codecs all respond to the same fourcc,
> so the O(f(n)) performance does not really matter and we could just do
> something like use a (realloced) list of pointers to the strdup'd codec
> names which would make this completely independent of the structure of
> the codec list used.
> What do you think?

Why not just a list of pointers to the "tagged" codec structs? Do you
expect those to be dynamically created+freed or moved between uses of
the list?




More information about the MPlayer-dev-eng mailing list