Skip to content

Commit

Permalink
fixing lint
Browse files Browse the repository at this point in the history
  • Loading branch information
giangndm authored and algesten committed Nov 20, 2023
1 parent 25502ac commit 33941ca
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/rtp/rtcp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,13 +437,10 @@ impl<'a> TryFrom<&'a [u8]> for Rtcp {
}
PayloadType::FullIntraRequest => Rtcp::Fir(buf.try_into()?),
PayloadType::ApplicationLayer => {
match header.rtcp_type() {
RtcpType::PayloadSpecificFeedback => {
if let Ok(remb) = Remb::try_from(buf) {
return Ok(Rtcp::Remb(remb));
}
if header.rtcp_type() == RtcpType::PayloadSpecificFeedback {
if let Ok(remb) = Remb::try_from(buf) {
return Ok(Rtcp::Remb(remb));
}
_ => {}
}
return Err("Ignore PayloadType: ApplicationLayer");
}
Expand Down

0 comments on commit 33941ca

Please sign in to comment.