• Martin Storsjö's avatar
    rtpdec_vp8: Don't return known-broken packets · c7d4de3d
    Martin Storsjö authored
    This is built on the assumption that the first partition of each
    VP8 packet is essential for decoding any later packet - if this
    partition is broken/missed, the arithmetic coder gets out of sync
    and decoding the bitstream in further packet ends up with total
    garbage. If packets of a frame are lost, make sure the first
    partition is intact (return only this part of the packet, nothing
    else), otherwise stop returning data until the next keyframe is
    received.
    
    Alternatively, one would simply not return any packets at all
    until the next keyframe, if packet loss is detected.
    Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
    c7d4de3d
rtpdec_vp8.c 8.77 KB