mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-05-08 20:13:23 +02:00
6a59c847b5
Right now, the cbs_type_table (the table of all CodedBitstreamTypes supported by CBS) is empty unless cbs_apv and cbs_av1 is enabled. The latter are only enabled in configure if they are needed in lavc. This means that the mov muxers (the only users of cbs-in-lavf) don't work as they should depending upon the availability of e.g. the av1_metadata BSF. The table being empty is also illegal C and according to PR #23038 MSVC warns about this (as does GCC with -pedantic) and it may even lead to an internal compiler error. This could be fixed by simply adding a mov_muxer->cbs_av1,cbs_apv dependency in configure, yet this would have the downside that it would force cbs_av1 and cbs_apv to be built for lavc, too, even though it may not be needed there. So add new configure variables cbs_{apv,av1}_lavf and cbs_lavf to track this correctly. Reported-by: xiaozhuai <798047000@qq.com> Reviewed-by: James Almer <jamrial@gmail.com> Reviewed-by: xiaozhuai <798047000@qq.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>