Mercurial > libavformat.hg
diff rtp_h264.c @ 3976:64056a0c38ce libavformat
Change function prototype of RTPDynamicPayloadHandler.parse_packet() to
not use RTPDemuxContext, but rather take a pointer to the payload context
directly. This allows using payload handlers regardless over the transport
over which they were sent, and prepares for the introduction of a future
RDTDemuxContext. See discussion in "RDT/Realmedia patches #2" thread on ML.
author | rbultje |
---|---|
date | Sat, 04 Oct 2008 04:15:06 +0000 |
parents | 44561554cb7e |
children | 8adccfc01be3 |
line wrap: on
line diff
--- a/rtp_h264.c Sat Oct 04 04:11:12 2008 +0000 +++ b/rtp_h264.c Sat Oct 04 04:15:06 2008 +0000 @@ -159,15 +159,13 @@ } // return 0 on packet, no more left, 1 on packet, 1 on partial packet... -static int h264_handle_packet(RTPDemuxContext * s, +static int h264_handle_packet(PayloadContext *data, + AVStream *st, AVPacket * pkt, uint32_t * timestamp, const uint8_t * buf, int len, int flags) { -#ifdef DEBUG - PayloadContext *data = s->dynamic_protocol_context; -#endif uint8_t nal = buf[0]; uint8_t type = (nal & 0x1f); int result= 0;