1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter/avf_aphasemeter: check if clone frame is set

This commit is contained in:
Paul B Mahol 2020-01-14 16:41:15 +01:00
parent d580c7a797
commit c43f8baa41

View File

@ -213,8 +213,13 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
}
if (s->do_video) {
AVFrame *clone;
s->out->pts = in->pts;
ff_filter_frame(outlink, av_frame_clone(s->out));
clone = av_frame_clone(s->out);
if (!clone)
return AVERROR(ENOMEM);
ff_filter_frame(outlink, clone);
}
return ff_filter_frame(aoutlink, in);
}