[Ffmpeg-cvslog] CVS: ffmpeg/libavformat nut.c,1.54,1.55
Michael Niedermayer CVS
michael
Sun Sep 11 10:32:28 CEST 2005
Update of /cvsroot/ffmpeg/ffmpeg/libavformat
In directory mail:/var2/tmp/cvs-serv2537/libavformat
Modified Files:
nut.c
Log Message:
checksum doesnt cover the forward_ptr anymore
Index: nut.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/nut.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- nut.c 11 Sep 2005 08:28:03 -0000 1.54
+++ nut.c 11 Sep 2005 08:32:25 -0000 1.55
@@ -328,10 +328,10 @@
int64_t start, size;
start= url_ftell(bc) - 8;
- init_checksum(bc, calculate_checksum ? update_adler32 : NULL, 0);
-
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;
- if(calculate_checksum)
- init_checksum(bc, update_adler32, 0);
-
/* packet header */
put_v(bc, nut->written_packet_size); /* forward ptr */
+ if(calculate_checksum)
+ init_checksum(bc, update_adler32, 0);
+
return 0;
}
More information about the ffmpeg-cvslog
mailing list