summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorJohn Brooks <john.brooks@bluecherry.net>2011-10-12 11:06:26 +0300
committerMartin Storsjö <martin@martin.st>2011-10-12 14:37:39 +0300
commit5d6ecf5345c0913e2b66427ea062e7989201a139 (patch)
treef462f0531f2077271d67d23305941f91d018d95d /libavformat
parentc682514a8f17a886f31c5aa0bba78c4f260fbfcf (diff)
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>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/rtpdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c
index 37122600a5..07f4cc35c5 100644
--- a/libavformat/rtpdec.c
+++ b/libavformat/rtpdec.c
@@ -115,7 +115,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;
}