aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-05-16 18:38:41 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-05-26 03:38:37 +0200
commit0d73ce4bc489f7eb50fd8eef72830b93847c0d89 (patch)
tree08c0d21f4e73689c05fe0803bec879e6e90f4cd3
parentded08d0b1bb46bee50fafd4d12c5e9af16f10718 (diff)
downloadffmpeg-0d73ce4bc489f7eb50fd8eef72830b93847c0d89.tar.gz
avcodec/h263dec: Use av_unreachable() for unreachable code
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavcodec/h263dec.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index c36070e23c..eb4c48f68c 100644
--- a/libavcodec/h263dec.c
+++ b/libavcodec/h263dec.c
@@ -150,9 +150,7 @@ av_cold int ff_h263_decode_init(AVCodecContext *avctx)
s->h263_flv = 1;
break;
default:
- av_log(avctx, AV_LOG_ERROR, "Unsupported codec %d\n",
- avctx->codec->id);
- return AVERROR(ENOSYS);
+ av_unreachable("Switch contains a case for every codec using ff_h263_decode_init()");
}
if (avctx->codec_tag == AV_RL32("L263") || avctx->codec_tag == AV_RL32("S263"))