Mercurial > libavformat.hg
changeset 2336:59fa1bf41c5d libavformat
move crc wrapper to slightly better spot
author | michael |
---|---|
date | Thu, 09 Aug 2007 16:46:48 +0000 |
parents | 5b5e1edd462e |
children | be2b786dc550 |
files | nut.c nut.h |
diffstat | 2 files changed, 5 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/nut.c Thu Aug 09 16:29:30 2007 +0000 +++ b/nut.c Thu Aug 09 16:46:48 2007 +0000 @@ -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++){
--- a/nut.h Thu Aug 09 16:29:30 2007 +0000 +++ b/nut.h Thu Aug 09 16:46:48 2007 +0000 @@ -92,12 +92,7 @@ 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 */