1
0
Fork 0
mirror of https://github.com/alfg/mp4-rust.git synced 2025-04-15 08:14:15 +00:00
This commit is contained in:
damitha 2025-03-19 18:17:36 +11:00
parent 6232617277
commit d33ea6eb09
3 changed files with 9 additions and 1 deletions

View file

@ -62,6 +62,9 @@ fn copy<P: AsRef<Path>>(src_filename: &P, dst_filename: &P) -> Result<()> {
profile: track.audio_profile()?,
freq_index: track.sample_freq_index()?,
chan_conf: track.channel_config()?,
es_id: 1,
object_type_indication: 0x40,
stream_type: 5,
}),
MediaType::OPUS => MediaConfig::OpusConfig(OpusConfig {
bitrate: track.bitrate(),

View file

@ -394,7 +394,6 @@ pub struct DecoderConfigDescriptor {
pub buffer_size_db: u32,
pub max_bitrate: u32,
pub avg_bitrate: u32,
pub dec_specific: DecoderSpecificDescriptor,
}

View file

@ -616,6 +616,9 @@ pub struct AacConfig {
pub profile: AudioObjectType,
pub freq_index: SampleFreqIndex,
pub chan_conf: ChannelConfig,
pub es_id: u16,
pub object_type_indication: u8,
pub stream_type: u8,
}
impl Default for AacConfig {
@ -625,6 +628,9 @@ impl Default for AacConfig {
profile: AudioObjectType::AacLowComplexity,
freq_index: SampleFreqIndex::Freq48000,
chan_conf: ChannelConfig::Stereo,
es_id: 1,
object_type_indication: 0x40,
stream_type: 5,
}
}
}