summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAge
* tools/target_dec_fate: Add entries from around issue 500 to 700Michael Niedermayer2019-01-04
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* tools: add target_dec_fate.shMichael Niedermayer2018-12-29
| | | | | | | | Script to download and test ossfuzz testcases This also includes a list of such testcases. I intend to subsequently fill this list with the cases we have fixed in the past Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* configure: Make sure libpostproc can be found if -rpath-link doesn't work.Carl Eugen Hoyos2018-12-28
| | | | Solaris ld takes "-rpath-link=libpostproc" as indication to search in "-link=libpostproc".
* tools/qt-faststart: Allow free atoms after moov atom.Carl Eugen Hoyos2018-08-01
|
* tools/target_dec_fuzzer: set parser codec id to avoid assertion failureMichael Niedermayer2018-07-07
| | | | | | | | 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-30
| | | | | | | 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-28
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* qt-faststart - print errors to stderrerankor2018-06-15
| | | | | | instead of stdout Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* qt-faststart - stco offset bug fixerankor2018-06-13
| | | | | | | | | | | | | | 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-13
| | | | | | 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-30
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* tools/crypto_bench: add missing RC4 implementation from gcryptJames Almer2018-05-30
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* tools/crypto_bench: add support for mbedcryptoJames Almer2018-05-30
| | | | | | Requires mbed TLS 2.7.0 or newer Signed-off-by: James Almer <jamrial@gmail.com>
* qt-faststart - stricter input validationserankor2018-05-30
| | | | | | | | | 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-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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-16
| | | | | | | | | | | | | | | | | 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-02
| | | | | | | 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-28
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* Remove the ffserver programRostislav Pehlivanov2018-01-06
| | | | Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* tools/uncoded_frame: remove use of AVStream.codec.Nicolas George2018-01-06
|
* tools/uncoded_frame: use buffersink accessors.Nicolas George2018-01-06
| | | | No longer access buffersink's link structure directly.
* Revert "tools/uncoded_frame: remove usage of avfilter_link_get_channels()"James Almer2018-01-05
| | | | | | 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-05
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* patcheck: Add 'threshhold' to common typo listKelly Ledford2017-12-13
| | | | | 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-22
|
* lavfi: Add infrastructure for building OpenCL source into libavfilterMark Thompson2017-11-22
|
* Merge commit 'f19fbfbdc637e08ad5c980807ede2d023f20c049'James Almer2017-11-11
|\ | | | | | | | | | | | | * commit 'f19fbfbdc637e08ad5c980807ede2d023f20c049': aviocat: Check for output write errors Merged-by: James Almer <jamrial@gmail.com>
| * aviocat: Check for output write errorsMartin Storsjö2017-09-04
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit 'e41daa62465036ad36ad0bd14e4936e848d7f07e'James Almer2017-11-11
|\| | | | | | | | | | | | | * 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-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-25
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | tools/target_dec_fuzzer: Fix build after FF_INPUT_BUFFER_PADDING_SIZE was ↵Michael Niedermayer2017-10-25
| | | | | | | | | | | | removed Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | tools/ismindex: remove unused headerJames Almer2017-10-01
| |
* | build: Generalize yasm/nasm-related variable namesDiego Biurrun2017-06-21
| | | | | | | | | | | | | | | | 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-12
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | tools: add sofa2wavsPaul B Mahol2017-06-12
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | tools/target_dec_fuzzer: Move the hwaccel check outside the initialization ifMichael Niedermayer2017-05-29
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | tools/target_dec_fuzzer: Do not attempt to fuzz VDPAU, its not supportedMichael Niedermayer2017-05-06
| | | | | | | | | | | | | | | | 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-06
| | | | | | | | | | | | selected decoder directly Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | tools/target_dec_fuzzer: Fix memleak on open failureMichael Niedermayer2017-05-04
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | tools/target_dec_fuzzer: Use decoder and not codec_id as argumentMichael Niedermayer2017-05-03
| | | | | | | | | | | | | | 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-02
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | tools: Eliminate codec_type complexity from fuzzerMichael Niedermayer2017-04-30
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | tools/target_dec_fuzzer: Fix return code on open failureMichael Niedermayer2017-04-27
| | | | | | | | | | | | | | 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-25
| | | | | | | | | | | | | | 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-24
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | tools/target_dec_fuzzer: Fix build with default FFmpeg build flagsMichael Niedermayer2017-04-24
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | tools/target_dec_fuzzer: Fuzz video decoder related fields in context.Michael Niedermayer2017-04-19
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | build: fix tools build dependenciesJames Almer2017-04-13
| | | | | | | | | | Found-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | Merge commit '3e105d08848162b90d886bde59c010d4b0362a4b'James Almer2017-04-13
|\| | | | | | | | | | | | | * commit '3e105d08848162b90d886bde59c010d4b0362a4b': build: Move entries related to building TOOLS to a subdirectory Makefile Merged-by: James Almer <jamrial@gmail.com>