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; iavf->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 */