aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Brooks <john.brooks@bluecherry.net>2011-10-12 11:06:26 +0300
committerMichael Niedermayer <michaelni@gmx.at>2011-11-04 01:08:54 +0100
commitd398d042c1b141277b81a24ba800db2832c5fe9c (patch)
tree34f20d18400723ca937d6d1e377e888361ad172d
parent5ae87280e219e843c71201c580780e8e30083559 (diff)
downloadffmpeg-d398d042c1b141277b81a24ba800db2832c5fe9c.tar.gz
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 5d6ecf5345c0913e2b66427ea062e7989201a139) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/rtpdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c
index 9fc30d7b66..bc0aea6100 100644
--- a/libavformat/rtpdec.c
+++ b/libavformat/rtpdec.c
@@ -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;
}