Skip to content

Commit

Permalink
Fixes #96
Browse files Browse the repository at this point in the history
  • Loading branch information
gino0631 committed Apr 2, 2023
1 parent 5bfa83d commit ff1a649
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions 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
Expand Down
4 changes: 3 additions & 1 deletion lib/GetID3/AudioVideo/getid3_quicktime.php
Expand Up @@ -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'];
Expand All @@ -926,6 +925,9 @@ public function QuicktimeParseAtom($atomname, $atomsize, $atom_data, $baseoffset
break;
}
break;

default:
break;
}
break;

Expand Down

0 comments on commit ff1a649

Please sign in to comment.