diff options
author | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2020-04-11 14:08:49 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2020-04-11 14:08:49 +0200 |
commit | 8f01fa378fb3f54941d02918ba343811822a605a (patch) | |
tree | b873748b5262517a734c9bfee1e021a811390ca8 | |
parent | 875ba2333340c2e13af370832e49c9371ffb0f91 (diff) | |
download | ffmpeg-8f01fa378fb3f54941d02918ba343811822a605a.tar.gz |
lavc/amrwbdec: Remove a dead comparison.
Modes > MODE_SID are already filtered out at this point.
Simplifies the following change.
-rw-r--r-- | libavcodec/amrwbdec.c | 2 |
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 */ |