mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/8svx: Use av_assert1(0) instead of error message in unreachable code
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
38d3758444
commit
94ac2c7576
|
@ -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_FIB: esc->table = fibonacci; break;
|
||||||
case AV_CODEC_ID_8SVX_EXP: esc->table = exponential; break;
|
case AV_CODEC_ID_8SVX_EXP: esc->table = exponential; break;
|
||||||
default:
|
default:
|
||||||
av_log(avctx, AV_LOG_ERROR, "Invalid codec id %d.\n", avctx->codec->id);
|
av_assert1(0);
|
||||||
return AVERROR_INVALIDDATA;
|
|
||||||
}
|
}
|
||||||
avctx->sample_fmt = AV_SAMPLE_FMT_U8P;
|
avctx->sample_fmt = AV_SAMPLE_FMT_U8P;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue