MediaArea / MediaInfoLib

Convenient unified display of the most relevant technical and tag data for video and audio files.
https://mediaarea.net/MediaInfo
BSD 2-Clause "Simplified" License
636 stars 175 forks source link

[MPEG7] Incorrect output in strict mode when activating collection detection #2097

Closed tledoux closed 3 months ago

tledoux commented 3 months ago

When outputting MPEG-7_Strict while activating collection (--Collection_Trigger=0 --Collection_Display=supported) for DVD in particular, the XML generated is not valid because it includes comments within comments. The comment giving the ColorSampling ( ) is included in the "More than 1 track" comment.

Indeed, the count of tracks in MPEG7Strict is limited to one, so the others are in comments. But when collections are used, every new Content can have its own VisualCoding and AudioCoding. So the first one of each Content shouldn't be commented out.

JeromeMartinez commented 3 months ago

Fix available in development snapshots. Do you need a backport to a specific version (which one)?

tledoux commented 3 months ago

Hi, thanks for the quick correction. No specific need for a version, we can use the development snapshots until next "official" version is out. Best regards