mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-04 14:40:26 +00:00
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>
40 lines
1.2 KiB
C
40 lines
1.2 KiB
C
/*
|
|
* This file is part of FFmpeg.
|
|
*
|
|
* FFmpeg is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with FFmpeg; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
#ifndef AVFORMAT_CBS_H
|
|
#define AVFORMAT_CBS_H
|
|
|
|
#include "config.h"
|
|
|
|
#define CBS_PREFIX lavf_cbs
|
|
#define CBS_WRITE 0
|
|
#define CBS_TRACE 0
|
|
#define CBS_APV CONFIG_CBS_APV_LAVF
|
|
#define CBS_AV1 CONFIG_CBS_AV1_LAVF
|
|
#define CBS_H264 0
|
|
#define CBS_H265 0
|
|
#define CBS_H266 0
|
|
#define CBS_JPEG 0
|
|
#define CBS_LCEVC 0
|
|
#define CBS_MPEG2 0
|
|
#define CBS_VP8 0
|
|
#define CBS_VP9 0
|
|
|
|
#include "libavcodec/cbs.h"
|
|
|
|
#endif /* AVFORMAT_CBS_H */
|