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:
parent
d580c7a797
commit
c43f8baa41
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user