[FFmpeg-devel] [PATCH] lsws/swscale.h: introduce sws_get_gaussian_vec
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Thu Aug 31 19:51:52 EEST 2023
Stefano Sabatini:
> +int sws_get_gaussian_vec(SwsVector **vecp,
> + AVClass *log_ctx,
> + double standard_deviation, double quality);
>
Seriously? A pointer to an AVClass as log_ctx? It is actually AVClass**
(the logcontext must have a pointer to an AVClass as its first member),
but we always use NULL.
Apart from that: I am not really convinced that the improvement is worth
the hassle.
>
> + if (standard_deviation < 0 || quality < 0) {
> + av_log(NULL, AV_LOG_ERROR,
> + "Invalid negative standard deviation %f or quality %f provided as input to the sws_get_gaussian_vec function\n",
> + standard_deviation, quality);
Here you are not even using the logctx.
- Andreas
More information about the ffmpeg-devel
mailing list