From 7b1a3526b68c5ef23d1ff95c0f3b023c68573ea2 Mon Sep 17 00:00:00 2001 From: Armin Date: Fri, 3 Jul 2026 23:33:19 +0200 Subject: [PATCH] properly fix detection of 128k re-encode --- tcd.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tcd.c b/tcd.c index b615e6a..d694107 100644 --- a/tcd.c +++ b/tcd.c @@ -1190,10 +1190,7 @@ static int process_file(const char *filename, const Options *opts) if (bitrate > 0 && bitrate < 192000) expected_min = 0.75; else if (bitrate > 0 && bitrate < 256000) expected_min = 0.85; if (cutoff_ratio > 0 && cutoff_ratio < expected_min - 0.08) { - if (effective_cutoff > 0 && steepness / effective_cutoff > 0.30) - upscaled = 0; - else - upscaled = 1; + upscaled = 1; } } @@ -1255,10 +1252,7 @@ static int process_file(const char *filename, const Options *opts) else if (bitrate > 0 && bitrate < 256000) expected_min = 0.85; if (cutoff_ratio > 0 && cutoff_ratio < expected_min - 0.08) { - if (effective_cutoff > 0 && steepness / effective_cutoff > 0.30) - upscaled = 0; - else - upscaled = 1; + upscaled = 1; } if (upscaled) {