Skip to content

Commit

Permalink
fix prev commit
Browse files Browse the repository at this point in the history
  • Loading branch information
vpalmisano committed Oct 14, 2024
1 parent 8c9e0fe commit 35276a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ webrtcperf.getElements = window.getElements = async (
throw new Error(`Timeout getting "${selector}"`)
}
if (innerText) {
return [...elements].filter(
e => e.innerText.trim().toLowerCase() === innerText.trim().toLowerCase(),
return [...elements].filter(e =>
e.innerText.trim().toLowerCase().includes(innerText.trim().toLowerCase()),
)
} else {
return [...elements]
Expand Down
4 changes: 2 additions & 2 deletions src/vmaf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,10 +402,10 @@ export async function runVmaf(
const degTextHeight = Math.round(Math.round(degHeight / 18) * 1.2)

if (!crop.ref) crop.ref = {}
crop.ref.top = (crop.ref.top || 0) + refTextHeight * 2
crop.ref.top = (crop.ref.top || 0) + refTextHeight

if (!crop.deg) crop.deg = {}
crop.deg.top = (crop.deg.top || 0) + degTextHeight * 2
crop.deg.top = (crop.deg.top || 0) + degTextHeight

// Adjust the reference aspect ratio to match the degraded one.
const refAspectRatio = refWidth / refHeight
Expand Down

0 comments on commit 35276a2

Please sign in to comment.