mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:21:11 +01: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:
parent
a336965e70
commit
fd7789dbe8
1 changed files with 5 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue