mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 17:32:06 +00:00
avfilter/vf_tpad: if there is no frame to clone return early
This commit is contained in:
parent
a2b090da79
commit
3715f2f864
@ -148,6 +148,11 @@ static int activate(AVFilterContext *ctx)
|
||||
frame->data, frame->linesize,
|
||||
0, 0, frame->width, frame->height);
|
||||
} else if (s->stop_mode == 1) {
|
||||
if (!s->cache_stop) {
|
||||
s->pad_stop = 0;
|
||||
ff_outlink_set_status(outlink, AVERROR_EOF, s->pts);
|
||||
return 0;
|
||||
}
|
||||
frame = av_frame_clone(s->cache_stop);
|
||||
if (!frame)
|
||||
return AVERROR(ENOMEM);
|
||||
|
Loading…
Reference in New Issue
Block a user