This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
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>
tags/n0.9
John Brooks
Martin Storsjö
14 years ago
parent
c682514a8f
commit
5d6ecf5345
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libavformat/rtpdec.c
+ 1
- 1
libavformat/rtpdec.c
View File
@@ -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;
}
Write
Preview
Loading…
Cancel
Save