13be28a52c
Be tolerant of empty FLAC seektable blocks.
2017-01-10 00:11:13 +09:00
83c72518ab
Renamed unsupported-extension.xxx and modified test
...
The file name unsupported-extension.xxx causes issue when unpacked
taglib-xxx.gz over an NFS partition. The file extension ".xxx" is the
one NFS uses for its own purpose and hence it will not allow creation
of this file.
Hence renamed the file and modified the test cases that checks for this
file.
Signed-off-by: Ramesh Shanmugasundaram <ramesh.shanmugasundaram@bp.renesas.com >
2016-12-22 15:19:45 +00:00
36ccad2bd4
Rewrite ByteVector::replace() to run in O(n) time.
2016-12-05 11:02:59 +09:00
b00a5c1aab
Add a test to check if ByteVector is detached correctly when being replaced.
2016-12-05 10:15:26 +09:00
cfbaf34597
Prevent the segment table of Ogg pages from exceeding the size limit.
2016-12-01 10:51:59 +09:00
4381bd75f3
Add a test for #743/#779.
2016-11-29 10:53:33 +09:00
d3062f3af4
A bit more tolerant check to return itself in String::substr().
2016-11-26 13:05:14 +09:00
6cfb11bb12
test_string: Make 'stripWhiteSpace' test more complex
...
No string without leading/trailing spaces was used in the test.
Signed-off-by: Martin Flaska <martin.flaska@legrand.us >
2016-11-25 13:56:39 +01:00
ad075a56f9
Suppress MSVC warnings in test.
2016-11-24 14:45:22 +09:00
b98a984b66
Fix handling of lowercase 'metadata_block_picture' fields in Vorbis comments.
...
Also refactored some redundant code for parsing pictures.
2016-11-11 00:07:32 +09:00
f9a747dceb
Avoid adding fields with invalid keys to Vorbis Comments.
...
According to the spec, '\x7F' is not allowed.
2016-11-10 23:35:14 +09:00
7b8d576bde
Don't decode redundant UTF-8 sequences in Win32.
...
Linux and OS X are working well and won't be affected.
2016-11-10 17:12:58 +09:00
2651372291
Separate some tests to make them more specific.
2016-11-09 15:51:33 +09:00
499f6db977
Check invalid Unicode APE keys properly.
2016-11-09 00:29:03 +09:00
253c61e37d
Merge pull request #765 from TsudaKageyu/zero-length-atom
...
Proper handling of MP4 atoms with zero length.
2016-11-08 21:12:47 +09:00
1848b3bc6f
Merge pull request #759 from ufleisch/mp4_classical
...
Support new classical music frames introduced with iTunes 12.5, #758 .
2016-11-08 21:12:31 +09:00
f5ca097379
Proper handling of MP4 atoms with zero length.
...
If the size of an atom is 0, it designates the last atom which extends to the end of the file.
2016-11-02 15:44:50 +09:00
e6a69e24bc
Add a common function to generate a long string to test.
2016-10-31 20:01:52 +09:00
dcab8ed90e
Allow ScopedFileCopy to be const.
2016-10-31 10:29:13 +09:00
935534aa53
Backport a test from taglib2 branch.
2016-10-28 15:19:35 +09:00
aa5f9bb221
Suppress some warnings in test.
2016-10-27 15:23:24 +09:00
d2b3547254
Add a test for File::truncate().
2016-10-27 15:15:22 +09:00
6a96a6426a
Replace a possibly non-free file in the test suite.
2016-10-22 02:11:16 +09:00
1b64bb0cb7
Support new classical music frames introduced with iTunes 12.5, #758 .
...
M4A:
©wrk: Work (string)
©mvn: Movement Name (string)
©mvi: Movement Number (number)
©mvc: Movement Count (number)
shwm: Show Work & Movement (0/1)
ID3 (2.3, 2.4; MVN, MVI for 2.2):
MVNM: Movement Name
MVIN: Movement Number/Count
2016-10-18 20:45:54 +02:00
7e90313690
Fix defect in ByteVectorStream::seek when Position==End.
2016-09-15 16:30:16 +02:00
9b995544e4
Fix reading table of contents frames with a lot of children.
2016-05-14 09:58:19 +09:00
7627ae48ed
Change some static_casts to dynamic_casts in test_id3v2.cpp.
...
static_casts are unsafe and some of following tests doesn't work well with them.
2016-03-17 22:50:34 +09:00
b2a6768704
Don't stop parsing an ID3v2 SYLT frame when its description is empty.
2016-03-14 20:35:09 +09:00
520da50bc5
Always update the global RIFF size when updating RIFF files.
2016-02-22 22:27:18 +09:00
710166e32d
Separate zlib related code rather than having several #ifdef blocks.
2016-02-21 23:16:48 +09:00
7d8aa7b8bd
ByteVector::append() can't take the vector itself.
2016-02-20 19:42:46 +09:00
98a57744c3
Add some tests for ByteVector::replace().
2016-02-20 11:50:47 +09:00
8c4b484e67
Fix a possible out-of-bounds access in SynchData::decode().
...
This also avoids an extra memory copy.
2016-02-19 20:58:09 +09:00
07d95e0dc0
Add an overload of ByteVector::replace() which takes chars.
...
Currently, this is only way of using ByteVector::replace().
2016-02-18 03:47:02 +09:00
a9acca5d81
Decode unsynchronized ID3v2 frames efficiently.
...
It makes a great difference when decoding huge unsynchronized ID3v2 frames.
2016-02-18 03:07:38 +09:00
c08e0b1357
Reorganize some redundant or missing tests.
2016-02-15 01:49:23 +09:00
d037b8c908
Make sure we don't write UTF8 or UTF16BE to ID3v2.3 tags.
2016-02-15 00:22:18 +09:00
aa339eba87
Fix a wrong test for base64 decoding.
2016-02-11 20:47:55 +09:00
184a151d41
Add some missing FileRef tests.
2016-02-06 21:56:51 +09:00
cc2ccbc20c
Test if FileRef chooses a correct File type.
2016-02-06 21:32:03 +09:00
fffff35ca5
Correct the license information.
2016-02-06 01:27:36 +09:00
5350bc8501
Oops! We already have a function to check APE item keys.
2016-02-01 22:46:08 +09:00
9976155aa9
Ignore 'fact' chunk of WAV files if their format is PCM.
...
TagLib reports wrong length of some PCM files with a 'fact' chunk.
2016-01-30 00:51:28 +09:00
fe92f3dffe
Add a test for broken MPEG audio frames.
2016-01-09 13:30:00 +09:00
67434aa7b4
Merge pull request #705 from TsudaKageyu/mpeg-invalid-frame
...
More robust checks for invalid MPEG frame headers. (again)
2015-12-25 08:58:06 +09:00
cb23f91c98
Merge branch 'master' of https://github.com/dukeyin/taglib into dukeyin-master
...
# Conflicts:
# tests/test_id3v2.cpp
2015-12-24 13:47:55 +09:00
4064b34eff
A bit more tolerant check for the MPEG frame length.
2015-12-22 20:39:58 +09:00
22708a0af6
Add some supplementary comments.
2015-12-22 17:06:40 +09:00
081d6eaf76
More robust checks for invalid MPEG frame headers. (again)
2015-12-22 14:57:23 +09:00
1aca1f64fe
Enable FLAC::File to remove non-standard tags.
2015-12-21 15:42:41 +09:00