c2f544c9d1
Fill TableOfContentsFrame::toString()
. ( #852 )
2018-10-26 19:21:18 -05:00
8ca75f03b5
Follow TagLib's brace style
2018-10-10 19:24:44 +02:00
036a0317b9
Add support for file descriptor to FileStream ( #832 )
...
Add support for file descriptor
2018-10-10 12:25:02 -04:00
8f6fe0b16c
Don't list the description twice in UserTextIdentificationFrame::toString()
( #853 )
2018-10-09 18:55:02 -05:00
2c4ae870ec
Fixed OOB read when loading invalid ogg flac file. ( #868 ) ( #869 )
...
CVE-2018-11439 is caused by a failure to check the minimum length
of a ogg flac header. This header is detailed in full at:
https://xiph.org/flac/ogg_mapping.html . Added more strict checking
for entire header.
2018-10-09 18:46:55 -05:00
d8d56d3937
Add support for cmID, purl, egid MP4 atoms ( #862 ). ( #863 )
2018-04-09 08:32:05 -05:00
a80093167f
Update links
2017-11-20 00:03:52 +01:00
249f892455
Fix crash when loading an empty mpeg file ( #830 )
...
When loading an empty file (empty.txt -> empty.mp3 ), TagLib will crash.
buffer.size() is 0, then buffer.size() - 1 is undefined (unsigned int)
2017-11-06 09:48:17 -06:00
cb9f07d9dc
Don't assume TDRC is an instance of TextIdentificationFrame ( #831 )
...
If TDRC is encrypted, FrameFactory::createFrame() returns UnknownFrame
which causes problems in rebuildAggregateFrames() when it is assumed
that TDRC is a TextIdentificationFrame
2017-09-30 10:15:41 -05:00
4648394841
Check if mandatory header objects are present when opening ASF files.
...
Also removes some assignments of "this".
It feels too tricky when it is not absolutely necessary.
2017-06-13 17:22:00 +09:00
e026d797e0
Use a macro to pretend virtual functions.
2017-06-13 17:01:53 +09:00
eeb2f5de09
Fix some typos in debug messages.
2017-06-13 15:05:25 +09:00
1fb310ec1f
Merge pull request #799 from TsudaKageyu/filetype-detection
...
Enable FileRef to detect file types by the actual content of a stream.
2017-06-12 13:04:15 +09:00
c8bcd153fe
TableOfContentsFrame depends on ByteVectorList.
2017-06-09 17:52:56 +09:00
662f340f93
Merge pull request #824 from evpobr/fix-createfile2
...
Fix WinRT configuring
2017-06-09 08:53:25 +09:00
5ebd3d5276
Fix WinRT configuring
...
Don't rely on _WIN32_WINNT value to enable WinRT support.
if _WIN32_WINNT is not set manually, it is defaulted to SDK version. So
if you use SDK > 8 you cannot use TagLib under Win7 and lower because of
CreateFile2 function dependency.
PLATFORM_WINRT option (OFF by default) was introduced to enable WinRT
build.
Related issues: https://github.com/Microsoft/vcpkg/issues/1240
2017-06-08 19:00:37 +05:00
14af861d24
Isolate 3rdparty library for easier maintenance.
2017-06-07 12:51:44 +09:00
3795f277fb
Update UTF8-CPP to v2.3.5.
2017-06-07 12:12:31 +09:00
6045995e65
Remove an unused include directory from taglib/CMakeLists.txt.
2017-06-07 11:38:46 +09:00
c2fe93c12b
Restore FileRef::create() in order not to change the previous behavior.
2017-06-06 09:17:34 +09:00
682ea77c2b
Mention that FileRef::create no longer works.
2017-05-31 09:41:41 +09:00
4801fbb927
Merge pull request #818 from LindyBalboa/add_rate_atom_support
...
Add direct support for "rate" atom
2017-05-31 09:20:27 +09:00
48a1a05a88
Fix MSVC warnings about unreferenced variables.
2017-05-23 17:46:16 +09:00
ff28cf276c
Add direct support for "rate" atom
...
Resolves #817
2017-04-22 07:45:29 +02:00
4891ee729d
Remove an useless UTF-8 BOM.
2017-02-24 15:47:30 +09:00
9419dab51b
Allow SYLT frames to have a timestamp with no text.
...
Thanks to lemonboy999.
2017-02-24 15:40:30 +09:00
45ee18e206
FilePrivate is responsible to delete a stream pointer instead of File.
...
Generally, TagLib leaves the Private classes to delete their members.
2017-02-08 17:49:48 +09:00
bf7ee62dc6
Merge branch 'filetype-detection' of https://github.com/TsudaKageyu/taglib into filetype-detection
2017-02-07 22:37:13 +09:00
f76b1e5429
Rename the functions 'isValidStream' to 'isSupported'.
...
The name 'isValidStream' is a little misleading because it doesn't check if the stream is really valid. Additionally, 'isSupported' can be naturally overloaded.
2017-02-07 22:36:56 +09:00
f7b15fad20
Remove some redundant code.
2017-02-06 10:35:49 +09:00
dd4adf94ce
Fix wrong endian of boolean values when saving ASF files.
2017-02-06 10:06:10 +09:00
931bb042c3
Enable FileRef to detect file types by the actual content of a stream.
...
FileRef doesn't work with ByteVectorStream as reported at #796 , since ByteVectorStream is not associated with a file name and FileRef detects file types based on file extensions.
This commit makes FileRef to work with ByteVectorStream by enabling it to detect file types based on the actual content of a stream.
2017-02-04 23:31:08 +09:00
a5d9e49c49
Remove obsolete comments.
...
The bug mentioned in the comments are already fixed.
2017-02-04 01:31:20 +09:00
179c175a6c
Ignore warnings about OSAtomicIncrement32Barrier
...
The warnings suggest moving to std::atomic functions, but those are only
available in C++11. It would be possible to switch to the C versions of
those functions, which are now provided in stdatoic.h (in C11), but
let's wait until we actually hit problems with this function and are a
few more OS versions into C11 headers being included by default.
2017-02-03 13:56:02 +00:00
ba98628919
Avoid searching the same area twice in MPEG::File::previousFrameOffset().
2017-02-01 14:23:03 +09:00
4552f2c2eb
Remove redundant functions in tstring.cpp.
...
Two versions of copyFromUTF16() are almost the same.
2017-01-30 22:38:08 +09:00
6398796f95
Remove function bodies of some non-specialized template functions.
...
The code won't link when a wrong version is used. It's better than showing a debug message.
2017-01-30 16:11:59 +09:00
6a61f02f85
Merge pull request #794 from TsudaKageyu/utf8-library
...
Replace unicode.h/unicode.cpp by the UTF8-CPP library.
2017-01-30 12:54:43 +09:00
038b52ae01
Check an invalid UTF-8 sequence consists of single char.
...
Single char can be an invalid UTF sequence. For example, { 0x80 } is invalid.
2017-01-30 11:35:39 +09:00
598ab752bc
Stop assuming that std::wstring has a contiguous and null-terminated buffer.
2017-01-30 00:36:38 +09:00
922fd611ae
Reduce useless memory reallocation in String::upper().
2017-01-28 01:17:21 +09:00
978b822774
Remove some redundant code in tstring.cpp.
2017-01-27 15:11:08 +09:00
0c45c63943
Replace unicode.h/unicode.cpp by the UTF8-CPP library.
...
unicode.h/unicode.cpp are no longer maintained and incompatible with Debian's guideline.
UTF8-CPP is maintained on GitHub and published under the Boost Software License which is compatible with either LGPL or MPL and should go along with Debian's guideline.
2017-01-27 14:47:55 +09:00
fc38a0e401
Remove some redundant code.
...
TagUnion::access() does the same thing as FLAC::File::ID3v2Tag().
2017-01-22 00:43:32 +09:00
5fc5a2e81a
Prefer isEmpty()/empty() to size() == 0.
2017-01-21 19:10:32 +09:00
a358e87cc4
Revert useless changes accidentally committed.
2017-01-21 11:13:49 +09:00
5ba8b740f9
Add missing consts.
2017-01-21 11:09:05 +09:00
c4a3c3ab97
Combine two internal functions which are always used together.
2017-01-21 01:34:50 +09:00
6bb92c34fa
Ignore fake MPEG frame headers when seeking them.
2017-01-20 22:38:25 +09:00
d2e0e55223
Efficient lookup for an ID3v2 tag in MPEG files with garbage.
...
This looks for an ID3v2 tag until reaching the first valid MPEG frame in O(n) time.
2017-01-20 21:14:38 +09:00