From 8f01fa378fb3f54941d02918ba343811822a605a Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Sat, 11 Apr 2020 14:08:49 +0200 Subject: lavc/amrwbdec: Remove a dead comparison. Modes > MODE_SID are already filtered out at this point. Simplifies the following change. --- libavcodec/amrwbdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec') diff --git a/libavcodec/amrwbdec.c b/libavcodec/amrwbdec.c index 5943bfc84e..3d82b6ba71 100644 --- a/libavcodec/amrwbdec.c +++ b/libavcodec/amrwbdec.c @@ -1139,7 +1139,7 @@ static int amrwb_decode_frame(AVCodecContext *avctx, void *data, return AVERROR_INVALIDDATA; } - if (!ctx->fr_quality || ctx->fr_cur_mode > MODE_SID) + if (!ctx->fr_quality) av_log(avctx, AV_LOG_ERROR, "Encountered a bad or corrupted frame\n"); if (ctx->fr_cur_mode == MODE_SID) { /* Comfort noise frame */ -- cgit v1.2.3