summaryrefslogtreecommitdiff
path: root/libavfilter/vf_drawbox.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-08-16 00:07:41 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-08-17 21:10:45 +0200
commit1e35744a4ce57925d5134cdd1f1e704e9e211270 (patch)
tree9c93dda83e5de165c45d474b7d32ef934b06dac7 /libavfilter/vf_drawbox.c
parentf60c3ca1361921ff7929a4dc14ed874f22f37f98 (diff)
avfilter/internal: Replace AVFilterPad.needs_writable by flags
It will be useful in the future when more flags are added. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_drawbox.c')
-rw-r--r--libavfilter/vf_drawbox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_drawbox.c b/libavfilter/vf_drawbox.c
index 373a6f45dd..c729ed577a 100644
--- a/libavfilter/vf_drawbox.c
+++ b/libavfilter/vf_drawbox.c
@@ -384,9 +384,9 @@ static const AVFilterPad drawbox_inputs[] = {
{
.name = "default",
.type = AVMEDIA_TYPE_VIDEO,
+ .flags = AVFILTERPAD_FLAG_NEEDS_WRITABLE,
.config_props = config_input,
.filter_frame = filter_frame,
- .needs_writable = 1,
},
{ NULL }
};
@@ -468,9 +468,9 @@ static const AVFilterPad drawgrid_inputs[] = {
{
.name = "default",
.type = AVMEDIA_TYPE_VIDEO,
+ .flags = AVFILTERPAD_FLAG_NEEDS_WRITABLE,
.config_props = config_input,
.filter_frame = drawgrid_filter_frame,
- .needs_writable = 1,
},
{ NULL }
};