audio: fix released buffer bounds check

This commit is contained in:
Liam 2024-02-22 20:20:31 -05:00
parent a086cf4136
commit c847c2e75a

View file

@ -146,11 +146,15 @@ public:
break;
}
if (released < tags.size()) {
tags[released] = tag;
}
released++;
if (released >= tags.size()) {
break;
}
tags[released++] = tag;
}
return released;