This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 938fa8b14c63df5ef7e97148c7fde2e7c1444709
Author:     Marvin Scholz <[email protected]>
AuthorDate: Tue Feb 17 20:49:43 2026 +0100
Commit:     Marvin Scholz <[email protected]>
CommitDate: Tue Apr 28 12:29:37 2026 +0000

    avcodec: replace fall-through comments
---
 libavcodec/av1dec.c        | 4 ++--
 libavcodec/bsf/dts2pts.c   | 3 ++-
 libavcodec/cbs_av1.c       | 4 ++--
 libavcodec/dovi_rpuenc.c   | 4 ++--
 libavcodec/dpx.c           | 3 ++-
 libavcodec/dxv.c           | 5 +++--
 libavcodec/exif.c          | 5 +++--
 libavcodec/g2meet.c        | 3 ++-
 libavcodec/h264_parser.c   | 2 +-
 libavcodec/hevc/hevcdec.c  | 2 +-
 libavcodec/indeo3.c        | 5 +++--
 libavcodec/indeo5.c        | 3 ++-
 libavcodec/leaddec.c       | 3 ++-
 libavcodec/libsvtav1.c     | 3 ++-
 libavcodec/mpegvideo_enc.c | 5 +++--
 libavcodec/msmpeg4.c       | 3 ++-
 libavcodec/pngdec.c        | 3 ++-
 libavcodec/sgidec.c        | 3 ++-
 libavcodec/sunrastenc.c    | 3 ++-
 libavcodec/v4l2_buffers.c  | 3 ++-
 libavcodec/vaapi_mpeg2.c   | 3 ++-
 libavcodec/vaapi_vc1.c     | 5 +++--
 libavcodec/vdpau_mpeg4.c   | 3 ++-
 libavcodec/vdpau_vc1.c     | 3 ++-
 libavcodec/videotoolbox.c  | 3 ++-
 libavcodec/vp3.c           | 3 ++-
 libavcodec/vp8.c           | 5 +++--
 libavcodec/vulkan_decode.c | 3 ++-
 libavcodec/vulkan_dpx.c    | 3 ++-
 29 files changed, 62 insertions(+), 38 deletions(-)

diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c
index 8a42a9cf60..90621caeb6 100644
--- a/libavcodec/av1dec.c
+++ b/libavcodec/av1dec.c
@@ -1373,7 +1373,7 @@ static int av1_receive_frame_internal(AVCodecContext 
*avctx, AVFrame *frame)
         case AV1_OBU_REDUNDANT_FRAME_HEADER:
             if (s->raw_frame_header)
                 break;
-        // fall-through
+            av_fallthrough;
         case AV1_OBU_FRAME:
         case AV1_OBU_FRAME_HEADER:
             if (!s->raw_seq) {
@@ -1431,7 +1431,7 @@ static int av1_receive_frame_internal(AVCodecContext 
*avctx, AVFrame *frame)
             }
             if (unit->type != AV1_OBU_FRAME)
                 break;
-        // fall-through
+            av_fallthrough;
         case AV1_OBU_TILE_GROUP:
             if (!s->raw_frame_header) {
                 av_log(avctx, AV_LOG_ERROR, "Missing Frame Header.\n");
diff --git a/libavcodec/bsf/dts2pts.c b/libavcodec/bsf/dts2pts.c
index 122661a5df..ff03508c18 100644
--- a/libavcodec/bsf/dts2pts.c
+++ b/libavcodec/bsf/dts2pts.c
@@ -25,6 +25,7 @@
 
 #include <stdbool.h>
 
+#include "libavutil/attributes.h"
 #include "libavutil/avassert.h"
 #include "libavutil/fifo.h"
 #include "libavutil/mem.h"
@@ -262,7 +263,7 @@ static int h264_filter(AVBSFContext *ctx)
             h264->poc.prev_frame_num_offset = 0;
             h264->poc.prev_poc_msb          =
             h264->poc.prev_poc_lsb          = 0;
-        // fall-through
+            av_fallthrough;
         case H264_NAL_SLICE: {
             const H264RawSlice *slice = unit->content;
             const H264RawSliceHeader *header = &slice->header;
diff --git a/libavcodec/cbs_av1.c b/libavcodec/cbs_av1.c
index d05352c738..deb73c8ebb 100644
--- a/libavcodec/cbs_av1.c
+++ b/libavcodec/cbs_av1.c
@@ -938,7 +938,7 @@ static int cbs_av1_read_unit(CodedBitstreamContext *ctx,
                                          unit->data_ref);
             if (err < 0)
                 return err;
-    // fall-through
+            av_fallthrough;
     case AV1_OBU_TILE_GROUP:
         {
             AV1RawTileGroup *tile_group = obu->header.obu_type == 
AV1_OBU_FRAME ? &obu->obu.frame.tile_group
@@ -1116,7 +1116,7 @@ static int cbs_av1_write_obu(CodedBitstreamContext *ctx,
             err = cbs_av1_write_frame_obu(ctx, pbc, &obu->obu.frame, NULL);
             if (err < 0)
                 goto error;
-    // fall-through
+            av_fallthrough;
     case AV1_OBU_TILE_GROUP:
         {
             AV1RawTileGroup *tile_group = obu->header.obu_type == 
AV1_OBU_FRAME ? &obu->obu.frame.tile_group
diff --git a/libavcodec/dovi_rpuenc.c b/libavcodec/dovi_rpuenc.c
index 0c22bf34ed..dc63c68405 100644
--- a/libavcodec/dovi_rpuenc.c
+++ b/libavcodec/dovi_rpuenc.c
@@ -136,7 +136,7 @@ static av_cold int dovi_configure_ext(DOVIContext *s, enum 
AVCodecID codec_id,
             bl_compat_id = 0;
             break;
         }
-        /* fall through */
+        av_fallthrough;
     case 8: /* HEVC (or AV1) with BL compatibility */
         if (color_space == AVCOL_SPC_BT2020_NCL &&
             color_primaries == AVCOL_PRI_BT2020 &&
@@ -612,7 +612,7 @@ int ff_dovi_rpu_generate(DOVIContext *s, const 
AVDOVIMetadata *metadata,
         /* Limited metadata compression requires vdr_rpi_id == 0 */
         if (vdr_rpu_id != 0)
             break;
-        /* fall through */
+        av_fallthrough;
     case AV_DOVI_COMPRESSION_EXTENDED:
         if (s->vdr[vdr_rpu_id])
             use_prev_vdr_rpu = !memcmp(s->vdr[vdr_rpu_id], mapping, 
sizeof(*mapping));
diff --git a/libavcodec/dpx.c b/libavcodec/dpx.c
index 52a03501ec..6e7c01fd65 100644
--- a/libavcodec/dpx.c
+++ b/libavcodec/dpx.c
@@ -19,6 +19,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#include "libavutil/attributes.h"
 #include "libavutil/avstring.h"
 #include "libavutil/intreadwrite.h"
 #include "libavutil/intfloat.h"
@@ -237,7 +238,7 @@ static void unpack_frame(AVCodecContext *avctx, AVFrame *p, 
const uint8_t *buf,
         break;
     case 16:
         elements *= 2;
-    // fall-through
+        av_fallthrough;
     case 8:
         if (   avctx->pix_fmt == AV_PIX_FMT_YUVA444P
             || avctx->pix_fmt == AV_PIX_FMT_YUV444P) {
diff --git a/libavcodec/dxv.c b/libavcodec/dxv.c
index 626dd75a33..344c7b2f3c 100644
--- a/libavcodec/dxv.c
+++ b/libavcodec/dxv.c
@@ -22,6 +22,7 @@
 
 #include <stdint.h>
 
+#include "libavutil/attributes.h"
 #include "libavutil/imgutils.h"
 #include "libavutil/mem.h"
 
@@ -1041,7 +1042,7 @@ static int dxv_decode(AVCodecContext *avctx, AVFrame 
*frame,
         ret = ff_texturedsp_exec_decompress_threads(avctx, &texdsp_ctx);
         if (ret < 0)
             return ret;
-        /* fallthrough */
+        av_fallthrough;
     case DXV_FMT_YCG6:
         /* BC5 texture with Co in the first half of each block and Cg in the 
second */
         ctexdsp_ctx.tex_data.in    = ctx->ctex_data;
@@ -1056,7 +1057,7 @@ static int dxv_decode(AVCodecContext *avctx, AVFrame 
*frame,
         ret = ff_texturedsp_exec_decompress_threads(avctx, &ctexdsp_ctx);
         if (ret < 0)
             return ret;
-        /* fallthrough */
+        av_fallthrough;
     case DXV_FMT_DXT1:
     case DXV_FMT_DXT5:
         /* For DXT1 and DXT5, self explanatory
diff --git a/libavcodec/exif.c b/libavcodec/exif.c
index e422b28b8d..6b29ce4cbd 100644
--- a/libavcodec/exif.c
+++ b/libavcodec/exif.c
@@ -29,6 +29,7 @@
 
 #include <inttypes.h>
 
+#include "libavutil/attributes.h"
 #include "libavutil/avconfig.h"
 #include "libavutil/bprint.h"
 #include "libavutil/display.h"
@@ -891,13 +892,13 @@ int av_exif_parse_buffer(void *logctx, const uint8_t 
*buf, size_t size,
             if (size < 6)
                 return AVERROR_INVALIDDATA;
             off = 6;
-            /* fallthrough */
+            av_fallthrough;
         case AV_EXIF_T_OFF:
             if (size < 4)
                 return AVERROR_INVALIDDATA;
             if (!off)
                 off = AV_RB32(buf) + 4;
-            /* fallthrough */
+            av_fallthrough;
         case AV_EXIF_TIFF_HEADER: {
             int ifd_offset;
             if (size <= off)
diff --git a/libavcodec/g2meet.c b/libavcodec/g2meet.c
index a4900641e7..eb6aaf3072 100644
--- a/libavcodec/g2meet.c
+++ b/libavcodec/g2meet.c
@@ -28,6 +28,7 @@
 #include <inttypes.h>
 #include <zlib.h>
 
+#include "libavutil/attributes.h"
 #include "libavutil/imgutils.h"
 #include "libavutil/mem.h"
 #include "libavutil/mem_internal.h"
@@ -661,7 +662,7 @@ static int epic_decode_run_length(ePICContext *dc, int x, 
int y, int tile_width,
                         break;
                     }
                 }
-                /* fall through */
+                av_fallthrough;
             default:
                 NWneW = 1;
                 old_WWneW = WWneW;
diff --git a/libavcodec/h264_parser.c b/libavcodec/h264_parser.c
index 607eb55027..9d64fc603f 100644
--- a/libavcodec/h264_parser.c
+++ b/libavcodec/h264_parser.c
@@ -358,7 +358,7 @@ static inline int parse_nal_units(AVCodecParserContext *s,
             p->poc.prev_frame_num_offset = 0;
             p->poc.prev_poc_msb          =
             p->poc.prev_poc_lsb          = 0;
-        /* fall through */
+            av_fallthrough;
         case H264_NAL_SLICE:
             get_ue_golomb_long(&nal.gb);  // skip first_mb_in_slice
             slice_type   = get_ue_golomb_31(&nal.gb);
diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hevc/hevcdec.c
index ae5f0fe69d..8611909dd3 100644
--- a/libavcodec/hevc/hevcdec.c
+++ b/libavcodec/hevc/hevcdec.c
@@ -683,7 +683,7 @@ static enum AVPixelFormat get_format(HEVCContext *s, const 
HEVCSPS *sps)
 #if CONFIG_HEVC_VIDEOTOOLBOX_HWACCEL
         *fmt++ = AV_PIX_FMT_VIDEOTOOLBOX;
 #endif
-    /* NOTE: fallthrough */
+        av_fallthrough;
     case AV_PIX_FMT_YUV420P12:
     case AV_PIX_FMT_YUV444P12:
 #if CONFIG_HEVC_VAAPI_HWACCEL
diff --git a/libavcodec/indeo3.c b/libavcodec/indeo3.c
index ae6fd7290e..fb9f3fba3b 100644
--- a/libavcodec/indeo3.c
+++ b/libavcodec/indeo3.c
@@ -29,6 +29,7 @@
  * @see http://wiki.multimedia.cx/index.php?title=Indeo_3
  */
 
+#include "libavutil/attributes.h"
 #include "libavutil/imgutils.h"
 #include "libavutil/intreadwrite.h"
 #include "libavutil/mem.h"
@@ -500,7 +501,7 @@ static int decode_cell_data(Indeo3DecodeContext *ctx, Cell 
*cell,
                             skip_flag  = 0;
                             rle_blocks = 1;
                             code       = 253;
-                            /* FALLTHROUGH */
+                            av_fallthrough;
                         case RLE_ESC_FF:
                         case RLE_ESC_FE:
                         case RLE_ESC_FD:
@@ -532,7 +533,7 @@ static int decode_cell_data(Indeo3DecodeContext *ctx, Cell 
*cell,
                         case RLE_ESC_F9:
                             skip_flag  = 1;
                             rle_blocks = 1;
-                            /* FALLTHROUGH */
+                            av_fallthrough;
                         case RLE_ESC_FA:
                             if (line)
                                 return IV3_BAD_RLE;
diff --git a/libavcodec/indeo5.c b/libavcodec/indeo5.c
index df95064e3f..594b97bd46 100644
--- a/libavcodec/indeo5.c
+++ b/libavcodec/indeo5.c
@@ -27,6 +27,7 @@
  * Known FOURCCs: 'IV50'
  */
 
+#include "libavutil/attributes.h"
 #define BITSTREAM_READER_LE
 #include "avcodec.h"
 #include "codec_internal.h"
@@ -615,7 +616,7 @@ static void switch_buffers(IVI45DecContext *ctx)
     switch (ctx->frame_type) {
     case FRAMETYPE_INTRA:
         ctx->buf_switch = 0;
-        /* FALLTHROUGH */
+        av_fallthrough;
     case FRAMETYPE_INTER:
         ctx->inter_scal = 0;
         ctx->dst_buf = ctx->buf_switch;
diff --git a/libavcodec/leaddec.c b/libavcodec/leaddec.c
index e6a91faabc..fbd81aaa3c 100644
--- a/libavcodec/leaddec.c
+++ b/libavcodec/leaddec.c
@@ -30,6 +30,7 @@
 #include "jpegquanttables.h"
 #include "jpegtables.h"
 #include "leaddata.h"
+#include "libavutil/attributes.h"
 #include "libavutil/mem.h"
 #include "libavutil/mem_internal.h"
 #include "libavutil/thread.h"
@@ -160,7 +161,7 @@ static int lead_decode_frame(AVCodecContext *avctx, AVFrame 
* frame,
     case 0x6:
     case 0x8000:
         yuv20p_half = 1;
-        // fall-through
+        av_fallthrough;
     case 0x1000:
         avctx->pix_fmt = AV_PIX_FMT_YUV420P;
         break;
diff --git a/libavcodec/libsvtav1.c b/libavcodec/libsvtav1.c
index 0e9a0eab72..0bcc176243 100644
--- a/libavcodec/libsvtav1.c
+++ b/libavcodec/libsvtav1.c
@@ -26,6 +26,7 @@
 #include <EbSvtAv1Enc.h>
 #include <EbSvtAv1Metadata.h>
 
+#include "libavutil/attributes.h"
 #include "libavutil/common.h"
 #include "libavutil/frame.h"
 #include "libavutil/imgutils.h"
@@ -737,7 +738,7 @@ static int eb_receive_packet(AVCodecContext *avctx, 
AVPacket *pkt)
     switch (headerPtr->pic_type) {
     case EB_AV1_KEY_PICTURE:
         pkt->flags |= AV_PKT_FLAG_KEY;
-        // fall-through
+        av_fallthrough;
     case EB_AV1_INTRA_ONLY_PICTURE:
         pict_type = AV_PICTURE_TYPE_I;
         break;
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index 83bc4cee09..52716c9bfc 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -36,6 +36,7 @@
 #include <assert.h>
 #include <stdint.h>
 
+#include "libavutil/attributes.h"
 #include "libavutil/emms.h"
 #include "libavutil/internal.h"
 #include "libavutil/intmath.h"
@@ -843,7 +844,7 @@ av_cold int ff_mpv_encode_init(AVCodecContext *avctx)
 #if CONFIG_MPEG1VIDEO_ENCODER || CONFIG_MPEG2VIDEO_ENCODER
     case AV_CODEC_ID_MPEG2VIDEO:
         s->rtp_mode   = 1;
-        /* fallthrough */
+        av_fallthrough;
     case AV_CODEC_ID_MPEG1VIDEO:
         s->c.out_format = FMT_MPEG1;
         s->c.low_delay  = !!(avctx->flags & AV_CODEC_FLAG_LOW_DELAY);
@@ -3107,7 +3108,7 @@ static int encode_thread(AVCodecContext *c, void *arg){
                     case AV_CODEC_ID_H263P:
                         if (s->c.dc_val)
                             ff_h263_mpeg4_reset_dc(s);
-                        // fallthrough
+                        av_fallthrough;
 #endif
                     case AV_CODEC_ID_H263:
                         if (CONFIG_H263_ENCODER) {
diff --git a/libavcodec/msmpeg4.c b/libavcodec/msmpeg4.c
index fed255989e..b0565bfe24 100644
--- a/libavcodec/msmpeg4.c
+++ b/libavcodec/msmpeg4.c
@@ -30,6 +30,7 @@
 #include "config.h"
 #include "config_components.h"
 
+#include "libavutil/attributes.h"
 #include "libavutil/avassert.h"
 #include "libavutil/thread.h"
 #if ARCH_X86
@@ -143,7 +144,7 @@ av_cold void ff_msmpeg4_common_init(MPVContext *const s,
 #if CONFIG_WMV2_DECODER || CONFIG_WMV2_ENCODER
     case MSMP4_WMV2:
         ff_wmv2dsp_init(&s->idsp);
-        // fallthrough
+        av_fallthrough;
 #endif
     case MSMP4_WMV1:
         s->y_dc_scale_table= ff_wmv1_y_dc_scale_table;
diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c
index d630617004..142a88d665 100644
--- a/libavcodec/pngdec.c
+++ b/libavcodec/pngdec.c
@@ -23,6 +23,7 @@
 
 #include "config_components.h"
 
+#include "libavutil/attributes.h"
 #include "libavutil/avassert.h"
 #include "libavutil/bprint.h"
 #include "libavutil/crc.h"
@@ -1583,7 +1584,7 @@ static int decode_frame_common(AVCodecContext *avctx, 
PNGDecContext *s,
                 goto fail;
             }
             bytestream2_get_be32(&gb_chunk);
-            /* fallthrough */
+            av_fallthrough;
         case MKTAG('I', 'D', 'A', 'T'):
             if (CONFIG_APNG_DECODER && avctx->codec_id == AV_CODEC_ID_APNG && 
!decode_next_dat)
                 continue;
diff --git a/libavcodec/sgidec.c b/libavcodec/sgidec.c
index 40186dcdb7..63aed47b97 100644
--- a/libavcodec/sgidec.c
+++ b/libavcodec/sgidec.c
@@ -23,6 +23,7 @@
 #include "bytestream.h"
 #include "codec_internal.h"
 #include "decode.h"
+#include "libavutil/attributes.h"
 #include "sgi.h"
 
 /**
@@ -241,7 +242,7 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *p,
         break;
     case SGI_RGBA:
         MAP(3, 3);
-        /* fallthrough */
+        av_fallthrough;
     case SGI_RGB:
         MAP(0, 2);
         MAP(1, 0);
diff --git a/libavcodec/sunrastenc.c b/libavcodec/sunrastenc.c
index 9922dbd061..233c628e10 100644
--- a/libavcodec/sunrastenc.c
+++ b/libavcodec/sunrastenc.c
@@ -19,6 +19,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#include "libavutil/attributes.h"
 #include "libavutil/opt.h"
 
 #include "avcodec.h"
@@ -154,7 +155,7 @@ static av_cold int sunrast_encode_init(AVCodecContext 
*avctx)
     case AV_PIX_FMT_PAL8 :
         s->maptype   = RMT_EQUAL_RGB;
         s->maplength = 3 * 256;
-        /* fall-through */
+        av_fallthrough;
     case AV_PIX_FMT_GRAY8:
         s->depth = 8;
         break;
diff --git a/libavcodec/v4l2_buffers.c b/libavcodec/v4l2_buffers.c
index 077c1ee944..f96c26771b 100644
--- a/libavcodec/v4l2_buffers.c
+++ b/libavcodec/v4l2_buffers.c
@@ -28,6 +28,7 @@
 #include <fcntl.h>
 #include <poll.h>
 #include "libavcodec/avcodec.h"
+#include "libavutil/attributes.h"
 #include "libavutil/pixdesc.h"
 #include "libavutil/refstruct.h"
 #include "v4l2_context.h"
@@ -226,7 +227,7 @@ static void v4l2_get_interlacing(AVFrame *frame, V4L2Buffer 
*buf)
     case V4L2_FIELD_INTERLACED:
     case V4L2_FIELD_INTERLACED_TB:
         frame->flags |=  AV_FRAME_FLAG_TOP_FIELD_FIRST;
-        /* fallthrough */
+        av_fallthrough;
     case V4L2_FIELD_INTERLACED_BT:
         frame->flags |=  AV_FRAME_FLAG_INTERLACED;
         break;
diff --git a/libavcodec/vaapi_mpeg2.c b/libavcodec/vaapi_mpeg2.c
index 925f0db1ba..07bf35c532 100644
--- a/libavcodec/vaapi_mpeg2.c
+++ b/libavcodec/vaapi_mpeg2.c
@@ -21,6 +21,7 @@
  */
 
 #include "hwaccel_internal.h"
+#include "libavutil/attributes.h"
 #include "mpegutils.h"
 #include "mpegvideo.h"
 #include "mpegvideodec.h"
@@ -77,7 +78,7 @@ static int vaapi_mpeg2_start_frame(AVCodecContext *avctx,
     switch (s->pict_type) {
     case AV_PICTURE_TYPE_B:
         pic_param.backward_reference_picture = 
ff_vaapi_get_surface_id(s->next_pic.ptr->f);
-        // fall-through
+        av_fallthrough;
     case AV_PICTURE_TYPE_P:
         pic_param.forward_reference_picture = 
ff_vaapi_get_surface_id(s->last_pic.ptr->f);
         break;
diff --git a/libavcodec/vaapi_vc1.c b/libavcodec/vaapi_vc1.c
index a3dd3140e2..42171918e8 100644
--- a/libavcodec/vaapi_vc1.c
+++ b/libavcodec/vaapi_vc1.c
@@ -22,6 +22,7 @@
 
 #include "config_components.h"
 
+#include "libavutil/attributes.h"
 #include "libavutil/mem.h"
 #include "hwaccel_internal.h"
 #include "mpegvideodec.h"
@@ -379,7 +380,7 @@ static int vaapi_vc1_start_frame(AVCodecContext *avctx,
     case AV_PICTURE_TYPE_B:
         if (s->next_pic.ptr)
             pic_param.backward_reference_picture = 
ff_vaapi_get_surface_id(s->next_pic.ptr->f);
-        // fall-through
+        av_fallthrough;
     case AV_PICTURE_TYPE_P:
         if (s->last_pic.ptr)
             pic_param.forward_reference_picture = 
ff_vaapi_get_surface_id(s->last_pic.ptr->f);
@@ -417,7 +418,7 @@ static int vaapi_vc1_start_frame(AVCodecContext *avctx,
                 ff_bp[2] = pic_param.bitplane_present.flags.bp_forward_mb ? 
v->forward_mb_plane : NULL;
                 break;
             }
-            /* fall-through (BI-type) */
+            av_fallthrough; // (BI-type)
         case AV_PICTURE_TYPE_I:
             ff_bp[0] = pic_param.bitplane_present.flags.bp_field_tx   ? 
v->fieldtx_plane      : NULL;
             ff_bp[1] = pic_param.bitplane_present.flags.bp_ac_pred    ? 
v->acpred_plane       : NULL;
diff --git a/libavcodec/vdpau_mpeg4.c b/libavcodec/vdpau_mpeg4.c
index 668720a231..58c8a6d769 100644
--- a/libavcodec/vdpau_mpeg4.c
+++ b/libavcodec/vdpau_mpeg4.c
@@ -25,6 +25,7 @@
 
 #include "avcodec.h"
 #include "hwaccel_internal.h"
+#include "libavutil/attributes.h"
 #include "mpeg4videodec.h"
 #include "vdpau.h"
 #include "vdpau_internal.h"
@@ -52,7 +53,7 @@ static int vdpau_mpeg4_start_frame(AVCodecContext *avctx,
         assert(ref != VDP_INVALID_HANDLE);
         info->backward_reference = ref;
         info->vop_coding_type    = 2;
-        /* fall-through */
+        av_fallthrough;
     case AV_PICTURE_TYPE_P:
         ref = ff_vdpau_get_surface_id(s->last_pic.ptr->f);
         assert(ref != VDP_INVALID_HANDLE);
diff --git a/libavcodec/vdpau_vc1.c b/libavcodec/vdpau_vc1.c
index a5fd8156f4..323ac4127a 100644
--- a/libavcodec/vdpau_vc1.c
+++ b/libavcodec/vdpau_vc1.c
@@ -27,6 +27,7 @@
 
 #include "avcodec.h"
 #include "hwaccel_internal.h"
+#include "libavutil/attributes.h"
 #include "vc1.h"
 #include "vdpau.h"
 #include "vdpau_internal.h"
@@ -53,7 +54,7 @@ static int vdpau_vc1_start_frame(AVCodecContext *avctx,
             assert(ref != VDP_INVALID_HANDLE);
             info->backward_reference = ref;
         }
-        /* fall-through */
+        av_fallthrough;
     case AV_PICTURE_TYPE_P:
         if (s->last_pic.ptr) {
             ref = ff_vdpau_get_surface_id(s->last_pic.ptr->f);
diff --git a/libavcodec/videotoolbox.c b/libavcodec/videotoolbox.c
index 7e05ce999c..9c0b93c8f8 100644
--- a/libavcodec/videotoolbox.c
+++ b/libavcodec/videotoolbox.c
@@ -23,6 +23,7 @@
 #include "config.h"
 #include "config_components.h"
 #include "videotoolbox.h"
+#include "libavutil/attributes.h"
 #include "libavutil/hwcontext_videotoolbox.h"
 #include "libavutil/mem.h"
 #include "vt_internal.h"
@@ -935,7 +936,7 @@ static int videotoolbox_start(AVCodecContext *avctx)
         switch (avctx->codec_tag) {
         default:
             av_log(avctx, AV_LOG_WARNING, "Unknown prores profile %d\n", 
avctx->codec_tag);
-        // fall-through
+            av_fallthrough;
         case MKTAG('a','p','c','o'): // kCMVideoCodecType_AppleProRes422Proxy
         case MKTAG('a','p','c','s'): // kCMVideoCodecType_AppleProRes422LT
         case MKTAG('a','p','c','n'): // kCMVideoCodecType_AppleProRes422
diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
index edb5594bde..7789252f11 100644
--- a/libavcodec/vp3.c
+++ b/libavcodec/vp3.c
@@ -943,7 +943,8 @@ static int unpack_vectors(Vp3DecodeContext *s, 
GetBitContext *gb)
                         last_gold_motion_x = motion_x[0] = vp4_get_mv(gb, 0, 
last_gold_motion_x);
                         last_gold_motion_y = motion_y[0] = vp4_get_mv(gb, 1, 
last_gold_motion_y);
                         break;
-                    } /* otherwise fall through */
+                    }
+                    av_fallthrough;
                 case MODE_INTER_PLUS_MV:
                     /* all 6 fragments use the same motion vector */
                     if (coding_mode == 0) {
diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c
index 9010e19e6b..c54e79173c 100644
--- a/libavcodec/vp8.c
+++ b/libavcodec/vp8.c
@@ -26,6 +26,7 @@
 
 #include "config_components.h"
 
+#include "libavutil/attributes.h"
 #include "libavutil/mem.h"
 #include "libavutil/mem_internal.h"
 
@@ -1660,7 +1661,7 @@ int check_intra_pred4x4_mode_emuedge(int mode, int mb_x, 
int mb_y,
             *copy_buf = 1;
             return mode;
         }
-        /* fall-through */
+        av_fallthrough;
     case DIAG_DOWN_LEFT_PRED:
     case VERT_LEFT_PRED:
         return !mb_y ? (vp7 ? DC_128_PRED : DC_127_PRED) : mode;
@@ -1669,7 +1670,7 @@ int check_intra_pred4x4_mode_emuedge(int mode, int mb_x, 
int mb_y,
             *copy_buf = 1;
             return mode;
         }
-        /* fall-through */
+        av_fallthrough;
     case HOR_UP_PRED:
         return !mb_x ? (vp7 ? DC_128_PRED : DC_129_PRED) : mode;
     case TM_VP8_PRED:
diff --git a/libavcodec/vulkan_decode.c b/libavcodec/vulkan_decode.c
index b4df8b971e..e87436b881 100644
--- a/libavcodec/vulkan_decode.c
+++ b/libavcodec/vulkan_decode.c
@@ -16,6 +16,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#include "libavutil/attributes.h"
 #include "libavutil/refstruct.h"
 #include "vulkan_video.h"
 #include "vulkan_decode.h"
@@ -1213,7 +1214,7 @@ int ff_vk_frame_params(AVCodecContext *avctx, AVBufferRef 
*hw_frames_ctx)
         case AV_PIX_FMT_YUVA422P12:
         case AV_PIX_FMT_YUVA444P12:
             hwfc->format[3] = VK_FORMAT_R16_UNORM;
-            /* fallthrough */
+            av_fallthrough;
         case AV_PIX_FMT_YUV422P10:
         case AV_PIX_FMT_YUV444P10:
         case AV_PIX_FMT_YUV422P12:
diff --git a/libavcodec/vulkan_dpx.c b/libavcodec/vulkan_dpx.c
index 726ae09af9..517c4e243d 100644
--- a/libavcodec/vulkan_dpx.c
+++ b/libavcodec/vulkan_dpx.c
@@ -18,6 +18,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#include "libavutil/attributes.h"
 #include "vulkan_decode.h"
 #include "hwaccel_internal.h"
 
@@ -300,7 +301,7 @@ static int vk_decode_dpx_init(AVCodecContext *avctx)
     case AV_PIX_FMT_GBRP10:
         if (dpx->unpadded_10bit)
             return AVERROR(ENOTSUP);
-    /* fallthrough */
+        av_fallthrough;
     default:
         break;
     }

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to