mirror of
https://github.com/aaru-dps/libaaruformat.git
synced 2025-12-16 19:24:40 +00:00
Fix flac_block_size condition to ensure minimum block size is applied correctly
This commit is contained in:
@@ -1409,7 +1409,7 @@ int32_t aaruf_close_current_block(aaruformatContext *ctx)
|
||||
uint32_t flac_block_size = ctx->currentBlockOffset * SAMPLES_PER_SECTOR;
|
||||
|
||||
if(flac_block_size > MAX_FLAKE_BLOCK) flac_block_size = MAX_FLAKE_BLOCK;
|
||||
if(flac_block_size < MIN_FLAKE_BLOCK) flac_block_size = MAX_FLAKE_BLOCK;
|
||||
if(flac_block_size < MIN_FLAKE_BLOCK) flac_block_size = MIN_FLAKE_BLOCK;
|
||||
|
||||
const long remaining = current_samples % flac_block_size;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user