Commit Graph

15 Commits

Author SHA1 Message Date
yinhylin
27fc96f196 fix: fix id3v2 sum error 2022-10-29 23:56:34 +08:00
David Howden
e80a3fa76a update to use new io.Seek consts, require min go1.7 2018-04-02 11:06:41 +10:00
Mattias Wadman
2d92c90588 Read and skip extended header bytes for 2.3 and 2.4
Fixes #21
2016-05-05 17:18:51 +02:00
David Howden
c259675f29 Use switch in place of multiple if statements. 2015-09-20 20:13:12 +10:00
David Howden
554fadb2b4 Added Sum support for FLAC 2015-09-20 20:09:42 +10:00
David Howden
92e6d71ddb Refactor common code to skip last 128 bytes from ReadSeeker. 2015-06-30 23:07:26 +10:00
David Howden
52902f61b8 Switch to using relative seeks only (last remaining call using SEEK_SET). 2015-06-30 23:06:50 +10:00
David Howden
00cce15102 Remove unnecessary recursion. 2015-06-30 23:05:59 +10:00
David Howden
0b455fc176 Write straight to hash function instead of buffering. 2015-06-30 08:58:55 +10:00
David Howden
6021704ba3 Seek over next_item_id instead of reading it. 2015-06-30 08:57:03 +10:00
David Howden
6d208fee69 Remove unnecessary case in SumAtoms. 2015-06-30 08:56:21 +10:00
David Howden
6df4e78d96 Remove non-relative Seek calls from all functions.
Previously we would seek to the beginning of the io.ReadSeeker. It is much more
flexible to assume that the caller passes the ReadSeeker in an appropriate state.
2015-06-07 12:58:58 +10:00
Xavier Henner
a678a5d67b Fix a bug in Sum() and add all id3frames in Raw()
The Seek in SumID3v2() didn't take into account the size of the ID3v2 Header
(10 bytes). Thus when tagging the same file with or without it's tag, there was
a discrepancy. (

And I've added a default case when parsing the id3v2 tags, by storing the
binary content to Raw()
2015-05-24 21:19:15 +02:00
David Howden
4b3edce02f Fixed godoc 2015-04-27 22:53:37 +10:00
David Howden
e9deeea0e1 Refactored Hash -> Sum and fixed infinite loop issue with SumAtoms 2015-04-03 15:13:39 +11:00