Commit cc752233 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/f_ebur128: check if frame clone is set

parent c43f8baa
......@@ -774,6 +774,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
/* push one video frame */
if (ebur128->do_video) {
AVFrame *clone;
int x, y, ret;
uint8_t *p;
double gauge_value;
......@@ -823,7 +824,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
/* set pts and push frame */
pic->pts = pts;
ret = ff_filter_frame(outlink, av_frame_clone(pic));
clone = av_frame_clone(pic);
if (!clone)
return AVERROR(ENOMEM);
ret = ff_filter_frame(outlink, clone);
if (ret < 0)
return ret;
}
......
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