From 2cbdd7084818540c0bf7cf4ba52cc899742198d3 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Thu, 5 Sep 2024 18:30:25 +0700 Subject: [PATCH] Update ffprobe_info.php --- library/ajax/ffprobe_info.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/ajax/ffprobe_info.php b/library/ajax/ffprobe_info.php index 9b49cf356..d854b4af6 100644 --- a/library/ajax/ffprobe_info.php +++ b/library/ajax/ffprobe_info.php @@ -63,10 +63,10 @@ if (isset($ffpInfo->streams)) { if (!empty($stream->codec_name)) { $result .= sprintf($lang['AUDIO_CODEC'], $stream->codec_long_name, mb_strtoupper($stream->codec_name, 'UTF-8')) . '
'; } - if (!empty($stream->bit_rate)) { + if (!empty($stream->bit_rate) && is_int($stream->bit_rate)) { $result .= sprintf($lang['BITRATE'], humn_bitrate($stream->bit_rate)) . '
'; } - if (!empty($stream->sample_rate)) { + if (!empty($stream->sample_rate) && is_int($stream->sample_rate)) { $result .= sprintf($lang['SAMPLE_RATE'], humn_sample_rate($stream->sample_rate)) . '
'; } if (!empty($stream->channels)) {