[FFmpeg-cvslog] r17616 - in trunk/libavformat: rtpdec.c rtpdec.h

rbultje subversion
Thu Feb 26 15:24:50 CET 2009


Author: rbultje
Date: Thu Feb 26 15:24:50 2009
New Revision: 17616

Log:
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.

Modified:
   trunk/libavformat/rtpdec.c
   trunk/libavformat/rtpdec.h

Modified: trunk/libavformat/rtpdec.c
==============================================================================
--- trunk/libavformat/rtpdec.c	Thu Feb 26 15:23:05 2009	(r17615)
+++ trunk/libavformat/rtpdec.c	Thu Feb 26 15:24:50 2009	(r17616)
@@ -437,6 +437,8 @@ int rtp_parse_packet(RTPDemuxContext *s,
         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);

Modified: trunk/libavformat/rtpdec.h
==============================================================================
--- trunk/libavformat/rtpdec.h	Thu Feb 26 15:23:05 2009	(r17615)
+++ trunk/libavformat/rtpdec.h	Thu Feb 26 15:24:50 2009	(r17616)
@@ -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.
  *




More information about the ffmpeg-cvslog mailing list