From 918b41163671ecf8824a1ddf018b56e8ac73cb77 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 27 Dec 2012 03:21:43 +0100 Subject: [PATCH] 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 Signed-off-by: Michael Niedermayer --- libavformat/rtpdec.c | 4 ++++ 1 file changed, 4 insertions(+) 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;