rtp: av1pay: Correctly skip over ignored OBUs

The reader is already after the header at this point so only the OBU
content has to be skipped.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1624>
This commit is contained in:
Sebastian Dröge 2024-06-17 13:45:01 +03:00
parent bbe38b9599
commit 5cd9e34265

View file

@ -131,9 +131,7 @@ impl RTPAv1Pay {
ObuType::TileList | ObuType::Padding => { ObuType::TileList | ObuType::Padding => {
gst::log!(CAT, imp: self, "ignoring {:?} OBU", obu.obu_type); gst::log!(CAT, imp: self, "ignoring {:?} OBU", obu.obu_type);
reader reader
.seek(SeekFrom::Current( .seek(SeekFrom::Current(obu.size as i64))
(obu.header_len + obu.leb_size + obu.size) as i64,
))
.map_err(err_flow!(self, buf_read))?; .map_err(err_flow!(self, buf_read))?;
} }