avfilter/vf_tmidequalizer: check that frame is valid
This commit is contained in:
@ -178,6 +178,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
|
|||||||
} else {
|
} else {
|
||||||
s->l_frames++;
|
s->l_frames++;
|
||||||
}
|
}
|
||||||
|
if (!s->frames[idx])
|
||||||
|
return AVERROR_EOF;
|
||||||
in = av_frame_clone(s->frames[idx]);
|
in = av_frame_clone(s->frames[idx]);
|
||||||
if (!in)
|
if (!in)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
Reference in New Issue
Block a user