This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit dc902654de6af857592a6e6f448de2317f611aab Author: Niklas Haas <[email protected]> AuthorDate: Mon Jun 1 17:34:30 2026 +0200 Commit: Niklas Haas <[email protected]> CommitDate: Wed Jun 3 21:39:55 2026 +0000 swscale: add missing validation for newly added enums Gives slightly better error messages for invalid values. Signed-off-by: Niklas Haas <[email protected]> --- libswscale/swscale.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 25bd8fc293..ca7eddbdef 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -1441,6 +1441,9 @@ static int validate_params(SwsContext *ctx) VALIDATE(threads, 0, SWS_MAX_THREADS); VALIDATE(dither, 0, SWS_DITHER_NB - 1) VALIDATE(alpha_blend, 0, SWS_ALPHA_BLEND_NB - 1) + VALIDATE(intent, 0, SWS_INTENT_NB - 1); + VALIDATE(scaler, 0, SWS_SCALE_NB - 1) + VALIDATE(scaler_sub, 0, SWS_SCALE_NB - 1) return 0; } _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
