Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update mp4properties.cpp (taglib#893)
When parsing mp4 media header version 1 (mdhd) atoms, the timescale (unit) is parsed as a `LongLong` (8 bytes), but instead should be a `UInt` (4 bytes). This results in an incorrect timescale, and also pushes the offset of the duration (length) off by 4 bytes. The end result being that the AudioProperties track length for mp4's with mdhd v1 comes back as 0. See: https://wiki.multimedia.cx/index.php/QuickTime_container | Entry | Bytes (v0) | Bytes (v1) | | :--- | :---: | :---: | | size | 4 | 4 | | type | 4 | 4 | | version | 1 | 1 | | flags | 3 | 3 | | creation time* | 4 | **8** | | modification time* | 4 | **8** | | time scale | 4 | 4 | | duration* | 4 | **8** | | language | 2 | 2 | | quality | 2 | 2 |
- Loading branch information