Prevent frame decoding issues with FLAC from ending playback early

custom
ailurux 4 months ago
parent 470bd7db75
commit 0810c05d13
  1. 2
      lib/drflac/dr_flac.h

@ -5703,6 +5703,8 @@ static drflac_bool32 drflac__read_and_decode_next_flac_frame(drflac* pFlac)
if (result != DRFLAC_SUCCESS) {
if (result == DRFLAC_CRC_MISMATCH) {
continue; /* CRC mismatch. Skip to the next frame. */
} else if (result == DRFLAC_ERROR) {
continue; /* Frame parsing error. Skip to the next frame. */
} else {
return DRFLAC_FALSE;
}

Loading…
Cancel
Save