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
9ace0dbe
Commit
9ace0dbe
authored
Mar 14, 2013
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/ebur128: use same ref for inputs and outputs.
Fixes Ticket2342.
parent
870e6251
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
17 deletions
+6
-17
f_ebur128.c
libavfilter/f_ebur128.c
+6
-17
No files found.
libavfilter/f_ebur128.c
View file @
9ace0dbe
...
...
@@ -665,22 +665,6 @@ static int query_formats(AVFilterContext *ctx)
static
const
int
input_srate
[]
=
{
48000
,
-
1
};
// ITU-R BS.1770 provides coeff only for 48kHz
static
const
enum
AVPixelFormat
pix_fmts
[]
=
{
AV_PIX_FMT_RGB24
,
AV_PIX_FMT_NONE
};
/* set input audio formats */
formats
=
ff_make_format_list
(
sample_fmts
);
if
(
!
formats
)
return
AVERROR
(
ENOMEM
);
ff_formats_ref
(
formats
,
&
inlink
->
out_formats
);
layouts
=
ff_all_channel_layouts
();
if
(
!
layouts
)
return
AVERROR
(
ENOMEM
);
ff_channel_layouts_ref
(
layouts
,
&
inlink
->
out_channel_layouts
);
formats
=
ff_make_format_list
(
input_srate
);
if
(
!
formats
)
return
AVERROR
(
ENOMEM
);
ff_formats_ref
(
formats
,
&
inlink
->
out_samplerates
);
/* set optional output video format */
if
(
ebur128
->
do_video
)
{
formats
=
ff_make_format_list
(
pix_fmts
);
...
...
@@ -690,20 +674,25 @@ static int query_formats(AVFilterContext *ctx)
outlink
=
ctx
->
outputs
[
1
];
}
/* set audio output formats (same as input since it's just a passthrough) */
/* set input and output audio formats
* Note: ff_set_common_* functions are not used because they affect all the
* links, and thus break the video format negociation */
formats
=
ff_make_format_list
(
sample_fmts
);
if
(
!
formats
)
return
AVERROR
(
ENOMEM
);
ff_formats_ref
(
formats
,
&
inlink
->
out_formats
);
ff_formats_ref
(
formats
,
&
outlink
->
in_formats
);
layouts
=
ff_all_channel_layouts
();
if
(
!
layouts
)
return
AVERROR
(
ENOMEM
);
ff_channel_layouts_ref
(
layouts
,
&
inlink
->
out_channel_layouts
);
ff_channel_layouts_ref
(
layouts
,
&
outlink
->
in_channel_layouts
);
formats
=
ff_make_format_list
(
input_srate
);
if
(
!
formats
)
return
AVERROR
(
ENOMEM
);
ff_formats_ref
(
formats
,
&
inlink
->
out_samplerates
);
ff_formats_ref
(
formats
,
&
outlink
->
in_samplerates
);
return
0
;
...
...
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