[FFmpeg-cvslog] avcodec/videotoolbox: silence some -Wimplicit-fallthrough warnings

James Almer git at videolan.org
Mon Nov 29 01:25:35 EET 2021


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sun Nov 28 20:23:26 2021 -0300| [0d924d6e5a4272149bd5ea87d63cbb6e67732345] | committer: James Almer

avcodec/videotoolbox: silence some -Wimplicit-fallthrough warnings

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0d924d6e5a4272149bd5ea87d63cbb6e67732345
---

 libavcodec/videotoolbox.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/videotoolbox.c b/libavcodec/videotoolbox.c
index d2907aee56..284da97541 100644
--- a/libavcodec/videotoolbox.c
+++ b/libavcodec/videotoolbox.c
@@ -877,6 +877,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
         case MKTAG('a','p','c','o'): // kCMVideoCodecType_AppleProRes422Proxy
         case MKTAG('a','p','c','s'): // kCMVideoCodecType_AppleProRes422LT
         case MKTAG('a','p','c','n'): // kCMVideoCodecType_AppleProRes422
@@ -884,6 +885,7 @@ static int videotoolbox_start(AVCodecContext *avctx)
         case MKTAG('a','p','4','h'): // kCMVideoCodecType_AppleProRes4444
         case MKTAG('a','p','4','x'): // kCMVideoCodecType_AppleProRes4444XQ
             videotoolbox->cm_codec_type = av_bswap32(avctx->codec_tag);
+            break;
         }
         break;
     case AV_CODEC_ID_VP9 :



More information about the ffmpeg-cvslog mailing list