[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec utils.c,1.175,1.176

Michael Niedermayer CVS michael
Mon Mar 6 15:13:03 CET 2006


Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv19359/libavcodec

Modified Files:
	utils.c 
Log Message:
generic crc calculation code


Index: utils.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/utils.c,v
retrieving revision 1.175
retrieving revision 1.176
diff -u -d -r1.175 -r1.176
--- utils.c	3 Mar 2006 20:36:08 -0000	1.175
+++ utils.c	6 Mar 2006 14:13:01 -0000	1.176
@@ -29,6 +29,7 @@
 #include "mpegvideo.h"
 #include "integer.h"
 #include "opt.h"
+#include "crc.h"
 #include <stdarg.h>
 #include <limits.h>
 #include <float.h>
@@ -1218,6 +1219,11 @@
   return LIBAVCODEC_BUILD;
 }
 
+static void init_crcs(void){
+    av_crc04C11DB7= av_mallocz_static(sizeof(AVCRC) * 257);
+    av_crc_init(av_crc04C11DB7, 0, 32, 0x04c11db7, sizeof(AVCRC)*257);
+}
+
 /* must be called before any other functions */
 void avcodec_init(void)
 {
@@ -1228,6 +1234,7 @@
     inited = 1;
 
     dsputil_static_init();
+    init_crcs();
 }
 
 /**





More information about the ffmpeg-cvslog mailing list