diff aviobuf.c @ 2683:153d6efc05b8 libavformat

rename av_crc04C11DB7_update to ff_crc04C11DB7_update and move it to aviobuf.c so it can be reused by other (de)muxers
author bcoudurier
date Tue, 30 Oct 2007 00:01:25 +0000
parents fc7f8ee4700b
children 49c540731133
line wrap: on
line diff
--- a/aviobuf.c	Mon Oct 29 09:38:37 2007 +0000
+++ b/aviobuf.c	Tue Oct 30 00:01:25 2007 +0000
@@ -20,6 +20,7 @@
  */
 #include "avformat.h"
 #include "avio.h"
+#include "crc.h"
 #include <stdarg.h>
 
 #define IO_BUFFER_SIZE 32768
@@ -286,6 +287,10 @@
     }
 }
 
+unsigned long ff_crc04C11DB7_update(unsigned long checksum, const uint8_t *buf, unsigned int len){
+    return av_crc(av_crc04C11DB7, checksum, buf, len);
+}
+
 unsigned long get_checksum(ByteIOContext *s){
     s->checksum= s->update_checksum(s->checksum, s->checksum_ptr, s->buf_ptr - s->checksum_ptr);
     s->update_checksum= NULL;