summaryrefslogtreecommitdiff
path: root/libavfilter/af_silencedetect.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-12-21 22:38:59 +0000
committerPaul B Mahol <onemda@gmail.com>2012-12-21 22:38:59 +0000
commit185d1f3bfcace747aed74e695447104e977b4455 (patch)
tree490fbd157e063fa5a39eb57614b9c40643c8e704 /libavfilter/af_silencedetect.c
parent165be91c2bd5cc748ebda8932a5e2ca9f4d52f6d (diff)
lavfi: declare arrays that never change as static const
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/af_silencedetect.c')
-rw-r--r--libavfilter/af_silencedetect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_silencedetect.c b/libavfilter/af_silencedetect.c
index ef014f61fc..8a60176137 100644
--- a/libavfilter/af_silencedetect.c
+++ b/libavfilter/af_silencedetect.c
@@ -131,7 +131,7 @@ static int query_formats(AVFilterContext *ctx)
{
AVFilterFormats *formats = NULL;
AVFilterChannelLayouts *layouts = NULL;
- enum AVSampleFormat sample_fmts[] = {
+ static const enum AVSampleFormat sample_fmts[] = {
AV_SAMPLE_FMT_DBL,
AV_SAMPLE_FMT_NONE
};