Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
74fe697f
Commit
74fe697f
authored
Apr 10, 2020
by
Gyan Doshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/delogo: remove deprecated options
Deprecated in 2015 in
8bc708fc
parent
fa736a99
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
14 deletions
+1
-14
vf_delogo.c
libavfilter/vf_delogo.c
+1
-14
No files found.
libavfilter/vf_delogo.c
View file @
74fe697f
...
...
@@ -211,11 +211,6 @@ static const AVOption delogo_options[]= {
{
"y"
,
"set logo y position"
,
OFFSET
(
y_expr
),
AV_OPT_TYPE_STRING
,
{
.
str
=
"-1"
},
0
,
0
,
FLAGS
},
{
"w"
,
"set logo width"
,
OFFSET
(
w_expr
),
AV_OPT_TYPE_STRING
,
{
.
str
=
"-1"
},
0
,
0
,
FLAGS
},
{
"h"
,
"set logo height"
,
OFFSET
(
h_expr
),
AV_OPT_TYPE_STRING
,
{
.
str
=
"-1"
},
0
,
0
,
FLAGS
},
#if LIBAVFILTER_VERSION_MAJOR < 7
/* Actual default value for band/t is 1, set in init */
{
"band"
,
"set delogo area band size"
,
OFFSET
(
band
),
AV_OPT_TYPE_INT
,
{
.
i64
=
0
},
0
,
INT_MAX
,
FLAGS
},
{
"t"
,
"set delogo area band size"
,
OFFSET
(
band
),
AV_OPT_TYPE_INT
,
{
.
i64
=
0
},
0
,
INT_MAX
,
FLAGS
},
#endif
{
"show"
,
"show delogo area"
,
OFFSET
(
show
),
AV_OPT_TYPE_BOOL
,{
.
i64
=
0
},
0
,
1
,
FLAGS
},
{
NULL
}
};
...
...
@@ -272,16 +267,8 @@ static av_cold int init(AVFilterContext *ctx)
CHECK_UNSET_OPT
(
w
);
CHECK_UNSET_OPT
(
h
);
#if LIBAVFILTER_VERSION_MAJOR < 7
if
(
s
->
band
==
0
)
{
/* Unset, use default */
av_log
(
ctx
,
AV_LOG_WARNING
,
"Note: default band value was changed from 4 to 1.
\n
"
);
s
->
band
=
1
;
}
else
if
(
s
->
band
!=
1
)
{
av_log
(
ctx
,
AV_LOG_WARNING
,
"Option band is deprecated.
\n
"
);
}
#else
s
->
band
=
1
;
#endif
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"x:%d y:%d, w:%d h:%d band:%d show:%d
\n
"
,
s
->
x
,
s
->
y
,
s
->
w
,
s
->
h
,
s
->
band
,
s
->
show
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment