Mercurial > libavformat.hg
changeset 854:c9d9796a3d00 libavformat
checksum doesnt cover the forward_ptr anymore
author | michael |
---|---|
date | Sun, 11 Sep 2005 08:32:25 +0000 |
parents | 00db24c46875 |
children | 379c4e948363 |
files | nut.c |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/nut.c Sun Sep 11 08:28:03 2005 +0000 +++ b/nut.c Sun Sep 11 08:32:25 2005 +0000 @@ -328,9 +328,9 @@ int64_t start, size; start= url_ftell(bc) - 8; - init_checksum(bc, calculate_checksum ? update_adler32 : NULL, 0); + size= get_v(bc); - size= get_v(bc); + init_checksum(bc, calculate_checksum ? update_adler32 : NULL, 0); nut->packet_start[2] = start; nut->written_packet_size= size; @@ -465,12 +465,12 @@ nut->packet_start[2]= url_ftell(bc) - 8; nut->written_packet_size = max_size; + /* packet header */ + put_v(bc, nut->written_packet_size); /* forward ptr */ + if(calculate_checksum) init_checksum(bc, update_adler32, 0); - /* packet header */ - put_v(bc, nut->written_packet_size); /* forward ptr */ - return 0; }