mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 20:47:08 +03:00
always copy granule unless it's -1 (not valid)
This commit is contained in:
@@ -240,8 +240,10 @@ static void stream_ogg(size_t n) {
|
|||||||
// otherwise, jump over data
|
// otherwise, jump over data
|
||||||
ogg.state = OGG_SYNC;
|
ogg.state = OGG_SYNC;
|
||||||
ogg.data = NULL;
|
ogg.data = NULL;
|
||||||
ogg.granule = ogg.header.granule;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// memorize granule for next page
|
||||||
|
if (ogg.header.granule != -1) ogg.granule = ogg.header.granule;
|
||||||
break;
|
break;
|
||||||
case OGG_PAGE: {
|
case OGG_PAGE: {
|
||||||
u32_t offset = 0;
|
u32_t offset = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user