]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Implement marker bit, which is used for several RTP payloads currently
authorrbultje <rbultje@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Thu, 26 Feb 2009 14:24:50 +0000 (14:24 +0000)
committerrbultje <rbultje@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Thu, 26 Feb 2009 14:24:50 +0000 (14:24 +0000)
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

libavformat/rtpdec.c
libavformat/rtpdec.h

index 5b7d63db12559d2e948aeca42a230d07ae7ab59d..3e833a1822b47f8b7abef774b48a1623d4221a44 100644 (file)
@@ -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);
index f4bc6fb9b2836591d29fbe16668a581ee733e95c..c5350e746abe14c1ba064d4bcc31c82aa3c5183e 100644 (file)
@@ -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.
  *