Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-12-02 20:40:39 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-12-03 19:00:52 +0300
commit60a2c74a5eaf8d4ab16a68842be3b9cfbd45b467 (patch)
tree331295fcd0949fe81d19c2726a2ce7b3667cc09c /libavdevice/lavfi.c
parent88af0962ef76582a1f4772ee81816512a6646edb (diff)
avdevice/lavfi: Make array static const
Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavdevice/lavfi.c')
-rw-r--r--libavdevice/lavfi.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c
index 878bb193af..b208b1a928 100644
--- a/libavdevice/lavfi.c
+++ b/libavdevice/lavfi.c
@@ -269,11 +269,10 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx)
if (ret < 0)
goto end;
} else if (type == AVMEDIA_TYPE_AUDIO) {
- enum AVSampleFormat sample_fmts[] = { AV_SAMPLE_FMT_U8,
- AV_SAMPLE_FMT_S16,
- AV_SAMPLE_FMT_S32,
- AV_SAMPLE_FMT_FLT,
- AV_SAMPLE_FMT_DBL, -1 };
+ static const enum AVSampleFormat sample_fmts[] = {
+ AV_SAMPLE_FMT_U8, AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_S32,
+ AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_DBL, -1
+ };
ret = avfilter_graph_create_filter(&sink, abuffersink,
inout->name, NULL,