qtdemux: fix byte order for opus extension and version field type

The "Encapsulation of Opus in ISO Base Media File Format" [1] specifications,
§ 4.3.2 Opus Specific Box, indicates that data must be stored as big-endian.

[1] https://opus-codec.org/docs/opus_in_isobmff.html#4.3.2

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4875>
This commit is contained in:
François Laignel 2023-06-16 10:29:28 +02:00 committed by GStreamer Marge Bot
parent f3496ea3bf
commit 439717ab65

View file

@ -13460,7 +13460,7 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
dops_data = stsd_entry_data + 35;
channels = GST_READ_UINT8 (dops_data + 10);
rate = GST_READ_UINT32_LE (dops_data + 13);
rate = GST_READ_UINT32_BE (dops_data + 13);
channel_mapping_family = GST_READ_UINT8 (dops_data + 19);
stream_count = GST_READ_UINT8 (dops_data + 20);
coupled_count = GST_READ_UINT8 (dops_data + 21);