We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69bca18 commit af76dc2Copy full SHA for af76dc2
mp4parse/src/lib.rs
@@ -5011,9 +5011,17 @@ fn find_descriptor(
5011
DECODER_CONFIG_TAG => {
5012
read_dc_descriptor(descriptor, esds, strictness)?;
5013
}
5014
- DECODER_SPECIFIC_TAG => {
5015
- read_ds_descriptor(descriptor, esds, strictness)?;
5016
- }
+ DECODER_SPECIFIC_TAG => match read_ds_descriptor(descriptor, esds, strictness) {
+ Ok(()) => {}
+ Err(Error::InvalidData(Status::BitReaderError))
5017
+ if strictness != ParseStrictness::Strict =>
5018
+ {
5019
+ debug!("Unexpected EOS parsing ds descriptor in non-strict mode");
5020
+ }
5021
+ Err(e) => {
5022
+ return Err(e);
5023
5024
+ },
5025
_ => {
5026
debug!("Unsupported descriptor, tag {}", tag);
5027
0 commit comments