mirror of
https://codeberg.org/armin/tcd.git
synced 2026-09-01 05:50:46 +02:00
properly fix detection of 128k re-encode
This commit is contained in:
parent
68f05d2313
commit
7b1a3526b6
1 changed files with 2 additions and 8 deletions
10
tcd.c
10
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;
|
if (bitrate > 0 && bitrate < 192000) expected_min = 0.75;
|
||||||
else if (bitrate > 0 && bitrate < 256000) expected_min = 0.85;
|
else if (bitrate > 0 && bitrate < 256000) expected_min = 0.85;
|
||||||
if (cutoff_ratio > 0 && cutoff_ratio < expected_min - 0.08) {
|
if (cutoff_ratio > 0 && cutoff_ratio < expected_min - 0.08) {
|
||||||
if (effective_cutoff > 0 && steepness / effective_cutoff > 0.30)
|
upscaled = 1;
|
||||||
upscaled = 0;
|
|
||||||
else
|
|
||||||
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;
|
else if (bitrate > 0 && bitrate < 256000) expected_min = 0.85;
|
||||||
|
|
||||||
if (cutoff_ratio > 0 && cutoff_ratio < expected_min - 0.08) {
|
if (cutoff_ratio > 0 && cutoff_ratio < expected_min - 0.08) {
|
||||||
if (effective_cutoff > 0 && steepness / effective_cutoff > 0.30)
|
upscaled = 1;
|
||||||
upscaled = 0;
|
|
||||||
else
|
|
||||||
upscaled = 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (upscaled) {
|
if (upscaled) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue