summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec_amr.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_amr.c
parent0a0e340f5b8d9135540befcfa72dcf06e1a05cee (diff)
downloadffmpeg-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_amr.c')
-rw-r--r--libavformat/rtpdec_amr.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/libavformat/rtpdec_amr.c b/libavformat/rtpdec_amr.c
index 1e60287465..fd18ff22d4 100644
--- a/libavformat/rtpdec_amr.c
+++ b/libavformat/rtpdec_amr.c
@@ -51,13 +51,10 @@ static void amr_free_context(PayloadContext *data)
av_free(data);
}
-static int amr_handle_packet(AVFormatContext *ctx,
- PayloadContext *data,
- AVStream *st,
- AVPacket * pkt,
- uint32_t * timestamp,
- const uint8_t * buf,
- int len, int flags)
+static int amr_handle_packet(AVFormatContext *ctx, PayloadContext *data,
+ AVStream *st, AVPacket *pkt, uint32_t *timestamp,
+ const uint8_t *buf, int len, uint16_t seq,
+ int flags)
{
const uint8_t *frame_sizes = NULL;
int frames;