diff --git a/libavcodec/aaccoder.c b/libavcodec/aaccoder.c index b0945edffcbf316c1c5e18fd0bab050bc0ea1ab9..9d768d4ee42881b575475df22e4b8350bc3051ab 100644 --- a/libavcodec/aaccoder.c +++ b/libavcodec/aaccoder.c @@ -795,10 +795,8 @@ static void search_for_quantizers_twoloop(AVCodecContext *avctx, sce->sf_idx[i] -= qstep; } qstep >>= 1; - if (!qstep && tbits > destbits*1.02) + if (!qstep && tbits > destbits*1.02 && sce->sf_idx[0] < 217) qstep = 1; - if (sce->sf_idx[0] >= 217) - break; } while (qstep); fflag = 0;