• Martin Storsjö's avatar
    rtpdec: Add a terminating null byte at the end of the SDES/CNAME · ed790932
    Martin Storsjö authored
    This is required by RFC 3550 (section 6.5):
    
       The list of items in each chunk MUST be terminated by one or more
       null octets, the first of which is interpreted as an item type of
       zero to denote the end of the list.
    
    This was implicitly added as padding before, unless the host name
    length matched up so no padding was added.
    
    This makes wireshark parse the packets properly if other RTCP items
    are appended to the same packet.
    Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
    ed790932
rtpdec.c 29.3 KB