Browse Source

move crc wrapper to slightly better spot

Originally committed as revision 10022 to svn://svn.ffmpeg.org/ffmpeg/trunk
Michael Niedermayer 17 years ago
parent
commit
5c2198b184
2 changed files with 5 additions and 6 deletions
  1. 4 0
      libavformat/nut.c
  2. 1 6
      libavformat/nut.h

+ 4 - 0
libavformat/nut.c

@@ -21,6 +21,10 @@
 
 
 #include "nut.h"
 #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){
 void ff_nut_reset_ts(NUTContext *nut, AVRational time_base, int64_t val){
     int i;
     int i;
     for(i=0; i<nut->avf->nb_streams; i++){
     for(i=0; i<nut->avf->nb_streams; i++){

+ 1 - 6
libavformat/nut.h

@@ -92,12 +92,7 @@ typedef struct {
     struct AVTreeNode *syncpoints;
     struct AVTreeNode *syncpoints;
 } NUTContext;
 } 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);
 void ff_nut_reset_ts(NUTContext *nut, AVRational time_base, int64_t val);
 
 
 #endif /* AVFORMAT_NUT_H */
 #endif /* AVFORMAT_NUT_H */