[Ffmpeg-cvslog] CVS: ffmpeg qt-faststart.c,1.8,1.9
Baptiste Coudurier CVS
bcoudurier
Mon Apr 10 19:18:37 CEST 2006
Update of /cvsroot/ffmpeg/ffmpeg
In directory mail:/var2/tmp/cvs-serv30919
Modified Files:
qt-faststart.c
Log Message:
decrease last_offset when ftyp is present
Index: qt-faststart.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/qt-faststart.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- qt-faststart.c 27 Mar 2006 16:34:21 -0000 1.8
+++ qt-faststart.c 10 Apr 2006 17:18:35 -0000 1.9
@@ -243,8 +243,11 @@
free(moov_atom);
return 1;
}
- /* seek after ftyp atom if needed */
- fseeko(infile, start_offset, SEEK_SET);
+
+ if (start_offset > 0) { /* seek after ftyp atom */
+ fseeko(infile, start_offset, SEEK_SET);
+ last_offset -= start_offset;
+ }
outfile = fopen(argv[2], "wb");
if (!outfile) {
More information about the ffmpeg-cvslog
mailing list