summaryrefslogtreecommitdiff
path: root/libavcodec/amrwbdec.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2020-04-11 14:08:49 +0200
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2020-04-11 14:08:49 +0200
commit8f01fa378fb3f54941d02918ba343811822a605a (patch)
treeb873748b5262517a734c9bfee1e021a811390ca8 /libavcodec/amrwbdec.c
parent875ba2333340c2e13af370832e49c9371ffb0f91 (diff)
lavc/amrwbdec: Remove a dead comparison.
Modes > MODE_SID are already filtered out at this point. Simplifies the following change.
Diffstat (limited to 'libavcodec/amrwbdec.c')
-rw-r--r--libavcodec/amrwbdec.c2
1 files changed, 1 insertions, 1 deletions
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 */