Commit 2ee58af5 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '1851e1d0'

* commit '1851e1d0':
  rtpproto: Check the size before reading buf[1]
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 4f07fcd3 1851e1d0
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment