[FFmpeg-devel] [PATCH 1/4] avutil: add av_format_option_for_user() callback system

wm4 nfxjfg at googlemail.com
Mon May 11 13:48:15 CEST 2015


On Mon, 11 May 2015 13:17:16 +0200
Nicolas George <george at nsup.org> wrote:

> Le duodi 22 floréal, an CCXXIII, James Almer a écrit :
> > If this is meant to solve the whole debate from the "Tell users about
> > -use_absolute_path" thread, then i think it's a bit overkill. "Set
> > <AVOption> to <value>" is generic enough that works in any situation, be
> > it for API user or ffmpeg.c, and could be used in every av_log message.
> 
> I concur. Also, note that the object that requires the option is given as
> context to the log callback, therefore it is possible to know,
> programatically, if the option is needed for a muxer, demuxer, decoder,
> protocol, etc.

This doesn't work because the log callback is process-global. There may
be multiple independent ffmpeg users in the same process.


More information about the ffmpeg-devel mailing list