mirror of
https://github.com/alfg/mp4-rust.git
synced 2024-06-02 13:39:54 +00:00
Fix non-exhaustive pattern
This commit is contained in:
parent
49f9ed0432
commit
2a29b323f2
|
@ -172,7 +172,7 @@ pub fn construct_adts_header(track: &mp4::Mp4Track, sample: &mp4::Mp4Sample) ->
|
|||
Ok(mp4::AudioObjectType::AacLowComplexity) => 2,
|
||||
Ok(mp4::AudioObjectType::AacScalableSampleRate) => 3,
|
||||
Ok(mp4::AudioObjectType::AacLongTermPrediction) => 4,
|
||||
Err(_) => return None,
|
||||
_ => return None,
|
||||
};
|
||||
let adts_object_type = object_type - 1;
|
||||
byte2 = (byte2 << 2) | adts_object_type; // EE
|
||||
|
|
Loading…
Reference in a new issue