From: Niklas Haas <g...@haasn.dev> --- libswscale/format.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/libswscale/format.c b/libswscale/format.c index e4c1348b90..b77081dd7a 100644 --- a/libswscale/format.c +++ b/libswscale/format.c @@ -24,14 +24,14 @@ #include "format.h" -typedef struct FormatEntry { +typedef struct LegacyFormatEntry { uint8_t is_supported_in :1; uint8_t is_supported_out :1; uint8_t is_supported_endianness :1; -} FormatEntry; +} LegacyFormatEntry; /* Format support table for legacy swscale */ -static const FormatEntry format_entries[] = { +static const LegacyFormatEntry legacy_format_entries[] = { [AV_PIX_FMT_YUV420P] = { 1, 1 }, [AV_PIX_FMT_YUYV422] = { 1, 1 }, [AV_PIX_FMT_RGB24] = { 1, 1 }, @@ -262,20 +262,20 @@ static const FormatEntry format_entries[] = { int sws_isSupportedInput(enum AVPixelFormat pix_fmt) { - return (unsigned)pix_fmt < FF_ARRAY_ELEMS(format_entries) ? - format_entries[pix_fmt].is_supported_in : 0; + return (unsigned)pix_fmt < FF_ARRAY_ELEMS(legacy_format_entries) ? + legacy_format_entries[pix_fmt].is_supported_in : 0; } int sws_isSupportedOutput(enum AVPixelFormat pix_fmt) { - return (unsigned)pix_fmt < FF_ARRAY_ELEMS(format_entries) ? - format_entries[pix_fmt].is_supported_out : 0; + return (unsigned)pix_fmt < FF_ARRAY_ELEMS(legacy_format_entries) ? + legacy_format_entries[pix_fmt].is_supported_out : 0; } int sws_isSupportedEndiannessConversion(enum AVPixelFormat pix_fmt) { - return (unsigned)pix_fmt < FF_ARRAY_ELEMS(format_entries) ? - format_entries[pix_fmt].is_supported_endianness : 0; + return (unsigned)pix_fmt < FF_ARRAY_ELEMS(legacy_format_entries) ? + legacy_format_entries[pix_fmt].is_supported_endianness : 0; } /** -- 2.49.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".