Commit 94ac2c75 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/8svx: Use av_assert1(0) instead of error message in unreachable code

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 38d37584
......@@ -164,8 +164,7 @@ static av_cold int eightsvx_decode_init(AVCodecContext *avctx)
case AV_CODEC_ID_8SVX_FIB: esc->table = fibonacci; break;
case AV_CODEC_ID_8SVX_EXP: esc->table = exponential; break;
default:
av_log(avctx, AV_LOG_ERROR, "Invalid codec id %d.\n", avctx->codec->id);
return AVERROR_INVALIDDATA;
av_assert1(0);
}
avctx->sample_fmt = AV_SAMPLE_FMT_U8P;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment