From e6c7fd4106cd3c67901713ed0069fb3c18aa955e Mon Sep 17 00:00:00 2001 From: Marvin Scholz Date: Wed, 18 Feb 2026 00:17:48 +0100 Subject: [PATCH] avcodec/tiffenc: add fall-through annotations --- libavcodec/tiffenc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/tiffenc.c b/libavcodec/tiffenc.c index 1916db9a31..e53ba6f034 100644 --- a/libavcodec/tiffenc.c +++ b/libavcodec/tiffenc.c @@ -26,6 +26,7 @@ */ #include "config.h" +#include "libavutil/attributes.h" #if CONFIG_ZLIB #include #endif @@ -278,15 +279,18 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, case AV_PIX_FMT_RGBA64LE: case AV_PIX_FMT_RGBA: alpha = 1; + av_fallthrough; case AV_PIX_FMT_RGB48LE: case AV_PIX_FMT_RGB24: s->photometric_interpretation = TIFF_PHOTOMETRIC_RGB; break; case AV_PIX_FMT_GRAY8: avctx->bits_per_coded_sample = 0x28; + av_fallthrough; case AV_PIX_FMT_GRAY8A: case AV_PIX_FMT_YA16LE: alpha = avctx->pix_fmt == AV_PIX_FMT_GRAY8A || avctx->pix_fmt == AV_PIX_FMT_YA16LE; + av_fallthrough; case AV_PIX_FMT_GRAY16LE: case AV_PIX_FMT_MONOBLACK: s->photometric_interpretation = TIFF_PHOTOMETRIC_BLACK_IS_ZERO;