diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-08-09 16:46:48 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-08-09 16:46:48 +0000 |
commit | 5c2198b1841fa451ace272128966a3facc8932ea (patch) | |
tree | ea2684936159c470711ad8c0fab49b64b3ab88df /libavformat | |
parent | 3af56110d4e1c6553cb98ab2b9246606f6ab92e8 (diff) | |
download | ffmpeg-5c2198b1841fa451ace272128966a3facc8932ea.tar.gz |
move crc wrapper to slightly better spot
Originally committed as revision 10022 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/nut.c | 4 | ||||
-rw-r--r-- | libavformat/nut.h | 7 |
2 files changed, 5 insertions, 6 deletions
diff --git a/libavformat/nut.c b/libavformat/nut.c index 5f81957b12..4c41db35dc 100644 --- a/libavformat/nut.c +++ b/libavformat/nut.c @@ -21,6 +21,10 @@ #include "nut.h" +unsigned long av_crc04C11DB7_update(unsigned long checksum, const uint8_t *buf, unsigned int len){ + return av_crc(av_crc04C11DB7, checksum, buf, len); +} + void ff_nut_reset_ts(NUTContext *nut, AVRational time_base, int64_t val){ int i; for(i=0; i<nut->avf->nb_streams; i++){ diff --git a/libavformat/nut.h b/libavformat/nut.h index 9dadbffe52..a96d111d50 100644 --- a/libavformat/nut.h +++ b/libavformat/nut.h @@ -92,12 +92,7 @@ typedef struct { struct AVTreeNode *syncpoints; } NUTContext; - -//FIXME move to a common spot, like crc.c/h -static unsigned long av_crc04C11DB7_update(unsigned long checksum, const uint8_t *buf, unsigned int len){ - return av_crc(av_crc04C11DB7, checksum, buf, len); -} - +unsigned long av_crc04C11DB7_update(unsigned long checksum, const uint8_t *buf, unsigned int len); void ff_nut_reset_ts(NUTContext *nut, AVRational time_base, int64_t val); #endif /* AVFORMAT_NUT_H */ |