Browse Source

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

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n4.3
Michael Niedermayer 5 years ago
parent
commit
94ac2c7576
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavcodec/8svx.c

+ 1
- 2
libavcodec/8svx.c View File

@@ -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;



Loading…
Cancel
Save