Skip to content
Snippets Groups Projects
Commit 2ee58af5 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

Merge commit '1851e1d0'


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

Merged-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parents 4f07fcd3 1851e1d0
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment