[FFmpeg-devel] [PATCH] fftools: Avoid build failure on OSX 10.6 with gcc 4.2.1
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Wed Jul 19 01:00:45 EEST 2023
Pavel Koshevoy:
> ping ... could someone review this please
>
> On Sat, Jul 15, 2023 at 12:33 PM Pavel Koshevoy <pkoshevoy at gmail.com> wrote:
>
>> ... and make code more readable / human friendly.
>> ---
>> fftools/ffmpeg_mux_init.c | 3 ++-
>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/fftools/ffmpeg_mux_init.c b/fftools/ffmpeg_mux_init.c
>> index 6458414b5f..bade35896f 100644
>> --- a/fftools/ffmpeg_mux_init.c
>> +++ b/fftools/ffmpeg_mux_init.c
>> @@ -1648,7 +1648,8 @@ read_fail:
>>
>> static int create_streams(Muxer *mux, const OptionsContext *o)
>> {
>> - static const int (*map_func[])(Muxer *mux, const OptionsContext *o) =
>> {
>> + typedef int(*TMapFunc)(Muxer *, const OptionsContext *);
>> + static const TMapFunc map_func[] = {
>> [AVMEDIA_TYPE_VIDEO] = map_auto_video,
>> [AVMEDIA_TYPE_AUDIO] = map_auto_audio,
>> [AVMEDIA_TYPE_SUBTITLE] = map_auto_subtitle,
>> --
>> 2.35.3
>>
>>
This issue has already been fixed in
153cf85b246a7931fac6344f2189cd268ca9e0aa.
- Andreas
More information about the ffmpeg-devel
mailing list