diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-12-21 22:38:59 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-12-21 22:38:59 +0000 |
commit | 185d1f3bfcace747aed74e695447104e977b4455 (patch) | |
tree | 490fbd157e063fa5a39eb57614b9c40643c8e704 /libavfilter/asrc_aevalsrc.c | |
parent | 165be91c2bd5cc748ebda8932a5e2ca9f4d52f6d (diff) | |
download | ffmpeg-185d1f3bfcace747aed74e695447104e977b4455.tar.gz |
lavfi: declare arrays that never change as static const
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/asrc_aevalsrc.c')
-rw-r--r-- | libavfilter/asrc_aevalsrc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/asrc_aevalsrc.c b/libavfilter/asrc_aevalsrc.c index eaf79755ee..3315f1f563 100644 --- a/libavfilter/asrc_aevalsrc.c +++ b/libavfilter/asrc_aevalsrc.c @@ -198,7 +198,7 @@ static int config_props(AVFilterLink *outlink) static int query_formats(AVFilterContext *ctx) { EvalContext *eval = ctx->priv; - enum AVSampleFormat sample_fmts[] = { AV_SAMPLE_FMT_DBLP, AV_SAMPLE_FMT_NONE }; + static const enum AVSampleFormat sample_fmts[] = { AV_SAMPLE_FMT_DBLP, AV_SAMPLE_FMT_NONE }; int64_t chlayouts[] = { eval->chlayout, -1 }; int sample_rates[] = { eval->sample_rate, -1 }; |