[FFmpeg-devel] swscale: fix style issues and check malloc in ff_shuffle_filter_coefficients
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Tue Dec 21 21:18:22 EET 2021
Lynne:
>
> + if (filterSize > 4) {
> + int16_t *tmp2 = av_malloc(dstW * filterSize * 2);
> + if (!tmp2)
> + return AVERROR(ENOMEM);
> +
> + memcpy(tmp2, filter, dstW * filterSize * 2);
Could use av_memdup().
- Andreas
More information about the ffmpeg-devel
mailing list