Skip to content

qtdemux: Always prefer information from v1/v2 sound sample description over...

qtdemux: Always prefer information from v1/v2 sound sample description over sample description entry

ffmpeg is doing the same and various files in the wild have bogus information in the sample description if the same information is also duplicated afterwards in the v1/v2 sound sample desription.

Previously we only did this for non-raw audio due to https://bugzilla.gnome.org/show_bug.cgi?id=374914 but this specific file is already worked around differently. It still works after this change.

Also remove ad-hoc GST_READ_DOUBLE_BE re-implementation and move the switch for legacy audio formats after reading all the sample descriptions as we want to override the values from there.


Pulled out of !452 (merged) for now as it's really separate.

Merge request reports