summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* tools/qt-faststart: Allow free atoms after moov atom.Carl Eugen Hoyos2018-08-011-1/+12
|
* tools/target_dec_fuzzer: set parser codec id to avoid assertion failureMichael Niedermayer2018-07-071-0/+1
| | | | | | | | Fixes: 9211/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_GSM_fuzzer-5680396581732352 Fixes: assertion failure Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* tools/target_dec_fuzzer: Fix parser_avctx memleak on error pathMichael Niedermayer2018-06-301-0/+1
| | | | | | | Fixes: oss-fuzz issue 9195 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* tools/target_dec_fuzzer: Also optionally fuzz with a parserMichael Niedermayer2018-06-281-5/+37
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* qt-faststart - print errors to stderrerankor2018-06-151-17/+17
| | | | | | instead of stdout Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* qt-faststart - stco offset bug fixerankor2018-06-131-55/+345
| | | | | | | | | | | | | | when the last offsets in the stco atom are close to 4GB, the addition of the moov atom size can overflow, causing corruption near the end of the mp4 file. this patch upgrades all stco atoms to co64 when such an edge case is detected. in order to accomplish this, the implementation was changed to walk the atom tree, instead of searching for the strings 'stco'/'co64'. this was required since when an stco atom is changed to co64, its size changes, and the sizes of all containing atoms (moov, trak, etc.) have to be updated as well. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* qt-faststart: add validation on ftyp atom sizeerankor2018-06-131-0/+6
| | | | | | avoid trying to allocate an unreasonably sized buffer on corrupt files Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* tools/crypto_bench: add missing RC4 implementation from tomcryptJames Almer2018-05-301-4/+11
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* tools/crypto_bench: add missing RC4 implementation from gcryptJames Almer2018-05-301-8/+10
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* tools/crypto_bench: add support for mbedcryptoJames Almer2018-05-301-3/+121
| | | | | | Requires mbed TLS 2.7.0 or newer Signed-off-by: James Almer <jamrial@gmail.com>
* qt-faststart - stricter input validationserankor2018-05-301-4/+9
| | | | | | | | | 1. validate the moov size before checking for cmov atom 2. avoid performing arithmetic operations on unvalidated numbers 3. verify the stco/co64 offset count does not overflow the stco/co64 atom (not only the moov atom) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/allcodecs: Provide empty codec_list in allcodecs when ossfuzz is usedMichael Niedermayer2018-05-281-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | The last workaround is not sufficient to make oss fuzz work with the iterate API as it did not provide a FFmpeg that external libs can be linked to. This patch does not fully restore the pre iterate functionality. My attempts to do this have so far failed. The problem with this solution is that it renders the fuzzers virtual system ffmpeg (libs) non functional. Which differs from a real system compared to the virtual system tested by the fuzzer. It should theoretically not matter as the system ffmpeg wouldnt be used. But with more cases being fuzzed we likely will hit a case where a external lib is involved and it does matter ... Working around this may be possible with weak symbols but so far my attempts failed Alternatively multiple ffmpeg could be built, this becomes messy though quickly as they need to be all linked together. That is we need a FFmpeg that has the iterate API modified so it can work with the resources available to ossfuzz. And at the same time we need a ffmpeg that has its full functionality for any external libs which use ffmpeg and are used by ffmpeg. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec: Disable new iterate API for ossfuzzMichael Niedermayer2018-05-161-0/+6
| | | | | | | | | | | | | | | | | A few days ago ossfuzz stoped testing new FFmpeg as it run out of diskspacee https://oss-fuzz-build-logs.storage.googleapis.com/index.html An alternative would be to revert the API. This changes for example -rwxr-x--- 1 michael michael 144803654 May 14 12:54 tools/target_dec_ac3_fixed_fuzzer* to -rwxr-x--- 1 michael michael 30333852 May 14 12:51 tools/target_dec_ac3_fixed_fuzzer* Which should massively decrease space requirements Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lav*,tests: remove several register_all callsJosh de Kock2018-04-029-18/+0
| | | | | | | avdevice_register_all() is still required to register devices into lavf (this is required due to lavd being somewhat of a hack). Signed-off-by: Josh de Kock <josh@itanimul.li>
* fftools, tools, examples: migrate to AVFormatContext->urlMarton Balint2018-01-281-1/+1
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* Remove the ffserver programRostislav Pehlivanov2018-01-061-1/+1
| | | | Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* tools/uncoded_frame: remove use of AVStream.codec.Nicolas George2018-01-061-15/+13
|
* tools/uncoded_frame: use buffersink accessors.Nicolas George2018-01-061-14/+12
| | | | No longer access buffersink's link structure directly.
* Revert "tools/uncoded_frame: remove usage of avfilter_link_get_channels()"James Almer2018-01-051-1/+1
| | | | | | This reverts commit 01c21653eee53a353ae887a47cd2b48165902383. It was applied by accident before it could be reviewed.
* tools/uncoded_frame: remove usage of avfilter_link_get_channels()James Almer2018-01-051-1/+1
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* patcheck: Add 'threshhold' to common typo listKelly Ledford2017-12-131-1/+1
| | | | | Signed-off-by: Kelly Ledford <kelly.ledford@intel.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* tools/cl2c: Add a copyright headerMark Thompson2017-11-221-0/+16
|
* lavfi: Add infrastructure for building OpenCL source into libavfilterMark Thompson2017-11-221-0/+20
|
* Merge commit 'f19fbfbdc637e08ad5c980807ede2d023f20c049'James Almer2017-11-111-0/+5
|\ | | | | | | | | | | | | * commit 'f19fbfbdc637e08ad5c980807ede2d023f20c049': aviocat: Check for output write errors Merged-by: James Almer <jamrial@gmail.com>
| * aviocat: Check for output write errorsMartin Storsjö2017-09-041-0/+5
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit 'e41daa62465036ad36ad0bd14e4936e848d7f07e'James Almer2017-11-111-4/+1
|\ \ | |/ | | | | | | | | | | * commit 'e41daa62465036ad36ad0bd14e4936e848d7f07e': Remove support for building for mingw32ce (Windows CE) Merged-by: James Almer <jamrial@gmail.com>
| * Remove support for building for mingw32ce (Windows CE)Martin Storsjö2017-08-311-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The toolchain for this target is unmaintained since many years. While it has been continuously build tested on fate, it hasn't actually been tested at runtime since many, many years (and back then, only a few codecs in libavcodec were tested). So far, keeping support for it has been mostly effortless, but the compiler does seem to have issues with dllimported data symbols, ending up as internal compiler errors in some cases. Instead of jumping through further hoops to work around that, just remove the target. Signed-off-by: Martin Storsjö <martin@martin.st>
* | tools/target_dec_fuzzer: Fix build after AV_CODEC_CAP_HWACCEL_VDPAU was removedMichael Niedermayer2017-10-251-4/+0
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | tools/target_dec_fuzzer: Fix build after FF_INPUT_BUFFER_PADDING_SIZE was ↵Michael Niedermayer2017-10-251-3/+3
| | | | | | | | | | | | removed Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | tools/ismindex: remove unused headerJames Almer2017-10-011-2/+0
| |
* | build: Generalize yasm/nasm-related variable namesDiego Biurrun2017-06-211-1/+1
| | | | | | | | | | | | | | | | None of them are specific to the YASM assembler. (Cherry-picked from libav commit 39e208f4d4756367c7cd2d581847e0c1b8a429c1) Signed-off-by: James Almer <jamrial@gmail.com>
* | tools/sofa2wavs: add license headerPaul B Mahol2017-06-121-0/+20
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | tools: add sofa2wavsPaul B Mahol2017-06-122-0/+80
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | tools/target_dec_fuzzer: Move the hwaccel check outside the initialization ifMichael Niedermayer2017-05-291-4/+4
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | tools/target_dec_fuzzer: Do not attempt to fuzz VDPAU, its not supportedMichael Niedermayer2017-05-061-0/+4
| | | | | | | | | | | | | | | | Fixes: 1364/clusterfuzz-testcase-minimized-6459843441328128 Fixes: 1392 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | tools/target_dec_fuzzer: Do not use codec_id to look up decoder, but use ↵Michael Niedermayer2017-05-061-3/+2
| | | | | | | | | | | | selected decoder directly Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | tools/target_dec_fuzzer: Fix memleak on open failureMichael Niedermayer2017-05-041-1/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | tools/target_dec_fuzzer: Use decoder and not codec_id as argumentMichael Niedermayer2017-05-032-3/+15
| | | | | | | | | | | | | | This allows fuzzing decoders with the same codec_id We also avoid register all to allow the linker to prune unused sections and symbols Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | tools/target_dec_fuzzer: Use avcodec_register_all() instead of register_all()Michael Niedermayer2017-05-021-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | tools: Eliminate codec_type complexity from fuzzerMichael Niedermayer2017-04-302-19/+11
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | tools/target_dec_fuzzer: Fix return code on open failureMichael Niedermayer2017-04-271-1/+1
| | | | | | | | | | | | | | Fixes: 1271/clusterfuzz-testcase-minimized-6095220498235392 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | tools/target_dec_fuzzer: Remove FuzzerInterface.h dependancyMichael Niedermayer2017-04-251-1/+1
| | | | | | | | | | | | | | The header is not always available in the docker build environment Suggested-by: Kostya Serebryany Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Make tools/target_dec_*_fuzzer buildable with configure and makeMichael Niedermayer2017-04-241-0/+10
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | tools/target_dec_fuzzer: Fix build with default FFmpeg build flagsMichael Niedermayer2017-04-241-4/+8
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | tools/target_dec_fuzzer: Fuzz video decoder related fields in context.Michael Niedermayer2017-04-191-0/+13
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | build: fix tools build dependenciesJames Almer2017-04-131-4/+0
| | | | | | | | | | Found-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | Merge commit '3e105d08848162b90d886bde59c010d4b0362a4b'James Almer2017-04-131-0/+13
|\ \ | |/ | | | | | | | | | | * commit '3e105d08848162b90d886bde59c010d4b0362a4b': build: Move entries related to building TOOLS to a subdirectory Makefile Merged-by: James Almer <jamrial@gmail.com>
| * build: Move entries related to building TOOLS to a subdirectory MakefileDiego Biurrun2016-12-071-0/+11
| |
* | Merge commit '233d50b275dd7cf6cc0656851e670e1b2dfba56f'James Almer2017-04-041-1/+4
|\ \ | |/ | | | | | | | | | | * commit '233d50b275dd7cf6cc0656851e670e1b2dfba56f': qt-faststart: Do not try to use fancy 64-bit seeking functions on mingw32ce Merged-by: James Almer <jamrial@gmail.com>
| * qt-faststart: Do not try to use fancy 64-bit seeking functions on mingw32ceMartin Storsjö2016-11-241-1/+4
| | | | | | | | | | | | These functions are not available on mingw32ce. Signed-off-by: Diego Biurrun <diego@biurrun.de>
OpenPOWER on IntegriCloud