rtpvp8depay: Check available bytes before copy
authorStian Selnes <stian@pexip.com>
Tue, 21 Jul 2015 11:31:05 +0000 (13:31 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 21 Jul 2015 12:14:01 +0000 (13:14 +0100)
commit45e05706e28439961ac81ce0c8e6403e8e8f03f5
tree8981cf6a2ddde8a627dabf0d42140cd8becc0d54
parent3740e69957a6cac7b7e9dae992e04335f966213a
rtpvp8depay: Check available bytes before copy

Need to check that the number of bytes we want to copy from the adapter
actually is available and handle the error case gracefully. This error
may happen if malformed packets are received and we don't have a
complete frame.

https://bugzilla.gnome.org/show_bug.cgi?id=752663
gst/rtp/gstrtpvp8depay.c