Bail on multiple moof atoms

This commit is contained in:
Wanjohi
2024-01-01 15:16:24 +03:00
parent 01b06f6039
commit 924ec42775

View File

@@ -428,7 +428,8 @@ impl GST {
// Save the track ID for the next iteration, which must be a mdat. // Save the track ID for the next iteration, which must be a mdat.
if current.clone().is_none(){ if current.clone().is_none(){
log::info!("multiple moof atoms") log::error!("multiple moof atoms");
return Err(gst::FlowError::Error);
} }
current.replace(fragment.track); current.replace(fragment.track);