mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-18 19:41:01 +01:00
audio: fix released buffer bounds check
This commit is contained in:
parent
c04567fad4
commit
2c00599a53
1 changed files with 6 additions and 2 deletions
|
@ -146,11 +146,15 @@ public:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (released < tags.size()) {
|
||||||
|
tags[released] = tag;
|
||||||
|
}
|
||||||
|
|
||||||
|
released++;
|
||||||
|
|
||||||
if (released >= tags.size()) {
|
if (released >= tags.size()) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
tags[released++] = tag;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return released;
|
return released;
|
||||||
|
|
Loading…
Reference in a new issue