[FFmpeg-devel] [PATCH] rtpdec: support CSRC
Michael Niedermayer
michaelni at gmx.at
Thu Dec 27 03:41:03 CET 2012
Untested, due to lack of rtp stream with CSRCs, but the code as
is does not work with multiple CSRCs
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
libavformat/rtpdec.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c
index 8a80e03..73bb138 100644
--- a/libavformat/rtpdec.c
+++ b/libavformat/rtpdec.c
@@ -503,6 +503,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;
--
1.7.9.5
More information about the ffmpeg-devel
mailing list