diff --git a/libavfilter/vf_shufflepixels.c b/libavfilter/vf_shufflepixels.c index b404eefe66..b5e757c929 100644 --- a/libavfilter/vf_shufflepixels.c +++ b/libavfilter/vf_shufflepixels.c @@ -377,6 +377,11 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) ThreadData td; int ret; + if (!out) { + ret = AVERROR(ENOMEM); + goto fail; + } + ret = av_frame_copy_props(out, in); if (ret < 0) { av_frame_free(&out);