History

avcodec/h263dec: Use av_unreachable() for unreachable code

Andreas Rheinhardt committed 1 year ago

Commit 0d73ce41 parent ded08d01 file · +1 −3Browse files

Unified · Split

libavcodec/h263dec.c+1−3
@@ -150,9 +150,7 @@ av_cold int ff_h263_decode_init(AVCodecContext *avctx) · 149 unmodified lines
150150 s->h263_flv = 1;
151151 break;
152152 default:
153− av_log(avctx, AV_LOG_ERROR, "Unsupported codec %d\n",
154− avctx->codec->id);
155− return AVERROR(ENOSYS);
153+ av_unreachable("Switch contains a case for every codec using ff_h263_decode_init()");
156154 }
157155
158156 if (avctx->codec_tag == AV_RL32("L263") || avctx->codec_tag == AV_RL32("S263"))

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t