Commit 89505f2c authored by Stefano Sabatini's avatar Stefano Sabatini

lavfi/unsharp: add missing NULL check

parent 64e592ee
......@@ -216,7 +216,8 @@ static int init_filter_param(AVFilterContext *ctx, FilterParam *fp, const char *
effect, effect_type, fp->msize_x, fp->msize_y, fp->amount / 65535.0);
for (z = 0; z < 2 * fp->steps_y; z++)
fp->sc[z] = av_malloc(sizeof(*(fp->sc[z])) * (width + 2 * fp->steps_x));
if (!(fp->sc[z] = av_malloc(sizeof(*(fp->sc[z])) * (width + 2 * fp->steps_x))))
return AVERROR(ENOMEM);
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment