Merge pull request #85996 from nikitalita/fix-next_ogg_packet

Fix `OggPacketSequencePlayback::next_ogg_packet()` never returning false
This commit is contained in:
Rémi Verschelde 2023-12-13 10:31:58 +01:00
commit edf64243bf
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -159,9 +159,7 @@ bool OggPacketSequencePlayback::next_ogg_packet(ogg_packet **p_packet) const {
*p_packet = packet;
if (!packet->e_o_s) { // Added this so it doesn't try to go to the next packet if it's the last packet of the file.
packet_cursor++;
}
return true;
}