diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-08-03 22:22:03 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-08-03 22:22:03 +0200 |
commit | f1873909070da597c471e4fc0ea1a6b94f41cd67 (patch) | |
tree | c48128cc778a2f307b73ea1a5f33b1071be9b86d /doc/examples | |
parent | 5b76c3a1204944a74f4c1fb4ce1ebe58940e7f78 (diff) | |
download | ffmpeg-f1873909070da597c471e4fc0ea1a6b94f41cd67.tar.gz |
doc/examples/filtering_audio: make const arrays also static
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'doc/examples')
-rw-r--r-- | doc/examples/filtering_audio.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/examples/filtering_audio.c b/doc/examples/filtering_audio.c index 72cf7902e2..35dd4e7d28 100644 --- a/doc/examples/filtering_audio.c +++ b/doc/examples/filtering_audio.c @@ -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; |