[FFmpeg-devel] [PATCH 3/3] avcodec/videotoolboxenc: Fix variable type of AV_OPT_TYPE_BOOL

Rémi Denis-Courmont remi at remlab.net
Tue Jul 16 18:15:44 EEST 2024


Le tiistaina 16. heinäkuuta 2024, 18.10.28 EEST James Almer a écrit :
> No, because -1 is allowed for AV_OPT_TYPE_BOOL, which is used as
> "undefined" in plenty of options.
> And we don't use bool type anywhere as it's not really portable, or at
> least didn't use to. Dunno the current state ever since we moved to c11.

stdbool.h is mandatory in C11. Using booleans is generally better since it 
enables better inference for optimisation and diagnostic passes.

-- 
Rémi Denis-Courmont
http://www.remlab.net/





More information about the ffmpeg-devel mailing list