summaryrefslogtreecommitdiff
path: root/libavformat/crc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/crc.c')
-rw-r--r--libavformat/crc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavformat/crc.c b/libavformat/crc.c
index 1b8d6a4df3..ee915debc5 100644
--- a/libavformat/crc.c
+++ b/libavformat/crc.c
@@ -71,12 +71,10 @@ static int crc_write_header(struct AVFormatContext *s)
return 0;
}
-static int crc_write_packet(struct AVFormatContext *s,
- int stream_index,
- const uint8_t *buf, int size, int64_t pts)
+static int crc_write_packet(struct AVFormatContext *s, AVPacket *pkt)
{
CRCState *crc = s->priv_data;
- crc->crcval = update_adler32(crc->crcval, buf, size);
+ crc->crcval = update_adler32(crc->crcval, pkt->data, pkt->size);
return 0;
}