Revision ccb15994 libavformat/aviobuf.c

View differences:

libavformat/aviobuf.c
298 298
void init_checksum(ByteIOContext *s, unsigned long (*update_checksum)(unsigned long c, const uint8_t *p, unsigned int len), unsigned long checksum){
299 299
    s->update_checksum= update_checksum;
300 300
    if(s->update_checksum){
301
        s->checksum= s->update_checksum(checksum, NULL, 0);
301
        s->checksum= checksum;
302 302
        s->checksum_ptr= s->buf_ptr;
303 303
    }
304 304
}

Also available in: Unified diff