summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec_vp9.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-03-11 20:28:36 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-03-11 20:28:45 +0100
commit693b8f11d7fd7eb44177eed9cbbddf63f3fc6bdb (patch)
tree7600ae4cd393a214ef7db2b9516a04405003600f /libavformat/rtpdec_vp9.c
parent2d37c57f3e9d58916b1247e0f335065415ce1364 (diff)
parentbacc92b59bfa5d6a1f631e63e46fc1d2fb934e51 (diff)
Merge commit 'bacc92b59bfa5d6a1f631e63e46fc1d2fb934e51'
* commit 'bacc92b59bfa5d6a1f631e63e46fc1d2fb934e51': rtpdec_vp9: Drop extra sanity check for size of input packet Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rtpdec_vp9.c')
-rw-r--r--libavformat/rtpdec_vp9.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libavformat/rtpdec_vp9.c b/libavformat/rtpdec_vp9.c
index 0838d4b09e..e50bedea32 100644
--- a/libavformat/rtpdec_vp9.c
+++ b/libavformat/rtpdec_vp9.c
@@ -113,11 +113,6 @@ static int vp9_handle_packet(AVFormatContext *ctx, PayloadContext *rtp_vp9_ctx,
* PictureID: 8 or 16 bits including the M bit.
*/
if (has_pic_id) {
- if (len < 1) {
- av_log(ctx, AV_LOG_ERROR, "Too short RTP/VP9 packet\n");
- return AVERROR_INVALIDDATA;
- }
-
/* check for 1-byte or 2-byte picture index */
if (buf[0] & 0x80) {
if (len < 2) {