You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02: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:
@@ -269,11 +269,10 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx)
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto end;
|
goto end;
|
||||||
} else if (type == AVMEDIA_TYPE_AUDIO) {
|
} else if (type == AVMEDIA_TYPE_AUDIO) {
|
||||||
enum AVSampleFormat sample_fmts[] = { AV_SAMPLE_FMT_U8,
|
static const enum AVSampleFormat sample_fmts[] = {
|
||||||
AV_SAMPLE_FMT_S16,
|
AV_SAMPLE_FMT_U8, AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_S32,
|
||||||
AV_SAMPLE_FMT_S32,
|
AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_DBL, -1
|
||||||
AV_SAMPLE_FMT_FLT,
|
};
|
||||||
AV_SAMPLE_FMT_DBL, -1 };
|
|
||||||
|
|
||||||
ret = avfilter_graph_create_filter(&sink, abuffersink,
|
ret = avfilter_graph_create_filter(&sink, abuffersink,
|
||||||
inout->name, NULL,
|
inout->name, NULL,
|
||||||
|
Reference in New Issue
Block a user