You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
AAC encoder: fix possible assertion failure in PNS
Fix possible SF delta violation that would cause an eventual assertion failure in some corner cases (esp on very low bitrates) when marking bands for PNS due to misuse of the sf_delta utilities
This commit is contained in:
@@ -726,9 +726,10 @@ static void search_for_pns(AACEncContext *s, AVCodecContext *avctx, SingleChanne
|
|||||||
sce->band_type[w*16+g] = NOISE_BT;
|
sce->band_type[w*16+g] = NOISE_BT;
|
||||||
sce->zeroes[w*16+g] = 0;
|
sce->zeroes[w*16+g] = 0;
|
||||||
prev = noise_sfi;
|
prev = noise_sfi;
|
||||||
|
} else {
|
||||||
|
if (!sce->zeroes[w*16+g])
|
||||||
|
prev_sf = sce->sf_idx[w*16+g];
|
||||||
}
|
}
|
||||||
if (!sce->zeroes[w*16+g])
|
|
||||||
prev_sf = sce->sf_idx[w*16+g];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user