comparison rtp_h264.c @ 2941:6da0564c9d02 libavformat

Add a flags field to the RTPDynamicPayloadPacketHandlerProc (PKT_FLAG_*). This can be used later by RDT to get the flags from the RTP packet and use that for the RealMedia packet (such as whether this RTP packet represents a keyframe or not). For discussion, see "[PATCH] Realmedia / RTSP (RDT)".
author rbultje
date Fri, 18 Jan 2008 20:48:32 +0000
parents 6a7b82888880
children 6f61c3b36632
comparison
equal deleted inserted replaced
2940:60b898a8e4d0 2941:6da0564c9d02
161 // return 0 on packet, no more left, 1 on packet, 1 on partial packet... 161 // return 0 on packet, no more left, 1 on packet, 1 on partial packet...
162 static int h264_handle_packet(RTPDemuxContext * s, 162 static int h264_handle_packet(RTPDemuxContext * s,
163 AVPacket * pkt, 163 AVPacket * pkt,
164 uint32_t * timestamp, 164 uint32_t * timestamp,
165 const uint8_t * buf, 165 const uint8_t * buf,
166 int len) 166 int len, int flags)
167 { 167 {
168 #ifdef DEBUG 168 #ifdef DEBUG
169 h264_rtp_extra_data *data = s->dynamic_protocol_context; 169 h264_rtp_extra_data *data = s->dynamic_protocol_context;
170 #endif 170 #endif
171 uint8_t nal = buf[0]; 171 uint8_t nal = buf[0];