Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-08-01 23:13:26 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-08-15 23:48:46 +0300
commit631c4db13b9347c38b42e10a3ca73e3408e6a2b7 (patch)
tree2e19b01d29b56dbce63724c78b27ecc496079bfa /libavfilter/vf_colorkey.c
parentce2a77b52ed54b66f4d0b7618021058f88a34ee5 (diff)
avfilter/vf_colorkey: 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_colorkey.c')
-rw-r--r--libavfilter/vf_colorkey.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavfilter/vf_colorkey.c b/libavfilter/vf_colorkey.c
index eb3173ff43..dea7f89e28 100644
--- a/libavfilter/vf_colorkey.c
+++ b/libavfilter/vf_colorkey.c
@@ -135,9 +135,6 @@ static int filter_frame(AVFilterLink *link, AVFrame *frame)
ColorkeyContext *ctx = avctx->priv;
int res;
- if (res = av_frame_make_writable(frame))
- return res;
-
if (res = ff_filter_execute(avctx, ctx->do_slice, frame, NULL,
FFMIN(frame->height, ff_filter_get_nb_threads(avctx))))
return res;
@@ -180,6 +177,7 @@ static const AVFilterPad colorkey_inputs[] = {
.name = "default",
.type = AVMEDIA_TYPE_VIDEO,
.filter_frame = filter_frame,
+ .needs_writable = 1,
},
{ NULL }
};