Skip to content

Latest commit

 

History

History
32 lines (29 loc) · 1.84 KB

CHANGELOG.md

File metadata and controls

32 lines (29 loc) · 1.84 KB

ChangeLog

Unreleased

Added

  • The Seq type now implements Ord (in addition to the PartialOrd implementation that was already available).

0.5.0 - 2019-09-29

Fixed

  • Trailing padding-bytes, indicated by the padding flag in the RTP header, are now excluded from the data returned by the payload() method.
  • Since we now pay attention to padding data, RtpReader::new() will fail if the indicated padding length is nonsensical (less than one byte, or greater than the available space).

Changed

  • RtpHeaderError gains a new PaddingLengthInvalid variant
  • The Seq methods next() and precedes() now both take self by value, which clippy points out should be more efficient,

Added

  • csrc() method to expose any CSRC header values that might be present (rarely used RTP feature).
  • API docs are now provided for all public items

0.4.0 - 2019-09-25

Changed

  • RtpReader::extension() no longer returns the boolean flag indicating if an extension is present, and instead produces an Option which is Some when an extension header is present. The Option contains a (u16, &[u8]) tuple when an extension header is present, where the u16 value is the extension header id, and the byte-slice is the extension header payload.

Fixed

  • Should no longer panic if the RTP packet length is not sufficient to contain all 4 bytes of an extension header (where the extension header is flagged to be present) -- thanks to @ts252 for spotting.
  • Extension header lengths where incorrectly calculated in earlier releases, which would have resulted in invalid RTP payload data being produced for any packets that actually had an extension (the extension length header is a count of 32-bit values, not a count of 8-bit values as the previous implementation had assumed).