fix regression failure after adler simplification

Originally committed as revision 5803 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer
2006-07-20 10:22:07 +00:00
parent 79dc59b726
commit ccb159940b
2 changed files with 3 additions and 3 deletions

View File

@@ -298,7 +298,7 @@ unsigned long get_checksum(ByteIOContext *s){
void init_checksum(ByteIOContext *s, unsigned long (*update_checksum)(unsigned long c, const uint8_t *p, unsigned int len), unsigned long checksum){
s->update_checksum= update_checksum;
if(s->update_checksum){
s->checksum= s->update_checksum(checksum, NULL, 0);
s->checksum= checksum;
s->checksum_ptr= s->buf_ptr;
}
}