# HG changeset patch # User rbultje # Date 1235658290 0 # Node ID 85c7d517d556ae44932a014ef683b2f037d69ed8 # Parent df35708c640a68f720a8505b66805fdda4653ba5 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. diff -r df35708c640a -r 85c7d517d556 rtpdec.c --- a/rtpdec.c Thu Feb 26 14:23:05 2009 +0000 +++ b/rtpdec.c Thu Feb 26 14:24:50 2009 +0000 @@ -437,6 +437,8 @@ 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 -r df35708c640a -r 85c7d517d556 rtpdec.h --- a/rtpdec.h Thu Feb 26 14:23:05 2009 +0000 +++ b/rtpdec.h Thu Feb 26 14:24:50 2009 +0000 @@ -93,6 +93,7 @@ } 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. *