From ff1a649603bda044644a021f2be06d7ebb46db86 Mon Sep 17 00:00:00 2001 From: gino0631 Date: Mon, 3 Apr 2023 01:20:16 +0300 Subject: [PATCH] Fixes #96 --- CHANGELOG.md | 3 +++ lib/GetID3/AudioVideo/getid3_quicktime.php | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e5349cd..b51d116 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Changelog ## [Unreleased] +### Fixed +- Incorrect audio metadata with some MP4 files + [96](https://github.com/gino0631/nextcloud-metadata/issues/96) ## 0.18.0 – 2023-03-30 ### Added diff --git a/lib/GetID3/AudioVideo/getid3_quicktime.php b/lib/GetID3/AudioVideo/getid3_quicktime.php index 8fd9e8d..f2bd828 100644 --- a/lib/GetID3/AudioVideo/getid3_quicktime.php +++ b/lib/GetID3/AudioVideo/getid3_quicktime.php @@ -900,7 +900,6 @@ public function QuicktimeParseAtom($atomname, $atomsize, $atom_data, $baseoffset break; case 'mp4a': - default: $info['quicktime']['audio']['codec'] = $this->QuicktimeAudioCodecLookup($atom_structure['sample_description_table'][$i]['data_format']); $info['quicktime']['audio']['sample_rate'] = $atom_structure['sample_description_table'][$i]['audio_sample_rate']; $info['quicktime']['audio']['channels'] = $atom_structure['sample_description_table'][$i]['audio_channels']; @@ -926,6 +925,9 @@ public function QuicktimeParseAtom($atomname, $atomsize, $atom_data, $baseoffset break; } break; + + default: + break; } break;