forge
Explore
Log in

Don't you dare go Hollow

Merge branch 'simplify/w0u-mp4' into simplify/w0

Browse files at this commit

1dbe784ca084ff9761987d3e290804e437bddb38Ahmet Kaan GümüşParent: e19c602156237a
crates/ec-mp4/src/mux.rsmodified+2 -0
@@ -1419,6 +1419,7 @@ fn sample_entry(
1419 }1419 }
1420 1420
1421 let (name, audio) = match info.params.audio() {1421 let (name, audio) = match info.params.audio() {
1422+ Some(audio) if qt_pcm(codec).is_some() && audio.layout.channel_count() > 2 => (b"lpcm", audio),
1422 Some(audio) => (audio_entry(codec)?, audio),1423 Some(audio) => (audio_entry(codec)?, audio),
1423 None => {1424 None => {
1424 return Err(Error::unsupported(1425 return Err(Error::unsupported(
@@ -1468,6 +1469,7 @@ fn sample_entry(
1468 out.extend_from_slice(&flags.to_be_bytes());1469 out.extend_from_slice(&flags.to_be_bytes());
1469 out.extend_from_slice(&(bytes * channels).to_be_bytes());1470 out.extend_from_slice(&(bytes * channels).to_be_bytes());
1470 out.extend_from_slice(&1u32.to_be_bytes());1471 out.extend_from_slice(&1u32.to_be_bytes());
1472+ out.extend_from_slice(&24u32.to_be_bytes());
1471 }1473 }
1472 Some((bytes, little)) => {1474 Some((bytes, little)) => {
1473 out.extend_from_slice(&1u32.to_be_bytes()); // samples per packet1475 out.extend_from_slice(&1u32.to_be_bytes()); // samples per packet