• Martin Storsjö's avatar
    rtpdec: Support sending RTCP feedback packets · 86d9181c
    Martin Storsjö authored
    This sends NACK for missed packets and PLI (picture loss indication)
    if a depacketizer indicates that it needs a new keyframe, according
    to RFC 4585.
    
    This is only enabled if the SDP indicated that feedback is supported
    (via the AVPF or SAVPF profile names).
    
    The feedback packets are throttled to a certain maximum interval
    (currently 250 ms) to make sure the feedback packets don't eat up
    too much bandwidth (which might be counterproductive). The RFC
    specifies a more elaborate feedback packet scheduling.
    
    The feedback packets are currently sent independently from normal
    RTCP RR packets, which is not totally spec compliant, but works
    fine in the environments I've tested it in. (RFC 5506 allows this,
    but requires a SDP attribute for enabling it.)
    Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
    86d9181c
rtsp.c 80.9 KB