Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-01-14 18:41:15 +0300
committerPaul B Mahol <onemda@gmail.com>2020-01-14 18:52:07 +0300
commitc43f8baa41ee1db179db53664fe39324800ee076 (patch)
tree26169112d415585d607b2d16c47b7783684110d7 /libavfilter/avf_aphasemeter.c
parentd580c7a7979613f352cfc9701f7ff4fe83b33af2 (diff)
avfilter/avf_aphasemeter: check if clone frame is set
Diffstat (limited to 'libavfilter/avf_aphasemeter.c')
-rw-r--r--libavfilter/avf_aphasemeter.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libavfilter/avf_aphasemeter.c b/libavfilter/avf_aphasemeter.c
index f497bc9969..be0b2fb70f 100644
--- a/libavfilter/avf_aphasemeter.c
+++ b/libavfilter/avf_aphasemeter.c
@@ -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);
}