提交 c226fc5b 编写于 作者: A Alex Converse

aacenc: Prevent premature termination of the two loop search.

Originally committed as revision 24476 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 81824fe0
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册