diff --git a/mux/fmp4/src/fmp4mux/boxes.rs b/mux/fmp4/src/fmp4mux/boxes.rs index 720c823e..9d84158e 100644 --- a/mux/fmp4/src/fmp4mux/boxes.rs +++ b/mux/fmp4/src/fmp4mux/boxes.rs @@ -1502,9 +1502,9 @@ fn write_dops(v: &mut Vec, caps: &gst::Caps) -> Result<(), Error> { // Version number v.push(0); v.push(channels); - v.extend(pre_skip.to_le_bytes()); - v.extend(rate.to_le_bytes()); - v.extend(output_gain.to_le_bytes()); + v.extend(pre_skip.to_be_bytes()); + v.extend(rate.to_be_bytes()); + v.extend(output_gain.to_be_bytes()); v.push(channel_mapping_family); if channel_mapping_family > 0 { v.push(stream_count); diff --git a/mux/mp4/src/mp4mux/boxes.rs b/mux/mp4/src/mp4mux/boxes.rs index 9dd37aea..c1fa7791 100644 --- a/mux/mp4/src/mp4mux/boxes.rs +++ b/mux/mp4/src/mp4mux/boxes.rs @@ -1319,9 +1319,9 @@ fn write_dops(v: &mut Vec, caps: &gst::Caps) -> Result<(), Error> { // Version number v.push(0); v.push(channels); - v.extend(pre_skip.to_le_bytes()); - v.extend(rate.to_le_bytes()); - v.extend(output_gain.to_le_bytes()); + v.extend(pre_skip.to_be_bytes()); + v.extend(rate.to_be_bytes()); + v.extend(output_gain.to_be_bytes()); v.push(channel_mapping_family); if channel_mapping_family > 0 { v.push(stream_count);