diff options
| author | Pinapelz <yukais@pinapelz.com> | 2026-04-25 20:27:48 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2026-04-25 20:27:48 -0700 |
| commit | 0a956ca81e839d3e56bcc2aa674444f0cf9756fe (patch) | |
| tree | 35451dc97878b6f17d191e88753bd5abf8e9fad4 /main.py | |
| parent | 5a38f9d8fd9253e6f7a1e2ba51cf8d124eee052e (diff) | |
fix: adjust blocksize only if larger than 4096
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -35,7 +35,7 @@ def get_audio_issues(path: Path) -> dict: return { "needs_sample_rate_fix": sample_rate > 192000, "needs_bitdepth_fix": bits_per_sample > 24, - "needs_blocksize_fix": max_blocksize != 4096, + "needs_blocksize_fix": max_blocksize > 4096, "sample_rate": sample_rate, "bits_per_sample": bits_per_sample, "max_blocksize": max_blocksize, @@ -170,7 +170,7 @@ def process_file(fp: Path, nolrc: bool) -> str: fp = normalize_loudness(fp) post_blocksize = getattr(FLAC(str(fp)).info, "max_blocksize", 4096) - if post_blocksize != 4096: + if post_blocksize > 4096: log(f" Fixing blocksize -> 4096 via flac CLI") fp = fix_blocksize(fp) |
