[FFmpeg-cvslog] rtpdec: Fix the minimum packet length for RTCP SR packets
John Brooks
git at videolan.org
Thu Oct 13 06:01:45 CEST 2011
ffmpeg | branch: master | John Brooks <john.brooks at bluecherry.net> | Wed Oct 12 11:06:26 2011 +0300| [5d6ecf5345c0913e2b66427ea062e7989201a139] | committer: Martin Storsjö
rtpdec: Fix the minimum packet length for RTCP SR packets
We actually read 20 bytes of these packets.
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5d6ecf5345c0913e2b66427ea062e7989201a139
---
libavformat/rtpdec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c
index 3712260..07f4cc3 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;
}
More information about the ffmpeg-cvslog
mailing list