mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-19 13:27:00 +00:00
rtpdec: Fix the minimum packet length for RTCP SR packets
We actually read 20 bytes of these packets.
Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit 5d6ecf5345
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
5ae87280e2
commit
d398d042c1
@ -114,7 +114,7 @@ static int rtcp_parse_packet(RTPDemuxContext *s, const unsigned char *buf, int l
|
||||
while (len >= 2) {
|
||||
switch (buf[1]) {
|
||||
case RTCP_SR:
|
||||
if (len < 16) {
|
||||
if (len < 20) {
|
||||
av_log(NULL, AV_LOG_ERROR, "Invalid length for RTCP SR packet\n");
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user