[FFmpeg-devel] [PATCH] Reduce usage of strcmp when setting default options
Mon Nov 2 21:12:34 CET 2009
While doing some profiling, I noticed that av_opt_set_defaults2 would
end up doing a rather big number of strcmp calls.
The problem was that av_opt_set_defaults2 would, for each AVOption:
* call av_set_* ... with the name of the option as the argument
* av_set_* would... search for the AVOption based on the name.
The following patch creates some variants of the existing av_set_*
functions that take an AVOption directly instead of the name of an
The new functions are static and not exposed, if some people want them
to be public, I can add that.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4335 bytes
Desc: not available
More information about the ffmpeg-devel