11-04-2022, 11:25 PM
Be sure to account for the possibility that the value of the pointer can be zero (when there is no ID3v2 tag present).
Regards,
Kent
Regards,
Kent
Thank you for your donation!
Solved: No album-covers in DSF-files
|
11-04-2022, 11:25 PM
Be sure to account for the possibility that the value of the pointer can be zero (when there is no ID3v2 tag present).
Regards, Kent
11-04-2022, 11:54 PM
(11-04-2022, 11:25 PM)TheOldPresbyope Wrote: Be sure to account for the possibility that the value of the pointer can be zero (when there is no ID3v2 tag present). In that case, the beginning of the tag will be assumed to be at offset 0, where there is no "ID3" string ("DSD " is there, instead), and the Zend library will fail as it does now, and produce no picture. Actually, now it fails exactly because it always looks for "ID3" at offset 0, where it is (seems to be so) supposed to be for the .mp3s Cheers, Al.
11-05-2022, 12:12 AM
(11-04-2022, 10:58 PM)Nutul Wrote: @Gerardus , @Tim Curtis , @TheOldPresbyope Are you referring to the reader in Zend? (11-05-2022, 12:12 AM)Tim Curtis Wrote:(11-04-2022, 10:58 PM)Nutul Wrote: @Gerardus , @Tim Curtis , @TheOldPresbyope Exactly. and this is the dsd special case fix: Code: if ($this->_reader->read(4) != 'DSD ') { I'll prepare a PR tomorrow, sometime.
11-05-2022, 12:25 AM
Nice.
Regards, Kent
11-05-2022, 02:04 AM
Whats the scope of the fix?
Does it just address the way cover art is embedded in this particular DSD file? I don't want to modify Zend for edge cases.
11-05-2022, 02:34 AM
As long as it finds the ID3v2 tag, if any is present, then it should be good. The DSF spec allows only for metadata in an ID3v2 tag in a DSD chunk.
Regards, Kent
11-05-2022, 07:32 AM
(11-05-2022, 02:04 AM)Tim Curtis Wrote: Whats the scope of the fix? The fix is exclusively for the ID3v" tag handling. The fix DOES NOT assume the ID3 tag starts ALWAYS at ZERO_OFFSET (as Zend now does...) instead: If the FILE_TYPE is DSD, it searches for the location of the tag (which is specified in the file's header) AND starts searching for it THERE. If the FILE_TYPE is NOT DSD, then proceeds as it has always done, that is, starting to search for the tag at OFFSETY ZERO. This may allow for further handling of different file types, as long as we know their formats, and therefore might be able to locate the ID3 tag accordingly. Cheers, Al.
11-05-2022, 10:57 AM
Ok, that makes sense.
|
« Next Oldest | Next Newest »
|