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
f1873909
Commit
f1873909
authored
Aug 03, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc/examples/filtering_audio: make const arrays also static
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
5b76c3a1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
filtering_audio.c
doc/examples/filtering_audio.c
+5
-5
No files found.
doc/examples/filtering_audio.c
View file @
f1873909
...
...
@@ -38,8 +38,8 @@
#include <libavfilter/buffersrc.h>
#include <libavutil/opt.h>
const
char
*
filter_descr
=
"aresample=8000,aformat=sample_fmts=s16:channel_layouts=mono"
;
const
char
*
player
=
"ffplay -f s16le -ar 8000 -ac 1 -"
;
static
const
char
*
filter_descr
=
"aresample=8000,aformat=sample_fmts=s16:channel_layouts=mono"
;
static
const
char
*
player
=
"ffplay -f s16le -ar 8000 -ac 1 -"
;
static
AVFormatContext
*
fmt_ctx
;
static
AVCodecContext
*
dec_ctx
;
...
...
@@ -90,9 +90,9 @@ static int init_filters(const char *filters_descr)
AVFilter
*
abuffersink
=
avfilter_get_by_name
(
"abuffersink"
);
AVFilterInOut
*
outputs
=
avfilter_inout_alloc
();
AVFilterInOut
*
inputs
=
avfilter_inout_alloc
();
const
enum
AVSampleFormat
out_sample_fmts
[]
=
{
AV_SAMPLE_FMT_S16
,
-
1
};
const
int64_t
out_channel_layouts
[]
=
{
AV_CH_LAYOUT_MONO
,
-
1
};
const
int
out_sample_rates
[]
=
{
8000
,
-
1
};
static
const
enum
AVSampleFormat
out_sample_fmts
[]
=
{
AV_SAMPLE_FMT_S16
,
-
1
};
static
const
int64_t
out_channel_layouts
[]
=
{
AV_CH_LAYOUT_MONO
,
-
1
};
static
const
int
out_sample_rates
[]
=
{
8000
,
-
1
};
const
AVFilterLink
*
outlink
;
AVRational
time_base
=
fmt_ctx
->
streams
[
audio_stream_index
]
->
time_base
;
...
...
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