Skip to content

Commit e20c767

Browse files
committed
atrac3: Prefer largest locations of gain curve points.
1 parent c80ee6a commit e20c767

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/transient_detector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ std::vector<TGainCurvePoint> CalcCurve(const std::vector<float>& in, TCurveBuild
325325
[](const TTransition& a, const TTransition& b) {
326326
if (a.Delta != b.Delta)
327327
return a.Delta > b.Delta;
328-
return a.Loc < b.Loc;
328+
return a.Loc > b.Loc;
329329
});
330330
trans.resize(static_cast<size_t>(kMaxCurvePoints));
331331
std::sort(trans.begin(), trans.end(),

0 commit comments

Comments
 (0)