summaryrefslogtreecommitdiff
path: root/tools/qt-faststart.c
Commit message (Collapse)AuthorAge
* qt-faststart: Undefine fseeko/ftello before defining themDiego Biurrun2014-08-22
| | | | This avoids a number of redefinition warnings on MinGW64.
* qt-faststart: Add a note about the -movflags +faststart featureLou Logan2014-03-01
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* qt-faststart: Avoid unintentionally sign extending BE_32Martin Storsjö2014-03-01
| | | | | | | | | | | | | 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-01
| | | | | CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* qt-faststart: Check the ftello() return codesMichael Niedermayer2014-03-01
| | | | | | 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-01
| | | | | | | | 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-01
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* qt-faststart: Simplify code by using a MIN() macroMichael Niedermayer2014-03-01
| | | | | | | | 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-01
| | | | | | | | | 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-29
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* tools: K&R reformatting cosmeticsDiego Biurrun2012-01-25
|
* qt-faststart: K&R reformatting; fix comment typosDiego Biurrun2011-12-30
|
* qt-faststart: Fix up indentationMartin Storsjö2011-12-29
| | | | | | This restores indentation after 65b875d8fcc. Signed-off-by: Martin Storsjö <martin@martin.st>
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* fail if input and output are the sameBaptiste Coudurier2010-06-21
| | | | 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-13
| | | | | | | | | 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-13
| | | | Originally committed as revision 23127 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: reindentMartin Storsjö2010-05-13
| | | | 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-13
| | | | 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-09
| | | | Originally committed as revision 23065 to svn://svn.ffmpeg.org/ffmpeg/trunk
* qt-faststart: Free ftyp_atom at all exit pointsMartin Storsjö2010-05-01
| | | | Originally committed as revision 23008 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reindent after the previous commitMartin Storsjö2010-05-01
| | | | Originally committed as revision 23007 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unnecessary checks before calling freeMartin Storsjö2010-05-01
| | | | | | | 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-15
| | | | | | 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-06
| | | | | | 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-01
| | | | | | 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-30
| | | | | | 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-19
| | | | Originally committed as revision 13199 to svn://svn.ffmpeg.org/ffmpeg/trunk
* create and populate "tools" directoryMåns Rullgård2007-07-13
Originally committed as revision 9634 to svn://svn.ffmpeg.org/ffmpeg/trunk