Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix decoder not able to find start of next link #771

Merged
merged 1 commit into from
Dec 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/libFLAC/ogg_decoder_aspect.c
Original file line number Diff line number Diff line change
Expand Up @@ -654,8 +654,6 @@ FLAC__OggDecoderAspectReadStatus FLAC__ogg_decoder_aspect_skip_link(FLAC__OggDec
}
}
else { /* aspect->beginning_of_link == true */
/* Didn't seek, so move up left_pos */
left_pos = current_pos;
if(aspect->end_of_stream) {
if(aspect->current_linknumber == 0)
return FLAC__OGG_DECODER_ASPECT_READ_STATUS_LOST_SYNC;
Expand All @@ -682,6 +680,10 @@ FLAC__OggDecoderAspectReadStatus FLAC__ogg_decoder_aspect_skip_link(FLAC__OggDec
}
find_bos_twice = false;
}
if(!aspect->beginning_of_link) {
/* Done scanning BOS pages, move up left_pos */
left_pos = page_pos;
}
}
}
}
Expand Down
Loading