Skip to content

Commit

Permalink
feat: Warn if replacing width/frameRate.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrozev committed Dec 12, 2024
1 parent 4572e8c commit 7d2d1e7
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ class VlaReaderNode(
)
layer.targetBitrate = targetBitrateKbps.kbps
spatialLayer.res?.let { res ->
if (layer.height > 0 && layer.height != res.height) {
logger.warn("Updating layer height from ${layer.height} to ${res.height}")
}
if (layer.frameRate > 0.0 && layer.frameRate != res.maxFramerate.toDouble()) {
logger.warn(
"Updating layer frame rate from ${layer.frameRate} to ${res.maxFramerate}"
)
}
layer.height = res.height
layer.frameRate = res.maxFramerate.toDouble()
}
Expand Down

0 comments on commit 7d2d1e7

Please sign in to comment.