Commit 9b9651ca authored by michael's avatar michael

checksum doesnt cover the forward_ptr anymore


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4579 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7174b799
...@@ -328,10 +328,10 @@ static int get_packetheader(NUTContext *nut, ByteIOContext *bc, int calculate_ch ...@@ -328,10 +328,10 @@ static int get_packetheader(NUTContext *nut, ByteIOContext *bc, int calculate_ch
int64_t start, size; int64_t start, size;
start= url_ftell(bc) - 8; 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->packet_start[2] = start;
nut->written_packet_size= size; nut->written_packet_size= size;
...@@ -465,12 +465,12 @@ static int put_packetheader(NUTContext *nut, ByteIOContext *bc, int max_size, in ...@@ -465,12 +465,12 @@ static int put_packetheader(NUTContext *nut, ByteIOContext *bc, int max_size, in
nut->packet_start[2]= url_ftell(bc) - 8; nut->packet_start[2]= url_ftell(bc) - 8;
nut->written_packet_size = max_size; nut->written_packet_size = max_size;
if(calculate_checksum)
init_checksum(bc, update_adler32, 0);
/* packet header */ /* packet header */
put_v(bc, nut->written_packet_size); /* forward ptr */ put_v(bc, nut->written_packet_size); /* forward ptr */
if(calculate_checksum)
init_checksum(bc, update_adler32, 0);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment