summaryrefslogtreecommitdiff
path: root/qt-faststart.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-04-10 17:18:35 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-04-10 17:18:35 +0000
commitfd7789dbe8a01e1d96cd98a332cb5e3e84c5745e (patch)
treefdac6896deb86b4bde8bfac730e8dc2db531bf4e /qt-faststart.c
parenta336965e703d3e5099dcc024a401f3cf44e3348a (diff)
decrease last_offset when ftyp is present
Originally committed as revision 5283 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'qt-faststart.c')
-rw-r--r--qt-faststart.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/qt-faststart.c b/qt-faststart.c
index 2cc6863152..f9de435146 100644
--- a/qt-faststart.c
+++ b/qt-faststart.c
@@ -243,8 +243,11 @@ int main(int argc, char *argv[])
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) {