From 70b58e770dc809d6917047dd3c06b613aef60b24 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Tue, 30 Dec 2025 12:24:02 +0100 Subject: [PATCH] avcodec/msmpeg4: Mark unreachable code as unreachable Reviewed-by: Ramiro Polla Signed-off-by: Andreas Rheinhardt --- libavcodec/msmpeg4.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/msmpeg4.c b/libavcodec/msmpeg4.c index 45c56a9ad9..5d9592d260 100644 --- a/libavcodec/msmpeg4.c +++ b/libavcodec/msmpeg4.c @@ -30,6 +30,7 @@ #include "config.h" #include "config_components.h" +#include "libavutil/avassert.h" #include "libavutil/thread.h" #if ARCH_X86 #include "libavutil/x86/asm.h" @@ -122,6 +123,8 @@ av_cold void ff_msmpeg4_common_init(MpegEncContext *s) static AVOnce init_static_once = AV_ONCE_INIT; switch(s->msmpeg4_version){ + default: + av_unreachable("ff_msmpeg4_common_init only called by MSMP4 1-3 and WMV1/2"); case MSMP4_V1: case MSMP4_V2: // Correct *_dc_scale_tables (ff_mpeg1_dc_scale_table) is the default