Le 25/01/2025 à 01:46, Michael Niedermayer a écrit : > [...] > this passes tests. > > but if you want, you could instead of testing "extra metadata (not needed for decoding)" > test more than 1 packet > > having a best case score of 1 seems to be something that will > likely fail sooner or later by not detecting a dat file Maybe misunderstanding, the cdxl parser provides score of 1, the DAT patches provide a score of the count of detected frames so better. But attached is a v2 of the 2nd patch, less compilation warnings, using less metadata not impacting the decoding and handling corner cases like bad metadata e.g. 16-bit 4-ch (impossible) and 32 kHz 12-bit 4-ch. 12-bit is not yet handled but the patch provides the detection of such file and a smooth rejection of the file. Jérôme