From b7df2ea08c5b6ab861c7327d550a9697aff7fd1d Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Wed, 18 Sep 2019 14:53:01 +0000 Subject: [PATCH] External Library: Update getid3 to 1.9.18 Follow up to r46112 as getid3 has tagged an official release. Changes: https://github.com/JamesHeinrich/getID3/compare/00f3fbfd77e583099ca70a3cf0bc092e113d2b20...v1.9.18 Props desrosj, jkitchen. Fixes #47751 #40883 #43836. git-svn-id: https://develop.svn.wordpress.org/trunk@46166 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/ID3/getid3.php | 2 +- src/wp-includes/ID3/module.audio-video.matroska.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/ID3/getid3.php b/src/wp-includes/ID3/getid3.php index 178c7cc1af..cb25253e22 100644 --- a/src/wp-includes/ID3/getid3.php +++ b/src/wp-includes/ID3/getid3.php @@ -250,7 +250,7 @@ class getID3 */ protected $startup_warning = ''; - const VERSION = '1.9.17-201907240906'; + const VERSION = '1.9.18-201907240906'; const FREAD_BUFFER_SIZE = 32768; const ATTACHMENTS_NONE = false; diff --git a/src/wp-includes/ID3/module.audio-video.matroska.php b/src/wp-includes/ID3/module.audio-video.matroska.php index b2b187b6f1..5999066218 100644 --- a/src/wp-includes/ID3/module.audio-video.matroska.php +++ b/src/wp-includes/ID3/module.audio-video.matroska.php @@ -342,7 +342,7 @@ class getid3_matroska extends getid3_handler switch ($trackarray['CodecID']) { case 'A_PCM/INT/LIT': case 'A_PCM/INT/BIG': - $track_info['bitrate'] = $trackarray['SamplingFrequency'] * $trackarray['Channels'] * $trackarray['BitDepth']; + $track_info['bitrate'] = $track_info['sample_rate'] * $track_info['channels'] * $trackarray['BitDepth']; break; case 'A_AC3':