Serial-ATA / lofty-rs

Audio metadata library
Apache License 2.0
185 stars 34 forks source link

MP4: Fix parsing of plID atoms with incorrect codes #202

Closed Serial-ATA closed 1 year ago

Serial-ATA commented 1 year ago

In the event that the plID atom has the wrong code (which seems to be the case quite often), we wouldn't populate the atom data properly. This would lead to a panic when converting to Tag.

This removes the code check entirely, since we can no longer trust that to be correct. We also now verify that there's something present.

closes #201