Revision a26e1d4c

View differences:

libavformat/nut.c
328 328
    int64_t start, size;
329 329
    start= url_ftell(bc) - 8;
330 330

  
331
    init_checksum(bc, calculate_checksum ? update_adler32 : NULL, 0);
332

  
333 331
    size= get_v(bc);
334 332

  
333
    init_checksum(bc, calculate_checksum ? update_adler32 : NULL, 0);
334

  
335 335
    nut->packet_start[2] = start;
336 336
    nut->written_packet_size= size;
337 337

  
......
465 465
    nut->packet_start[2]= url_ftell(bc) - 8;
466 466
    nut->written_packet_size = max_size;
467 467
    
468
    if(calculate_checksum)
469
        init_checksum(bc, update_adler32, 0);
470

  
471 468
    /* packet header */
472 469
    put_v(bc, nut->written_packet_size); /* forward ptr */
473 470

  
471
    if(calculate_checksum)
472
        init_checksum(bc, update_adler32, 0);
473

  
474 474
    return 0;
475 475
}
476 476

  

Also available in: Unified diff