Andreas Rheinhardt (12021-10-09):
> Currently an API user has no easy way that always works to know
> whether an AVFilter supports commands. One can check for whether
> the filter has any AVOption with AV_OPT_FLAG_RUNTIME_PARAM set,
> but this is a bit of extra work and more importantly it doesn't
> work for all filters: anequalizer, ladspa, drawtext, overlay, pp,
> concat and (a)movie accept commands, but have no AVOptions of this
> type. Tellingly ffprobe/cmdutils.c has to abuse the API and check
> for AVFilter.process_command to know whether a filter accepts commands.
> 
> This commit fixes this by adding a new AVFilter flag.

I do not like it: it requires redundant changes in all the filters.

It would be more elegant to add avfilter_can_process_commands() that can
check for the process_command callback.

Regards,

-- 
  Nicolas George

Attachment: signature.asc
Description: PGP signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to