Fix end-of-stream signal not being propagated

Credit: Oss-Fuzz
Issue: https://issues.oss-fuzz.com/issues/370597904
This commit is contained in:
Martijn van Beurden 2024-10-29 15:47:56 +01:00
parent a7d69df653
commit fd09bbb857

View File

@ -654,7 +654,7 @@ FLAC__OggDecoderAspectReadStatus FLAC__ogg_decoder_aspect_skip_link(FLAC__OggDec
return FLAC__OGG_DECODER_ASPECT_READ_STATUS_LOST_SYNC;
aspect->current_linknumber--;
aspect->linkdetails[aspect->current_linknumber].is_last = true;
return FLAC__OGG_DECODER_ASPECT_READ_STATUS_OK;
return FLAC__OGG_DECODER_ASPECT_READ_STATUS_END_OF_STREAM;
}
else {
/* We can end up here for three reasons: