context: the max quantum is never scaled with samplerate

Or else we could end up with a quantum > 8192 when we have a higher
samplerate than the default and we crash.

See #1702
This commit is contained in:
Wim Taymans 2021-10-13 17:11:28 +02:00
parent 058cecee7e
commit 0d1f7be0e9

View file

@ -1318,7 +1318,6 @@ again:
if (rate_quantum != 0 && current_rate != rate_quantum) {
def_quantum = def_quantum * current_rate / rate_quantum;
min_quantum = min_quantum * current_rate / rate_quantum;
max_quantum = max_quantum * current_rate / rate_quantum;
}
/* calculate desired quantum */