summaryrefslogtreecommitdiffstats
path: root/tools/qt-faststart.c
Commit message (Collapse)AuthorAgeFilesLines
* qt-faststart: Undefine fseeko/ftello before defining themDiego Biurrun2014-08-221-0/+4
| | | | This avoids a number of redefinition warnings on MinGW64.
* qt-faststart: Add a note about the -movflags +faststart featureLou Logan2014-03-011-1/+2
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* qt-faststart: Avoid unintentionally sign extending BE_32Martin Storsjö2014-03-011-5/+5
| | | | | | | | | | | | | Without this cast, the BE_32() expression is sign extended when assigned to an uint64_t, since the uint8_t|uint8_t expression is promoted to an int. Also avoid undefined behaviour when left shifting an uint8_t by 24 by casting it to an uint32_t explicitly before shifting. Based on a patch by Michael Niedermayer. Signed-off-by: Martin Storsjö <martin@martin.st>
* qt-faststart: Check offset_count before reading from the moov_atom bufferMichael Niedermayer2014-03-011-0/+8
| | | | | CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* qt-faststart: Check the ftello() return codesMichael Niedermayer2014-03-011-2/+6
| | | | | | This silences a warning in the coverity static analyzer. Signed-off-by: Martin Storsjö <martin@martin.st>
* qt-faststart: Fix the signedness of variables keeping the ftello return valuesMichael Niedermayer2014-03-011-2/+2
| | | | | | | | These variables are assigned the return values of ftello, which returns an off_t, which is a signed type. On errors, ftello returns -1, thus make sure this error return value can be stored properly. Signed-off-by: Martin Storsjö <martin@martin.st>
* qt-faststart: Check fseeko() return codesMichael Niedermayer2014-03-011-6/+18
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* qt-faststart: Simplify code by using a MIN() macroMichael Niedermayer2014-03-011-4/+3
| | | | | | | | qt-faststart doesn't use the normal libav headers at all since it's supposed to be a completely standalone tool, so we implement the macro locally in this file. Signed-off-by: Martin Storsjö <martin@martin.st>
* qt-faststart: Increase the copy buffer size to 64 KBMartin Storsjö2014-03-011-1/+1
| | | | | | | | | Copying data in chunks of 1 KB is a little wasteful. 64 KB should still easily fit on the stack, so there's no need to allocate it dynamically. Signed-off-by: Martin Storsjö <martin@martin.st>
* qt-faststart: Use other seek/tell functions on MSVC than on mingwMartin Storsjö2012-08-291-0/+3
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* tools: K&R reformatting cosmeticsDiego Biurrun2012-01-251-1/+0
|
* qt-faststart: K&R reformatting; fix comment typosDiego Biurrun2011-12-301-45/+45
|
* qt-faststart: Fix up indentationMartin Storsjö2011-12-291-9/+9
| | | | | | This restores indentation after 65b875d8fcc. Signed-off-by: Martin Storsjö <martin@martin.st>
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-1/+1
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* fail if input and output are the sameBaptiste Coudurier2010-06-211-0/+6
| | | | Originally committed as revision 23672 to svn://svn.ffmpeg.org/ffmpeg/trunk
* qt-faststart: Abort scanning of the input file if a badly sized atom is ↵Martin Storsjö2010-05-131-0/+6
| | | | | | | | | encountered If the atom size is 0, qt-faststart currently hangs forever while scanning the file. Originally committed as revision 23129 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: Initialize pointers with NULL instead of 0, for consistencyMartin Storsjö2010-05-131-1/+1
| | | | Originally committed as revision 23127 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: reindentMartin Storsjö2010-05-131-2/+2
| | | | Originally committed as revision 23126 to svn://svn.ffmpeg.org/ffmpeg/trunk
* qt-faststart: Use the error_out cleanup code path for all error returnsMartin Storsjö2010-05-131-33/+16
| | | | Originally committed as revision 23125 to svn://svn.ffmpeg.org/ffmpeg/trunk
* qt-faststart: Avoid leaking memory if encountering a file with double ftyp atomsMartin Storsjö2010-05-091-0/+1
| | | | Originally committed as revision 23065 to svn://svn.ffmpeg.org/ffmpeg/trunk
* qt-faststart: Free ftyp_atom at all exit pointsMartin Storsjö2010-05-011-0/+8
| | | | Originally committed as revision 23008 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reindent after the previous commitMartin Storsjö2010-05-011-2/+2
| | | | Originally committed as revision 23007 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unnecessary checks before calling freeMartin Storsjö2010-05-011-2/+0
| | | | | | | Feel free to revert if you can specify a concrete case where this actually is necessary. Originally committed as revision 23006 to svn://svn.ffmpeg.org/ffmpeg/trunk
* print atom info during parsing, patch by Frank Barchard, fbarchard at google ↵Frank Barchard2009-07-151-16/+24
| | | | | | dot com Originally committed as revision 19435 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do not fail if 'uuid' atom is encountered before 'moov'.Frank Barchard2009-07-061-1/+3
| | | | | | Patch by Frank Barchard, fbarchard at google dot com. Originally committed as revision 19354 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use slightly more appropriate format strings for printing decimal values.Frank Barchard2009-07-011-2/+2
| | | | | | patch by Frank Barchard, fbarchard google com Originally committed as revision 19315 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use more portable 'PRId64' instead of 'llx' as conversion/length specifier.Frank Barchard2009-06-301-2/+2
| | | | | | patch by Frank Barchard, fbarchard google com Originally committed as revision 19309 to svn://svn.ffmpeg.org/ffmpeg/trunk
* correct build documentation for qt-faststart utilityMike Melanson2008-05-191-2/+6
| | | | Originally committed as revision 13199 to svn://svn.ffmpeg.org/ffmpeg/trunk
* create and populate "tools" directoryMåns Rullgård2007-07-131-0/+311
Originally committed as revision 9634 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud