1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

decrease last_offset when ftyp is present

Originally committed as revision 5283 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier 2006-04-10 17:18:35 +00:00
parent a336965e70
commit fd7789dbe8

View File

@ -243,8 +243,11 @@ int main(int argc, char *argv[])
free(moov_atom); free(moov_atom);
return 1; return 1;
} }
/* seek after ftyp atom if needed */
if (start_offset > 0) { /* seek after ftyp atom */
fseeko(infile, start_offset, SEEK_SET); fseeko(infile, start_offset, SEEK_SET);
last_offset -= start_offset;
}
outfile = fopen(argv[2], "wb"); outfile = fopen(argv[2], "wb");
if (!outfile) { if (!outfile) {