[FFmpeg-cvslog] avdevice/lavfi: Make array static const
Andreas Rheinhardt
git at videolan.org
Fri Dec 3 18:23:20 EET 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Thu Dec 2 18:40:39 2021 +0100| [60a2c74a5eaf8d4ab16a68842be3b9cfbd45b467] | committer: Andreas Rheinhardt
avdevice/lavfi: Make array static const
Reviewed-by: Nicolas George <george at nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=60a2c74a5eaf8d4ab16a68842be3b9cfbd45b467
---
libavdevice/lavfi.c | 9 ++++-----
1 file 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,
More information about the ffmpeg-cvslog
mailing list