Commit febfbb3c authored by rbultje's avatar rbultje

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.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17616 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e3a4ed33
...@@ -437,6 +437,8 @@ int rtp_parse_packet(RTPDemuxContext *s, AVPacket *pkt, ...@@ -437,6 +437,8 @@ int rtp_parse_packet(RTPDemuxContext *s, AVPacket *pkt,
return -1; return -1;
} }
payload_type = buf[1] & 0x7f; payload_type = buf[1] & 0x7f;
if (buf[1] & 0x80)
flags |= RTP_FLAG_MARKER;
seq = AV_RB16(buf + 2); seq = AV_RB16(buf + 2);
timestamp = AV_RB32(buf + 4); timestamp = AV_RB32(buf + 4);
ssrc = AV_RB32(buf + 8); ssrc = AV_RB32(buf + 8);
......
...@@ -93,6 +93,7 @@ typedef struct { ...@@ -93,6 +93,7 @@ typedef struct {
} RTPStatistics; } RTPStatistics;
#define RTP_FLAG_KEY 0x1 ///< RTP packet contains a keyframe #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. * Packet parsing for "private" payloads in the RTP specs.
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment