summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec_h263_rfc2190.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-12-10 14:38:32 +0200
committerMartin Storsjö <martin@martin.st>2012-12-21 14:14:40 +0200
commit90c784cc13f6bf21a8eb69f3b88b50c7a70f6c59 (patch)
treece93cf089348b7be81dd4af2f38d35efb6be9325 /libavformat/rtpdec_h263_rfc2190.c
parent0a0e340f5b8d9135540befcfa72dcf06e1a05cee (diff)
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_h263_rfc2190.c')
-rw-r--r--libavformat/rtpdec_h263_rfc2190.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libavformat/rtpdec_h263_rfc2190.c b/libavformat/rtpdec_h263_rfc2190.c
index 4957b337c7..4792a9fdc5 100644
--- a/libavformat/rtpdec_h263_rfc2190.c
+++ b/libavformat/rtpdec_h263_rfc2190.c
@@ -57,7 +57,8 @@ static void h263_free_context(PayloadContext *data)
static int h263_handle_packet(AVFormatContext *ctx, PayloadContext *data,
AVStream *st, AVPacket *pkt, uint32_t *timestamp,
- const uint8_t *buf, int len, int flags)
+ const uint8_t *buf, int len, uint16_t seq,
+ int flags)
{
/* Corresponding to header fields in the RFC */
int f, p, i, sbit, ebit, src, r;
@@ -65,7 +66,7 @@ static int h263_handle_packet(AVFormatContext *ctx, PayloadContext *data,
if (data->newformat)
return ff_h263_handle_packet(ctx, data, st, pkt, timestamp, buf, len,
- flags);
+ seq, flags);
if (data->buf && data->timestamp != *timestamp) {
/* Dropping old buffered, unfinished data */
@@ -122,7 +123,7 @@ static int h263_handle_packet(AVFormatContext *ctx, PayloadContext *data,
"signalled with a static payload type.\n");
data->newformat = 1;
return ff_h263_handle_packet(ctx, data, st, pkt, timestamp, buf,
- len, flags);
+ len, seq, flags);
}
}