Commit fd7789db authored by Baptiste Coudurier's avatar Baptiste Coudurier

decrease last_offset when ftyp is present

Originally committed as revision 5283 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent a336965e
...@@ -243,8 +243,11 @@ int main(int argc, char *argv[]) ...@@ -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 */
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"); outfile = fopen(argv[2], "wb");
if (!outfile) { if (!outfile) {
......
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