mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
Be sure to increment our position in the coefficient array when skipping a zero
band in the twoloop scalefactor search. Originally committed as revision 19480 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
804db4466d
commit
a62d6cfeff
@ -677,8 +677,10 @@ static void search_for_quantizers_twoloop(AVCodecContext *avctx,
|
|||||||
float mindist = INFINITY;
|
float mindist = INFINITY;
|
||||||
int minbits = 0;
|
int minbits = 0;
|
||||||
|
|
||||||
if (sce->zeroes[w*16+g] || sce->sf_idx[w*16+g] >= 218)
|
if (sce->zeroes[w*16+g] || sce->sf_idx[w*16+g] >= 218) {
|
||||||
|
start += sce->ics.swb_sizes[g];
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
minscaler = FFMIN(minscaler, sce->sf_idx[w*16+g]);
|
minscaler = FFMIN(minscaler, sce->sf_idx[w*16+g]);
|
||||||
for (cb = 0; cb <= ESC_BT; cb++) {
|
for (cb = 0; cb <= ESC_BT; cb++) {
|
||||||
float dist = 0.0f;
|
float dist = 0.0f;
|
||||||
|
@ -193,7 +193,7 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
|
|||||||
lengths[1] = ff_aac_num_swb_128[i];
|
lengths[1] = ff_aac_num_swb_128[i];
|
||||||
ff_psy_init(&s->psy, avctx, 2, sizes, lengths);
|
ff_psy_init(&s->psy, avctx, 2, sizes, lengths);
|
||||||
s->psypp = ff_psy_preprocess_init(avctx);
|
s->psypp = ff_psy_preprocess_init(avctx);
|
||||||
s->coder = &ff_aac_coders[0];
|
s->coder = &ff_aac_coders[2];
|
||||||
|
|
||||||
s->lambda = avctx->global_quality ? avctx->global_quality : 120;
|
s->lambda = avctx->global_quality ? avctx->global_quality : 120;
|
||||||
#if !CONFIG_HARDCODED_TABLES
|
#if !CONFIG_HARDCODED_TABLES
|
||||||
|
Loading…
Reference in New Issue
Block a user