Go to file
Tim Malseed 6455671ece Update mp4properties.cpp (#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 |
2019-03-17 08:22:19 -05:00
3rdparty/utf8-cpp Isolate 3rdparty library for easier maintenance. 2017-06-07 12:51:44 +09:00
bindings Improve CMake VISIBILITY_HIDDEN option handling (#810) 2018-10-26 19:26:53 -05:00
cmake/modules Run-time check for floating point byte order rather than CMake check. 2015-08-01 23:40:23 +09:00
doc Move docs building to CMake 2011-02-13 12:22:42 +00:00
examples Merge branch 'cmake-allow-BUILD_SHARED_LIBS-to-drive-ENABLE_STATIC' of https://github.com/tSed/taglib into tSed-cmake-allow-BUILD_SHARED_LIBS-to-drive-ENABLE_STATIC 2015-12-02 14:21:58 +09:00
taglib Update mp4properties.cpp (#893) 2019-03-17 08:22:19 -05:00
tests Add DSF and DSDIFF file types management (#878) 2018-10-26 19:45:49 -05:00
.astylerc Add astylerc 2015-05-18 11:31:55 +02:00
.editorconfig Add OS X settings to travis.yml. 2016-02-14 03:29:03 +09:00
.gitignore added OS X built files to .gitignore (#828) 2018-10-26 19:23:44 -05:00
.travis.yml Fix the Travis-CI testing on OS X. 2017-05-23 17:33:22 +09:00
AUTHORS Added DSF and DSDIFF authors 2018-10-28 08:35:15 -05:00
cmake_uninstall.cmake.in added uninstall target 2011-06-26 21:58:51 +02:00
CMakeLists.txt Improve CMake VISIBILITY_HIDDEN option handling (#810) 2018-10-26 19:26:53 -05:00
config.h.cmake Remove all the optional dependencies on Boost. 2016-12-20 11:54:06 +09:00
ConfigureChecks.cmake Fix WinRT configuring 2017-06-08 19:00:37 +05:00
COPYING.LGPL Different LGPL version than was referenced in headers 2010-09-22 00:07:26 +00:00
COPYING.MPL Got permission from all (non-trivial) contributors to dual license under the MPL. 2007-10-10 18:22:58 +00:00
Doxyfile.cmake Support building documentation out-of-source-dir 2011-04-09 19:15:46 +02:00
INSTALL.md Update INSTALL.md 2017-06-05 14:49:09 +02:00
NEWS Updated NEWS for the latest changes 2018-10-28 08:43:45 -05:00
README.md Added APE, DSF, and DFF formats to the list 2018-10-28 08:42:19 -05:00
taglib-config.cmake Skip the patch version if it's 0 2015-08-25 17:04:34 +02:00
taglib-config.cmd.cmake Missed the full version string in taglib-config.cmd.cmake 2015-08-25 20:46:11 +02:00
taglib.pc.cmake Fix .pc file configuration. 2015-12-21 22:25:49 +01:00

TagLib

Build Status

TagLib Audio Metadata Library

http://taglib.org/

TagLib is a library for reading and editing the metadata of several popular audio formats. Currently it supports both ID3v1 and ID3v2 for MP3 files, Ogg Vorbis comments and ID3 tags in FLAC, MPC, Speex, WavPack, TrueAudio, WAV, AIFF, MP4, APE, DSF, DFF, and ASF files.

TagLib is distributed under the GNU Lesser General Public License (LGPL) and Mozilla Public License (MPL). Essentially that means that it may be used in proprietary applications, but if changes are made to TagLib they must be contributed back to the project. Please review the licenses if you are considering using TagLib in your project.