From 5cd9e3426520ae4e12044711ab5f80ff9b8f73d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 17 Jun 2024 13:45:01 +0300 Subject: [PATCH] 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: --- net/rtp/src/av1/pay/imp.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/net/rtp/src/av1/pay/imp.rs b/net/rtp/src/av1/pay/imp.rs index a8a60f9ab..70badef31 100644 --- a/net/rtp/src/av1/pay/imp.rs +++ b/net/rtp/src/av1/pay/imp.rs @@ -131,9 +131,7 @@ impl RTPAv1Pay { ObuType::TileList | ObuType::Padding => { gst::log!(CAT, imp: self, "ignoring {:?} OBU", obu.obu_type); reader - .seek(SeekFrom::Current( - (obu.header_len + obu.leb_size + obu.size) as i64, - )) + .seek(SeekFrom::Current(obu.size as i64)) .map_err(err_flow!(self, buf_read))?; }