Browse Source

move crc wrapper to slightly better spot

Originally committed as revision 10022 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 18 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 View File

@@ -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++){


+ 1
- 6
libavformat/nut.h View File

@@ -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 */

Loading…
Cancel
Save