Browse Source

Merge commit '1851e1d05d06f6ef3436c667e4354da0f407b226'

* commit '1851e1d05d06f6ef3436c667e4354da0f407b226':
  rtpproto: Check the size before reading buf[1]

Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.1
Michael Niedermayer 12 years ago
parent
commit
2ee58af53e
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavformat/rtpproto.c

+ 3
- 0
libavformat/rtpproto.c View File

@@ -369,6 +369,9 @@ static int rtp_write(URLContext *h, const uint8_t *buf, int size)
int ret;
URLContext *hd;

if (size < 2)
return AVERROR(EINVAL);

if (RTP_PT_IS_RTCP(buf[1])) {
/* RTCP payload type */
hd = s->rtcp_hd;


Loading…
Cancel
Save