generic crc calculation code
Originally committed as revision 5115 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -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 @@ unsigned avcodec_build( void )
|
||||
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 @@ void avcodec_init(void)
|
||||
inited = 1;
|
||||
|
||||
dsputil_static_init();
|
||||
init_crcs();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user