From 90c784cc13f6bf21a8eb69f3b88b50c7a70f6c59 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Mon, 10 Dec 2012 14:38:32 +0200 Subject: rtpdec: Pass the sequence number to depacketizers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows depacketizers to figure out if packets have been lost. Signed-off-by: Martin Storsjö --- libavformat/rtpdec.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavformat/rtpdec.h') diff --git a/libavformat/rtpdec.h b/libavformat/rtpdec.h index 668a1f7c98..98e266a687 100644 --- a/libavformat/rtpdec.h +++ b/libavformat/rtpdec.h @@ -101,6 +101,7 @@ typedef struct RTPStatistics { * updated by the function if returning older, buffered data * @param buf pointer to raw RTP packet data * @param len length of buf + * @param seq RTP sequence number of the packet * @param flags flags from the RTP packet header (RTP_FLAG_*) */ typedef int (*DynamicPayloadPacketHandlerProc)(AVFormatContext *ctx, @@ -108,7 +109,7 @@ typedef int (*DynamicPayloadPacketHandlerProc)(AVFormatContext *ctx, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t * buf, - int len, int flags); + int len, uint16_t seq, int flags); struct RTPDynamicProtocolHandler { const char enc_name[50]; -- cgit v1.2.3