aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer2019-12-29 15:11:33 +0100
committerMichael Niedermayer2020-02-03 00:11:18 +0100
commit94ac2c757663a96a28a91a1f28fd13621bc80ad8 (patch)
tree914a908a0cd008d06c81b784e21540f2d1a80707
parent38d37584448731f90977132b838d50ff1a28811b (diff)
avcodec/8svx: Use av_assert1(0) instead of error message in unreachable code
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/8svx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/8svx.c b/libavcodec/8svx.c
index edc945c697..092dbaae04 100644
--- a/libavcodec/8svx.c
+++ b/libavcodec/8svx.c
@@ -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;