mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
Merge commit '1851e1d05d06f6ef3436c667e4354da0f407b226'
* commit '1851e1d05d06f6ef3436c667e4354da0f407b226': rtpproto: Check the size before reading buf[1] Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
2ee58af53e
@ -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…
Reference in New Issue
Block a user