[FFmpeg-cvslog] rtpdec: support CSRC
Michael Niedermayer
git at videolan.org
Tue Jan 15 16:28:20 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Dec 27 03:21:43 2012 +0100| [918b41163671ecf8824a1ddf018b56e8ac73cb77] | committer: Michael Niedermayer
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 at email.it>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=918b41163671ecf8824a1ddf018b56e8ac73cb77
---
libavformat/rtpdec.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c
index fb1e5b9..732ca26 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;
More information about the ffmpeg-cvslog
mailing list