Fix logic

This commit is contained in:
Simon Huber 2021-04-05 22:50:26 +02:00
parent f14cb122fe
commit b3f46372ae

View file

@ -113,7 +113,7 @@ class TargetQuality:
score = VMAF.read_weighted_vmaf(self.vmaf_probe(chunk, next_q))
vmaf_cq.append((score, next_q))
if next_q == self.min_q or next_q == self.max_q:
if (next_q == self.min_q and score < self.target) or (next_q == self.max_q and score > self.target):
self.log_probes(vmaf_cq, frames, chunk.name, next_q, score,
skip='low' if score < self.target else 'high')
return next_q