OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90f1f3b
)
rtpdec: Skip padding bytes at the end of packets
author
Martin Storsjö
<martin@martin.st>
Mon, 6 Dec 2010 12:43:38 +0000
(12:43 +0000)
committer
Martin Storsjö
<martin@martin.st>
Mon, 6 Dec 2010 12:43:38 +0000
(12:43 +0000)
Originally committed as revision 25896 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/rtpdec.c
patch
|
blob
|
history
diff --git
a/libavformat/rtpdec.c
b/libavformat/rtpdec.c
index
c9cf855
..
638fbdd
100644
(file)
--- a/
libavformat/rtpdec.c
+++ b/
libavformat/rtpdec.c
@@
-475,6
+475,12
@@
static int rtp_parse_packet_internal(RTPDemuxContext *s, AVPacket *pkt,
return -1;
}
+ if (buf[0] & 0x20) {
+ int padding = buf[len - 1];
+ if (len >= 12 + padding)
+ len -= padding;
+ }
+
s->seq = seq;
len -= 12;
buf += 12;