diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2003-09-10 22:37:33 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2003-09-10 22:37:33 +0000 |
commit | 490579042adbd90921a175c3f738e662b93fe628 (patch) | |
tree | 34a8ede2ca4c5cc920389522c827ebece54e9615 /libavformat/crc.c | |
parent | 8c653280bd2b8606e276045c8b4f2deec3bf8772 (diff) | |
download | ffmpeg-490579042adbd90921a175c3f738e662b93fe628.tar.gz |
64 bit pts for writing - more const usage
Originally committed as revision 2255 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/crc.c')
-rw-r--r-- | libavformat/crc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/crc.c b/libavformat/crc.c index d130917d70..c9f8360a51 100644 --- a/libavformat/crc.c +++ b/libavformat/crc.c @@ -33,7 +33,7 @@ #define DO8(buf) DO4(buf); DO4(buf); #define DO16(buf) DO8(buf); DO8(buf); -static uint32_t adler32(uint32_t adler, uint8_t *buf, unsigned int len) +static uint32_t adler32(uint32_t adler, const uint8_t *buf, unsigned int len) { unsigned long s1 = adler & 0xffff; unsigned long s2 = (adler >> 16) & 0xffff; @@ -73,7 +73,7 @@ static int crc_write_header(struct AVFormatContext *s) static int crc_write_packet(struct AVFormatContext *s, int stream_index, - unsigned char *buf, int size, int force_pts) + const uint8_t *buf, int size, int64_t pts) { CRCState *crc = s->priv_data; crc->crcval = adler32(crc->crcval, buf, size); |