Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)Author
2019-09-21tools/target_dec_fuzzer: fuzz channels and sample_rate tooMichael Niedermayer
This should increase coverage over more audio decoders. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-09-20libavfilter/dnn: add layer maximum for native mode.Guo, Yejun
The reason to add this layer is that it is used by srcnn in vf_sr. This layer is currently ignored in native mode. After this patch, we can add multiple outputs support for native mode. Signed-off-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2019-09-17tools/target_dec_fuzzer: Adjust threshold for binkvideoMichael Niedermayer
Fixes: Timeout (89sec -> 7sec) Fixes: 17035/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_BINK_fuzzer-5737222422134784 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: Peter Ross <pross@xvid.org> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-09-16tools/target_dec_fuzzer: increase snows thresholdMichael Niedermayer
snow allows creating large output from tiny input, like other wavelet codecs Fixes: Timeout (82sec -> 1.5sec) Fixes: 9520/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SNOW_fuzzer-6286612576075776 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-09-16tools/target_dec_fuzzer: Adjust motionpixels thresholdMichael Niedermayer
Fixes: Timeout (151sec -> 173ms) Fixes: 16053/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MOTIONPIXELS_fuzzer-5647069169057792 Fixes: 16053/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MOTIONPIXELS_fuzzer-5108957126852608 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-09-10tools/target_dec_fuzzer: Adjust threshold for LSCRMichael Niedermayer
Fixes: Timeout (12sec -> 3sec) Fixes: 15327/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_LSCR_fuzzer-5702887719567360 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-09-04libavfilter/dnn: add header into native model fileGuo, Yejun
Signed-off-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2019-08-31tools/target_dec_fuzzer: adjust pixel threshold for TRUEMOTION2, as it ↵Michael Niedermayer
allows coding gigantic images on tiny input Fixes: Timeout (137sec -> 6sec) Fixes: 16090/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TRUEMOTION2_fuzzer-5674245178261504 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-08-31tools/target_dec_fuzzer: Init parsepktMichael Niedermayer
Fixes: memory corruption Fixes: 16702/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PNG_fuzzer-5768418552184832 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-08-30dnn: export operand info in python script and load in c codeGuo, Yejun
Signed-off-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2019-08-30dnn: change .model file format to put layer number at the end of fileGuo, Yejun
currently, the layer number is at the beginning of the .model file, so we have to scan twice in python script, the first scan to get the layer number. Only one scan needed after put the layer number at the end of .model file. Signed-off-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2019-08-29tools/target_dec_fuzzer: Adjust maxpixels for indeo4Michael Niedermayer
Fixes: Timeout (131sec -> 4sec) Fixes: 15581/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_INDEO4_fuzzer-5651105515569152 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-08-29tools/target_dec_fuzzer: Adjust GDV pixel threshold down by a factor of 2Michael Niedermayer
Fixes: Timeout (7sec -> 1sec) Fixes: 14709/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_GDV_fuzzer-5704215281795072 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-08-29tools/target_dec_fuzzer: adjust pixel threshold for SANM, as it allows ↵Michael Niedermayer
coding gigantic images on tiny input Fixes: Timeout (13sec ->1sec) Fixes: 16122/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SANM_fuzzer-5724944247291904 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-08-26tools/target_dec_fuzzer: Increase maxpixels threshold for diracMichael Niedermayer
wavelets allow significant size expansion and they are also not very fast. Fixes: Timeout Fixes: 16480/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DIRAC_fuzzer-5659892689403904 (108sec -> 17ms) Fixes: 16480/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DIRAC_fuzzer-5749422717140992 (big ->15sec) Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-08-26tools/target_dec_fuzzer: Do not corrupt the packet size returnMichael Niedermayer
Fixes: Timeout (infinite) Fixes: 16732/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TAK_fuzzer-5642166377906176 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-08-23tools/target_dec_fuzzer: use refcounted packetsJames Almer
Should reduce allocations and data copying. Signed-off-by: James Almer <jamrial@gmail.com>
2019-08-23tools/target_dec_fuzzer: Do not increase max_pixelsMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-08-15convert_from_tensorflow.py: support conv2d with dilationGuo, Yejun
conv2d with dilation > 1 generates tens of nodes in graph, it is not easy to parse each node one by one, so we do special tricks to parse the conv2d layer. Signed-off-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2019-08-15convert_from_tensorflow.py: add option to dump graph for visualization in ↵Guo, Yejun
tensorboard Signed-off-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2019-08-15tools/target_dec_fuzzer: adjust pixel threshold for MSRLE, as it allows ↵Michael Niedermayer
coding gigantic images on tiny input Fixes: Timeout (12sec ->2sec) Fixes: 16125/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MSRLE_fuzzer-5650846364205056 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-08-13tools/target_dec_fuzzer: Print max_pixels and iterations at the endMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-08-13tools/aviocat: add verbose mode.Nicolas George
For now: print the input size as detected by AVSEEK_SIZE.
2019-08-12tools/target_dec_fuzzer: Add missing breaksMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-08-12tools/target_dec_fuzzer: Limit number off all pixels decodedMichael Niedermayer
This should reduces the number of uninteresting timeouts encountered A single threshold for all codecs did not work Fixes: 13979/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_QTRLE_fuzzer-5629872380051456 (14sec -> 4sec) Fixes: 14709/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_GDV_fuzzer-5704215281795072 (179sec -> 7sec) Fixes: 16296/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HNM4_VIDEO_fuzzer-5756304521428992 (108sec -> 9sec) Fixes: 15620/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_GIF_fuzzer-5657214435459072 (26sec -> 26ms) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-08-10tools/zmqsend: Avoid mem copy past the end of input bufferAndriy Gelman
This patch avoids a read past the end of the input buffer in memcpy since the size of the received zmq message is recv_buf_size - 1. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-07-31tools/target_dec_fuzzer: fix memleak of extradataMichael Niedermayer
Fixes: memleak Fixes: 15535/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SMACKER_fuzzer-5692162424963072 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-07-29dnn: convert tf.pad to native model in python script, and load/execute it in ↵Guo, Yejun
the c code. since tf.pad is enabled, the conv2d(valid) changes back to its original behavior. Signed-off-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2019-07-21tools/target_dec_fuzzer: Free parser in case of avcodec_open2() failureMichael Niedermayer
Fixes: memleak Fixes: part of 15529/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_LIBVPX_VP8_fuzzer-5140143700180992 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-07-19tools/target_dem_fuzzer: ignore avformat_find_stream_info() failureMichael Niedermayer
Such a failure should not be fatal and its worth testing this path too Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-07-13tools/target_dec_fuzzer: Remove redundant av_free()Michael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-07-01tools/python: add script to convert TensorFlow model (.pb) to native model ↵Guo, Yejun
(.model) For example, given TensorFlow model file espcn.pb, to generate native model file espcn.model, just run: python convert.py espcn.pb In current implementation, the native model file is generated for specific dnn network with hard-code python scripts maintained out of ffmpeg. For example, srcnn network used by vf_sr is generated with https://github.com/HighVoltageRocknRoll/sr/blob/master/generate_header_and_model.py#L85 In this patch, the script is designed as a general solution which converts general TensorFlow model .pb file into .model file. The script now has some tricky to be compatible with current implemention, will be refined step by step. The script is also added into ffmpeg source tree. It is expected there will be many more patches and community needs the ownership of it. Another technical direction is to do the conversion in c/c++ code within ffmpeg source tree. While .pb file is organized with protocol buffers, it is not easy to do such work with tiny c/c++ code, see more discussion at http://ffmpeg.org/pipermail/ffmpeg-devel/2019-May/244496.html. So, choose the python script. Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
2019-06-14tools/target_dec_fuzzer: Also fuzz extradataMichael Niedermayer
This should improve coverage Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-06-05tools/target_dec_fuzzer: Limit error concealment on pixels instead of just ↵Michael Niedermayer
frames This should reduce the amount of timeout issues overall Fixes: Timeout (34->10sec) Fixes: 14682/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMV2_fuzzer-5728608414334976 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-05-31tools: Add fuzzer for demuxersMichael Niedermayer
This is based on target_dec_fuzzer Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-05-09tools/crypto_bench: update the comment about build commandJun Zhao
commit cd62f9d557f missing the comment about build Reviewed-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
2019-05-09tools/crypto_bench: check malloc fail before using itJun Zhao
Need to check malloc fail before using it, so adjust the location in the code. Reviewed-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
2019-03-20tools/target_dec_fate.list: add issues 4000 to 6000Michael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-03-11Merge commit '7e5bde93a1e7641e1622814dafac0be3f413d79b'James Almer
* commit '7e5bde93a1e7641e1622814dafac0be3f413d79b': build: Rename OBJDIRS variable to OUTDIRS Merged-by: James Almer <jamrial@gmail.com>
2019-03-02tools/target_dec_fate.list: Add testcases for #2000 to #4000Michael Niedermayer
Testcases which return 403 currently are commented out Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-03-02tools/target_dec_fate.sh: Add support for lines that are commentsMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-02-16build: Rename OBJDIRS variable to OUTDIRSDiego Biurrun
These directories are not just for object files.
2019-02-09tools/target_dec_fate.list: Extend selftests upto issue 2000Michael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-01-28tools/target_dec_fate.list: add entries upto 1214Michael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-01-04tools/target_dec_fate: Add entries from around issue 500 to 700Michael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-12-29tools: add target_dec_fate.shMichael Niedermayer
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>
2018-12-28configure: Make sure libpostproc can be found if -rpath-link doesn't work.Carl Eugen Hoyos
Solaris ld takes "-rpath-link=libpostproc" as indication to search in "-link=libpostproc".
2018-08-01tools/qt-faststart: Allow free atoms after moov atom.Carl Eugen Hoyos
2018-07-07tools/target_dec_fuzzer: set parser codec id to avoid assertion failureMichael Niedermayer
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>
2018-06-30tools/target_dec_fuzzer: Fix parser_avctx memleak on error pathMichael Niedermayer
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>