You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avfilter/vf_lumakey: Don't manually make frame writable
Instead, set AVFilterPad.needs_writable. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -135,9 +135,6 @@ static int filter_frame(AVFilterLink *link, AVFrame *frame)
|
|||||||
LumakeyContext *s = ctx->priv;
|
LumakeyContext *s = ctx->priv;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (ret = av_frame_make_writable(frame))
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
if (ret = ff_filter_execute(ctx, s->do_lumakey_slice, frame, NULL,
|
if (ret = ff_filter_execute(ctx, s->do_lumakey_slice, frame, NULL,
|
||||||
FFMIN(frame->height, ff_filter_get_nb_threads(ctx))))
|
FFMIN(frame->height, ff_filter_get_nb_threads(ctx))))
|
||||||
return ret;
|
return ret;
|
||||||
@@ -177,6 +174,7 @@ static const AVFilterPad lumakey_inputs[] = {
|
|||||||
.type = AVMEDIA_TYPE_VIDEO,
|
.type = AVMEDIA_TYPE_VIDEO,
|
||||||
.filter_frame = filter_frame,
|
.filter_frame = filter_frame,
|
||||||
.config_props = config_input,
|
.config_props = config_input,
|
||||||
|
.needs_writable = 1,
|
||||||
},
|
},
|
||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user