[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec utils.c,1.175,1.176
Michael Niedermayer CVS
michael
Mon Mar 6 15:13:03 CET 2006
- Previous message: [Ffmpeg-cvslog] CVS: ffmpeg/libavutil crc.c, NONE, 1.1 crc.h, NONE, 1.1 Makefile, 1.17, 1.18
- Next message: [Ffmpeg-cvslog] CVS: ffmpeg/libavformat mpegts.c, 1.37, 1.38 mpegtsenc.c, 1.13, 1.14
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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();
}
/**
- Previous message: [Ffmpeg-cvslog] CVS: ffmpeg/libavutil crc.c, NONE, 1.1 crc.h, NONE, 1.1 Makefile, 1.17, 1.18
- Next message: [Ffmpeg-cvslog] CVS: ffmpeg/libavformat mpegts.c, 1.37, 1.38 mpegtsenc.c, 1.13, 1.14
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the ffmpeg-cvslog
mailing list