mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-11 17:30:00 +02:00
Fixed NaN errors in FFmpeg bitrate argument generation by ensuring integer conversion happens before integer division. The double multiplication (1.5, 2.0) was happening before the ~/ operator, causing NaN values. Now properly converts to int first, then divides. - maxRateArg: ((bitrateBps * 1.5).toInt() ~/ 1000) - bufferSizeArg: ((bitrateBps * 2).toInt() ~/ 1000) Fixes: Unsupported operation: Result of truncating division is NaN Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>