You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
avcodec/h263dec: Use av_unreachable() for unreachable code
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@ -150,9 +150,7 @@ av_cold int ff_h263_decode_init(AVCodecContext *avctx)
|
|||||||
s->h263_flv = 1;
|
s->h263_flv = 1;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
av_log(avctx, AV_LOG_ERROR, "Unsupported codec %d\n",
|
av_unreachable("Switch contains a case for every codec using ff_h263_decode_init()");
|
||||||
avctx->codec->id);
|
|
||||||
return AVERROR(ENOSYS);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (avctx->codec_tag == AV_RL32("L263") || avctx->codec_tag == AV_RL32("S263"))
|
if (avctx->codec_tag == AV_RL32("L263") || avctx->codec_tag == AV_RL32("S263"))
|
||||||
|
Reference in New Issue
Block a user