Skip to content

Commit

Permalink
fix next_ogg_packet never returning false
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitalita committed Dec 10, 2023
1 parent b94eb58 commit 86a9145
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions modules/ogg/ogg_packet_sequence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
}
packet_cursor++;

return true;
}
Expand Down

0 comments on commit 86a9145

Please sign in to comment.