diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2009-02-26 14:24:50 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2009-02-26 14:24:50 +0000 |
commit | 144ae29ddef24d31fd0f113a33dd33f4b67046c4 (patch) | |
tree | 356c7af751f1fd29f2c8be9e7e90cc127a04804e | |
parent | a68d44ed6f49897bfbba69688437e4aced727c10 (diff) | |
download | ffmpeg-144ae29ddef24d31fd0f113a33dd33f4b67046c4.tar.gz |
Implement marker bit, which is used for several RTP payloads currently
under review. See "[FFmpeg-devel] RTP mark bit not passed to parse_packet"
thread on mailinglist.
Originally committed as revision 17616 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/rtpdec.c | 2 | ||||
-rw-r--r-- | libavformat/rtpdec.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c index 5b7d63db12..3e833a1822 100644 --- a/libavformat/rtpdec.c +++ b/libavformat/rtpdec.c @@ -437,6 +437,8 @@ int rtp_parse_packet(RTPDemuxContext *s, AVPacket *pkt, return -1; } payload_type = buf[1] & 0x7f; + if (buf[1] & 0x80) + flags |= RTP_FLAG_MARKER; seq = AV_RB16(buf + 2); timestamp = AV_RB32(buf + 4); ssrc = AV_RB32(buf + 8); diff --git a/libavformat/rtpdec.h b/libavformat/rtpdec.h index f4bc6fb9b2..c5350e746a 100644 --- a/libavformat/rtpdec.h +++ b/libavformat/rtpdec.h @@ -93,6 +93,7 @@ typedef struct { } RTPStatistics; #define RTP_FLAG_KEY 0x1 ///< RTP packet contains a keyframe +#define RTP_FLAG_MARKER 0x2 ///< RTP marker bit was set for this packet /** * Packet parsing for "private" payloads in the RTP specs. * |