diff options
author | Martin Storsjö <martin@martin.st> | 2012-12-10 14:38:32 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-12-21 14:14:40 +0200 |
commit | 90c784cc13f6bf21a8eb69f3b88b50c7a70f6c59 (patch) | |
tree | ce93cf089348b7be81dd4af2f38d35efb6be9325 /libavformat/rtpdec.c | |
parent | 0a0e340f5b8d9135540befcfa72dcf06e1a05cee (diff) | |
download | ffmpeg-90c784cc13f6bf21a8eb69f3b88b50c7a70f6c59.tar.gz |
rtpdec: Pass the sequence number to depacketizers
This allows depacketizers to figure out if packets have been lost.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtpdec.c')
-rw-r--r-- | libavformat/rtpdec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c index b83a79bdbb..10439305dd 100644 --- a/libavformat/rtpdec.c +++ b/libavformat/rtpdec.c @@ -539,7 +539,7 @@ static int rtp_parse_packet_internal(RTPDemuxContext *s, AVPacket *pkt, return 0; } else if (s->parse_packet) { rv = s->parse_packet(s->ic, s->dynamic_protocol_context, - s->st, pkt, ×tamp, buf, len, flags); + s->st, pkt, ×tamp, buf, len, seq, flags); } else { /* At this point, the RTP header has been stripped; * This is ASSUMING that there is only 1 CSRC, which isn't wise. */ @@ -682,7 +682,8 @@ static int rtp_parse_one_packet(RTPDemuxContext *s, AVPacket *pkt, * the packet is left with pts == AV_NOPTS_VALUE */ timestamp = RTP_NOTS_VALUE; rv = s->parse_packet(s->ic, s->dynamic_protocol_context, - s->st, pkt, ×tamp, NULL, 0, flags); + s->st, pkt, ×tamp, NULL, 0, 0, + flags); finalize_packet(s, pkt, timestamp); return rv; } else { |