Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
8661b5e8
Commit
8661b5e8
authored
Nov 01, 2023
by
Andreas Rheinhardt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_format: Deduplicate inputs
Signed-off-by:
Andreas Rheinhardt
<
andreas.rheinhardt@outlook.com
>
parent
c32c1a18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
14 deletions
+4
-14
vf_format.c
libavfilter/vf_format.c
+4
-14
No files found.
libavfilter/vf_format.c
View file @
8661b5e8
...
...
@@ -144,9 +144,7 @@ static const AVOption options[] = {
AVFILTER_DEFINE_CLASS_EXT
(
format
,
"(no)format"
,
options
);
#if CONFIG_FORMAT_FILTER
static
const
AVFilterPad
avfilter_vf_format_inputs
[]
=
{
static
const
AVFilterPad
inputs
[]
=
{
{
.
name
=
"default"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
...
...
@@ -154,6 +152,7 @@ static const AVFilterPad avfilter_vf_format_inputs[] = {
},
};
#if CONFIG_FORMAT_FILTER
const
AVFilter
ff_vf_format
=
{
.
name
=
"format"
,
.
description
=
NULL_IF_CONFIG_SMALL
(
"Convert the input video to one of the specified pixel formats."
),
...
...
@@ -166,7 +165,7 @@ const AVFilter ff_vf_format = {
.
flags
=
AVFILTER_FLAG_METADATA_ONLY
,
FILTER_INPUTS
(
avfilter_vf_format_
inputs
),
FILTER_INPUTS
(
inputs
),
FILTER_OUTPUTS
(
ff_video_default_filterpad
),
FILTER_QUERY_FUNC
(
query_formats
),
...
...
@@ -174,15 +173,6 @@ const AVFilter ff_vf_format = {
#endif
/* CONFIG_FORMAT_FILTER */
#if CONFIG_NOFORMAT_FILTER
static
const
AVFilterPad
avfilter_vf_noformat_inputs
[]
=
{
{
.
name
=
"default"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
get_buffer
.
video
=
ff_null_get_video_buffer
,
},
};
const
AVFilter
ff_vf_noformat
=
{
.
name
=
"noformat"
,
.
description
=
NULL_IF_CONFIG_SMALL
(
"Force libavfilter not to use any of the specified pixel formats for the input to the next filter."
),
...
...
@@ -195,7 +185,7 @@ const AVFilter ff_vf_noformat = {
.
flags
=
AVFILTER_FLAG_METADATA_ONLY
,
FILTER_INPUTS
(
avfilter_vf_noformat_
inputs
),
FILTER_INPUTS
(
inputs
),
FILTER_OUTPUTS
(
ff_video_default_filterpad
),
FILTER_QUERY_FUNC
(
query_formats
),
...
...
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