[FFmpeg-cvslog] r10022 - in trunk/libavformat: nut.c nut.h

michael subversion
Thu Aug 9 18:46:48 CEST 2007


Author: michael
Date: Thu Aug  9 18:46:48 2007
New Revision: 10022

Log:
move crc wraper to slightly better spot


Modified:
   trunk/libavformat/nut.c
   trunk/libavformat/nut.h

Modified: trunk/libavformat/nut.c
==============================================================================
--- trunk/libavformat/nut.c	(original)
+++ trunk/libavformat/nut.c	Thu Aug  9 18:46:48 2007
@@ -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++){

Modified: trunk/libavformat/nut.h
==============================================================================
--- trunk/libavformat/nut.h	(original)
+++ trunk/libavformat/nut.h	Thu Aug  9 18:46:48 2007
@@ -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 */




More information about the ffmpeg-cvslog mailing list