Update ffprobe_info.php

This commit is contained in:
Roman Kelesidis 2024-09-05 11:58:17 +07:00
commit f2d14a96c9

View file

@ -124,7 +124,7 @@ function humn_bitrate(int $bitrate, string $space = ' '): string
$unit = 'bps'; $unit = 'bps';
} }
return commify($bitrate, 2) . $space . $unit; return sprintf('%d', commify($bitrate)) . $space . $unit;
} }
/** /**
@ -137,7 +137,7 @@ function humn_bitrate(int $bitrate, string $space = ' '): string
function humn_sample_rate(int $sample_rate, string $space = ' '): string function humn_sample_rate(int $sample_rate, string $space = ' '): string
{ {
$unit = ''; $unit = '';
return commify($sample_rate, thousands_separator: '.') . $space . $unit; return sprintf('%.1f', commify($sample_rate)) . $space . $unit;
} }
$this->response['file_index'] = $file_index; $this->response['file_index'] = $file_index;