mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-19 05:55:07 +00:00
avdevice/lavfi: Make array static const
Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
88af0962ef
commit
60a2c74a5e
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user