aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-12-27 03:21:43 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-01-15 16:20:31 +0100
commit918b41163671ecf8824a1ddf018b56e8ac73cb77 (patch)
tree7e6b4a57b0351e93917e26127862bf4d2eaf87f1
parentb7ede94bbd29615799f550789cddba6a41527d28 (diff)
downloadffmpeg-918b41163671ecf8824a1ddf018b56e8ac73cb77.tar.gz
rtpdec: support CSRC
Untested, due to lack of rtp stream with CSRCs, but the code as is does not work with multiple CSRCs Reviewed-by: Luca Abeni <lucabe72@email.it> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/rtpdec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c
index fb1e5b9ea7..732ca26a58 100644
--- a/libavformat/rtpdec.c
+++ b/libavformat/rtpdec.c
@@ -629,6 +629,10 @@ static int rtp_parse_packet_internal(RTPDemuxContext *s, AVPacket *pkt,
len -= padding;
}
+ h = buf[0] & 0x0F;
+ buf += 4*h;
+ len -= 4*h;
+
s->seq = seq;
len -= 12;
buf += 12;