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:47:45 +0300
commitce2a77b52ed54b66f4d0b7618021058f88a34ee5 (patch)
tree937b4fc83952255105e86423dd88885128269f76 /libavfilter/vf_despill.c
parent6140eb720e53f9c9bd6f4f7c2bdb43161527109c (diff)
avfilter/vf_despill: 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_despill.c')
-rw-r--r--libavfilter/vf_despill.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavfilter/vf_despill.c b/libavfilter/vf_despill.c
index fb9c3bb988..5fe9b79dd0 100644
--- a/libavfilter/vf_despill.c
+++ b/libavfilter/vf_despill.c
@@ -94,9 +94,6 @@ static int filter_frame(AVFilterLink *link, AVFrame *frame)
AVFilterContext *ctx = link->dst;
int ret;
- if (ret = av_frame_make_writable(frame))
- return ret;
-
if (ret = ff_filter_execute(ctx, do_despill_slice, frame, NULL,
FFMIN(frame->height, ff_filter_get_nb_threads(ctx))))
return ret;
@@ -135,6 +132,7 @@ static const AVFilterPad despill_inputs[] = {
.name = "default",
.type = AVMEDIA_TYPE_VIDEO,
.filter_frame = filter_frame,
+ .needs_writable = 1,
},
{ NULL }
};