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

Unified · Split

libavcodec/aaccoder.c+1−3
@@ -795,10 +795,8 @@ static void search_for_quantizers_twoloop(AVCodecContext *avctx, · 794 unmodified lines
795795 sce->sf_idx[i] -= qstep;
796796 }
797797 qstep >>= 1;
798− if (!qstep && tbits > destbits*1.02)
798+ if (!qstep && tbits > destbits*1.02 && sce->sf_idx[0] < 217)
799799 qstep = 1;
800− if (sce->sf_idx[0] >= 217)
801− break;
802800 } while (qstep);
803801
804802 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