Skip to content

Commit

Permalink
always copy granule unless it's -1 (not valid)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippe44 committed Jan 4, 2024
1 parent f677695 commit 01320db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/squeezelite/stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,10 @@ static void stream_ogg(size_t n) {
// otherwise, jump over data
ogg.state = OGG_SYNC;
ogg.data = NULL;
ogg.granule = ogg.header.granule;
}

// memorize granule for next page
if (ogg.header.granule != -1) ogg.granule = ogg.header.granule;
break;
case OGG_PAGE: {
u32_t offset = 0;
Expand Down

0 comments on commit 01320db

Please sign in to comment.