[FFmpeg-cvslog] r25896 - trunk/libavformat/rtpdec.c

mstorsjo subversion
Mon Dec 6 13:43:39 CET 2010


Author: mstorsjo
Date: Mon Dec  6 13:43:38 2010
New Revision: 25896

Log:
rtpdec: Skip padding bytes at the end of packets

Modified:
   trunk/libavformat/rtpdec.c

Modified: trunk/libavformat/rtpdec.c
==============================================================================
--- trunk/libavformat/rtpdec.c	Mon Dec  6 01:14:15 2010	(r25895)
+++ trunk/libavformat/rtpdec.c	Mon Dec  6 13:43:38 2010	(r25896)
@@ -475,6 +475,12 @@ static int rtp_parse_packet_internal(RTP
         return -1;
     }
 
+    if (buf[0] & 0x20) {
+        int padding = buf[len - 1];
+        if (len >= 12 + padding)
+            len -= padding;
+    }
+
     s->seq = seq;
     len -= 12;
     buf += 12;



More information about the ffmpeg-cvslog mailing list