Skip to content

Commit

Permalink
lavc/amrwbdec: Remove a dead comparison.
Browse files Browse the repository at this point in the history
Modes > MODE_SID are already filtered out at this point.
Simplifies the following change.
  • Loading branch information
cehoyos committed Apr 11, 2020
1 parent 875ba23 commit 8f01fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavcodec/amrwbdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 8f01fa3

Please sign in to comment.