diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-08-01 22:13:26 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-08-15 22:47:10 +0200 |
commit | 6140eb720e53f9c9bd6f4f7c2bdb43161527109c (patch) | |
tree | 6dbd8d022080958c4198b94fab60cc54ac065360 /libavfilter/vf_lumakey.c | |
parent | 2f4b43a5a153e44476603a9cef30a1f1a08d749f (diff) |
avfilter/vf_lumakey: Don't manually make frame writable
Instead, set AVFilterPad.needs_writable.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_lumakey.c')
-rw-r--r-- | libavfilter/vf_lumakey.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavfilter/vf_lumakey.c b/libavfilter/vf_lumakey.c index 763c5098ba..d59ad2d5ba 100644 --- a/libavfilter/vf_lumakey.c +++ b/libavfilter/vf_lumakey.c @@ -135,9 +135,6 @@ static int filter_frame(AVFilterLink *link, AVFrame *frame) LumakeyContext *s = ctx->priv; int ret; - if (ret = av_frame_make_writable(frame)) - return ret; - if (ret = ff_filter_execute(ctx, s->do_lumakey_slice, frame, NULL, FFMIN(frame->height, ff_filter_get_nb_threads(ctx)))) return ret; @@ -177,6 +174,7 @@ static const AVFilterPad lumakey_inputs[] = { .type = AVMEDIA_TYPE_VIDEO, .filter_frame = filter_frame, .config_props = config_input, + .needs_writable = 1, }, { NULL } }; |