mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-31 04:02:37 +00:00
WebmVorbisEncoder::make_vorbis_private_data(): Resolve esoteric optimisation errors under GCC15 by assigning directly
std::vector's reserve func was somehow optimised into providing non-stack data which emplace_back wasn't playing nice with!? What even is the point of these optimisations if a very basic call dies like that
This commit is contained in:
parent
471e11f4b5
commit
b1af67bcaf
1 changed files with 2 additions and 1 deletions
|
|
@ -61,7 +61,8 @@ std::vector<std::byte> WebmVorbisEncoder::make_vorbis_private_data()
|
|||
|
||||
// The first byte is the number of packets. Once again,
|
||||
// the last packet is not counted.
|
||||
v.emplace_back(std::byte {2});
|
||||
v.resize(1);
|
||||
v[0] = std::byte {2};
|
||||
|
||||
// Then the laced sizes for each packet.
|
||||
lace(v, packets[0]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue