[FFmpeg-cvslog] avfilter/vf_despill: Don't manually make frame writable
Andreas Rheinhardt
git at videolan.org
Mon Aug 16 00:16:03 EEST 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sun Aug 1 22:13:26 2021 +0200| [ce2a77b52ed54b66f4d0b7618021058f88a34ee5] | committer: Andreas Rheinhardt
avfilter/vf_despill: Don't manually make frame writable
Instead, set AVFilterPad.needs_writable.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ce2a77b52ed54b66f4d0b7618021058f88a34ee5
---
libavfilter/vf_despill.c | 4 +---
1 file changed, 1 insertion(+), 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 }
};
More information about the ffmpeg-cvslog
mailing list