History

aacenc: Prevent premature termination of the two loop search.

Originally committed as revision 24476 to svn://svn.ffmpeg.org/ffmpeg/trunk

Alex Converse committed 16 years ago

Commit c226fc51 parent 81824fe1 file · +1 −3Browse files

Showing the changes to libavcodec/aaccoder.c (1 of 1 file). Show all

Unified · Split

libavcodec/aaccoder.c+1−3
@@ -795,10 +795,8 @@ static void search_for_quantizers_twoloop(AVCodecContext *avctx, · 794 unmodified lines
795 sce->sf_idx[i] -= qstep;795 sce->sf_idx[i] -= qstep;
796 }796 }
797 qstep >>= 1;797 qstep >>= 1;
798 if (!qstep && tbits > destbits*1.02)798 if (!qstep && tbits > destbits*1.02 && sce->sf_idx[0] < 217)
799 qstep = 1;799 qstep = 1;
800 if (sce->sf_idx[0] >= 217)
801 break;
802 } while (qstep);800 } while (qstep);
803 801
804 fflag = 0;802 fflag = 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t