[FFmpeg-devel] [PATCH] Added more commandline options for libaom encoder.

Moritz Barsnick barsnick at gmx.net
Tue Mar 12 18:13:59 EET 2019


On Tue, Mar 12, 2019 at 11:45:06 -0300, James Almer wrote:
> > +    { "frame-parallel",   "Enable frame parallel decodability features", OFFSET(frame_parallel),  AV_OPT_TYPE_BOOL,{.i64 = -1}, -1, 1, VE},
> 
> A bool with three values is weird. If this is meant to be disabled by
> default, then just make it 0 and remove the >= 0 condition above.

It's actually quite common with ffmpeg options. Such an option can only
be assigned true or false, but if it isn't assigned, it will be e.g. -1
and can be used to trigger a default mode, as is apparently done here
(by not setting this option through the API, probably letting the
library do whatever it considers default).

Cheers,
Moritz


More information about the ffmpeg-devel mailing list