1
0
Fork 0
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:
Kasper 2022-01-08 15:09:45 +01:00
parent 49f9ed0432
commit 2a29b323f2

View file

@ -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