fftools/ffmpeg_mux_init: fix an array declaration

map_func is supposed to be an array of const pointer to function
returning int, not an array of pointer to function returning const int.

Reported-By: Martin Storsjö
This commit is contained in:
Anton Khirnov 2023-07-16 10:27:29 +02:00
parent 35342dc390
commit 153cf85b24

View File

@ -1648,7 +1648,7 @@ read_fail:
static int create_streams(Muxer *mux, const OptionsContext *o)
{
static const int (*map_func[])(Muxer *mux, const OptionsContext *o) = {
static int (* const map_func[])(Muxer *mux, const OptionsContext *o) = {
[AVMEDIA_TYPE_VIDEO] = map_auto_video,
[AVMEDIA_TYPE_AUDIO] = map_auto_audio,
[AVMEDIA_TYPE_SUBTITLE] = map_auto_subtitle,