Originally committed as revision 24476 to svn://svn.ffmpeg.org/ffmpeg/trunk
Showing the changes to libavcodec/aaccoder.c (1 of 1 file). Show all
Unified · Split
| @@ -795,10 +795,8 @@ static void search_for_quantizers_twoloop(AVCodecContext *avctx, · 794 unmodified lines | ||
| 795 | 795 | sce->sf_idx[i] -= qstep; |
| 796 | 796 | } |
| 797 | 797 | qstep >>= 1; |
| 798 | − if (!qstep && tbits > destbits*1.02) | |
| 798 | + if (!qstep && tbits > destbits*1.02 && sce->sf_idx[0] < 217) | |
| 799 | 799 | qstep = 1; |
| 800 | − if (sce->sf_idx[0] >= 217) | |
| 801 | − break; | |
| 802 | 800 | } while (qstep); |
| 803 | 801 | |
| 804 | 802 | fflag = 0; |