projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a336965
)
decrease last_offset when ftyp is present
author
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Mon, 10 Apr 2006 17:18:35 +0000
(17:18 +0000)
committer
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Mon, 10 Apr 2006 17:18:35 +0000
(17:18 +0000)
Originally committed as revision 5283 to svn://svn.ffmpeg.org/ffmpeg/trunk
qt-faststart.c
patch
|
blob
|
history
diff --git
a/qt-faststart.c
b/qt-faststart.c
index
2cc6863
..
f9de435
100644
(file)
--- 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) {