• Martin Storsjö's avatar
    rtpdec_vp8: Don't trim too much data from broken frames · 76c40fbe
    Martin Storsjö authored
    Previously, for broken frames, we only returned the first partition
    of the frame (we would append all the received packets to the packet
    buffer, then set pkt->size to the size of the first partition, since
    the rest of the frame could have lost data inbetween) - now instead
    return the full buffered data we have, but don't append anything more
    to the buffer after the lost packet discontinuity. Decoding the
    truncated packet should hopefully get better quality than trimming out
    everything after the first partition.
    Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
    76c40fbe
rtpdec_vp8.c 9.84 KB