summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* avcodec/truemotion2: Fix several integer overflows in tm2_update_block()Michael Niedermayer2019-05-27
| | | | | | | | Fixes: signed integer overflow: -1877966852 + -469491713 cannot be represented in type 'int' Fixes: 14561/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TRUEMOTION2_fuzzer-5167608359288832 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/ffv1dec_template: Optimize common case in run modeMichael Niedermayer2019-05-27
| | | | | | | | | | | | | | | | Fixes: Timeout (14sec -> 9sec) Fixes: 13398/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FFV1_fuzzer-5664106709778432 decode_line() becomes 1% faster for fate/vsynth2-ffv1.avi for another fate sample there is a 0.5% speedup the effect should be bigger for files with "flat" colored areas the new faster branch is used in 97-100% of the cases in fate samples compared to the older more complex (which i tested) vsynth3-ffv1-v3-bgr0.avi had the lowest percentual useage of about 97% Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/avf_showvolume: switch to activatePaul B Mahol2019-05-27
|
* avcodec/libdav1d: add support for RGB streamsJames Almer2019-05-27
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* doc/swscaler: explain default Lanczos parameterWerner Robitza2019-05-27
| | | | | | | Explain that the default Lanczos filter parameter is 3 and that it can be changed by the param0 option. Signed-off-by: Werner Robitza <werner.robitza@gmail.com>
* avcodec/libdav1d: assert Dav1dPicture allocator_data is set before ↵James Almer2019-05-27
| | | | | | | | referencing its data To ensure the custom allocator is effectively used. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libdav1d: export level from the Sequence HeaderJames Almer2019-05-27
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avfilter/af_superequalizer: switch to activatePaul B Mahol2019-05-27
|
* fftools/ffprobe: Add S12M Timecode output as side data (such as SEI TC)Antonin Gouzer2019-05-27
| | | | | | Slightly modified by Marton Balint to produce valid json as well. Signed-off-by: Marton Balint <cus@passwd.hu>
* avcodec/mips: [loongson] fix mpeg4 decoding error on loongson platform.Shiyou Yin2019-05-26
| | | | | | | In function ff_dct_unquantize_mpeg2_intra_mmi, addr0 shoudn't be changed before storage operation. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/avf_showfreqs: switch to activatePaul B Mahol2019-05-26
|
* swresample/swresample: check for invalid sample ratesPaul B Mahol2019-05-26
|
* avcodec/libx265: Support full range videosDerek Buitenhuis2019-05-26
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* avformat/webm_chunk: Specify expected argument length of get_chunk_filename()Michael Niedermayer2019-05-25
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/webm_chunk: Check header filename lengthMichael Niedermayer2019-05-25
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/pngdec: Check nb_blocksMichael Niedermayer2019-05-25
| | | | | | | | | Fixes: Timeout (23sec -> 0.5sec) Fixes: 14329/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_LSCR_fuzzer-5679252923482112 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>
* avfilter/f_loop: warn about unset loop sizesMarton Balint2019-05-24
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avfilter/f_loop: fix video loop issues with 0 size or when size is bigger ↵Marton Balint2019-05-24
| | | | | | | | | | | than input Fixes infinte loop with -vf loop=loop=1 and also fixes looping when the input is less frames than the specified loop size. Possible regressions since ef1aadffc785b48ed62c45d954289e754f43ef46. Signed-off-by: Marton Balint <cus@passwd.hu>
* avcodec/scpr3: fix checking ret value of decode_run_iMarton Balint2019-05-24
| | | | | | Fixes Coverity CID 1441461. Signed-off-by: Marton Balint <cus@passwd.hu>
* avcodec/scpr: fix checking ret value of decode_run_iMarton Balint2019-05-24
| | | | | | Fixes Coverity CID 1441460. Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/utils: fix stream ordering for program ID stream specifiersMarton Balint2019-05-24
| | | | | | Fixes a regression introduced in dbfd042983eed8586d4048795c00af820f5b6b1f. Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/cache - delete cache file after closing handleGyan Doshi2019-05-25
| | | | Verified that cache files get deleted on Windows.
* compat/cuda/ptx2c: don't drop final newlineTimo Rothenpieler2019-05-24
|
* avfilter/vf_scale_cuda: reset frame size after acquiring from hwframeJosh Allmann2019-05-24
| | | | Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* avfilter/vf_xmedian: set sar to outlinkPaul B Mahol2019-05-24
|
* avfilter/vf_mix: set sar to outlinkPaul B Mahol2019-05-24
|
* avfilter/vf_mix: use time_base from framesyncPaul B Mahol2019-05-24
|
* lavfi/opencl: add nlmeans_opencl filterRuiling Song2019-05-24
| | | | | Reviewed-by: Mark Thompson <sw@jkqxz.net> Signed-off-by: Ruiling Song <ruiling.song@intel.com>
* libavfilter/dnn_native: Add support of dilated convolution in dnn_native.Xuewei Meng2019-05-24
| | | | | | | Add dilation parameter in dnn native to support dilated convolution. Signed-off-by: Xuewei Meng <xwmeng96@gmail.com> Signed-off-by: Steven Liu <lq@onvideo.cn>
* lavc/qsvenc: Fix the memory leak for enc_ctrl.PayloadLinjie Fu2019-05-22
| | | | | | | | | | | | | frame->enc_ctrl.Payload is malloced in get_free_frame, directly memset the whole structure of enc_ctrl to zero will cause the memory leak for enc_ctrl.Payload. frame->enc_ctrl as a structure will be malloc and init to zero by calling frame = av_mallocz(sizeof(*frame)), so the memset is redundant and can be removed. Signed-off-by: Linjie Fu <linjie.fu@intel.com> Signed-off-by: Zhong Li <zhong.li@intel.com>
* doc/writing_filters: Use ff_filter_get_nb_threads() get number of threadsJun Zhao2019-05-22
| | | | | | | | | | ff_filter_get_nb_threads() respect AVFilterContext.nb_threads and graph->nb_threads both, in most case, we perfer this API than using ctx->graph->nb_threads directly. Reviewed-by: Steven Liu <lq@onvideo.cn> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* lavfi/lensfun: Use ff_filter_get_nb_threads() get number of threadsJun Zhao2019-05-22
| | | | | | | | | | ff_filter_get_nb_threads() respect AVFilterContext.nb_threads and graph->nb_threads both, in most case, we perfer this API than using ctx->graph->nb_threads directly. Reviewed-by: Steven Liu <lq@onvideo.cn> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* libavfilter/dnn_native: Add multiple activation functions in dnn nativeXuewei Meng2019-05-22
| | | | | | | | Add "Leaky_relu" and "None" option in activation function. Reviewed-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Xuewei Meng <xwmeng96@gmail.com> Signed-off-by: Steven Liu <lq@onvideo.cn>
* libavfilter/dnn_native: Add multiple padding methods in dnn nativeXuewei Meng2019-05-21
| | | | | | | | | | | Add another two padding methods "VALID" and "SAME" as tensorflow, and keep the existing "SAME_CLAMP_TO_EDGE" method suggested by sr filter. As "SAME_CLAMP_TO_EDGE"can keep the output with the same size as original input, and gives a slight better result as mentioned by sr filter. Reviewed-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Xuewei Meng <xwmeng96@gmail.com> Signed-off-by: Steven Liu <lq@onvideo.cn>
* lavc/vp9_superframe_bsf: avoid error messages in one lineFu Linjie2019-05-21
| | | | | | Add "\n" to avoid continuous error messages in one line. Signed-off-by: Fu Linjie <linjie.fu@intel.com>
* doc: add basic documentation for libdav1dJames Almer2019-05-20
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* ffplay: added option always on top for video windowDaniel Kucera2019-05-20
| | | | | Reviewed-by: Marton Balint <cus@passwd.hu> Signed-off-by: Daniel Kucera <github@danman.eu>
* avcodec/libdav1d: fine tune thread distributionJames Almer2019-05-20
| | | | | | | | As suggested by Ronald, don't map auto threads to frame threads only, and instead distribute them between frame and tile more efficiently. Add a new framethreads override option, similar to the tilethreads one. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/mxfenc: support XAVC long gopBaptiste Coudurier2019-05-20
|
* avcodec/cpia: Check input size also against linesizes and EOLMichael Niedermayer2019-05-20
| | | | | | | | | Fixes: Timeout (14sec -> 29ms) Fixes: 14733/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CPIA_fuzzer-5707022445576192 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/v210dec: Fix alignment check for AVX2Michael Niedermayer2019-05-19
| | | | | | | | Fixes: "null pointer dereference" (actually misaligned access but the tools seem not to support this) Fixes: 14551/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_V210_fuzzer-5088609952071680 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Revert "lavf/utils: Allow url credentials to contain a slash."Marton Balint2019-05-18
| | | | | | | | | | | | | | | | This reverts commit dd06f022b07438d650c82255dff16908ba04244a. Fixes ticket #7871 and reopens ticket #7816. The introduced regression caused URL's with @ in them to be parsed incorrectly which is a bigger issue then not being able to specify the slash character as a password. I think there are better ways to fix the original issue, like being able to specify HTTP username and password as a protocol option, or adding a protocol option to percent-decode the URL first. Signed-off-by: Marton Balint <cus@passwd.hu>
* avfilter/vf_ocr: also export confidence of resultPaul B Mahol2019-05-17
|
* avcodec/options: remove dead test codeJames Almer2019-05-17
| | | | | | It's been unused since 5d48e4eafa6c4559683892b8638d10508125f3cf. Signed-off-by: James Almer <jamrial@gmail.com>
* doc/scaler: explain values for src_range, dst_rangeWerner Robitza2019-05-17
| | | | | | | | This fixes the description of the values for src_range and dst_range to include the possible values and their meanings. Signed-off-by: Werner Robitza <werner.robitza@gmail.com> Signed-off-by: Gyan Doshi <ffmpeg@gyani.pro>
* libavdevice/gdigrab: fix ffmpeg -devices doesn't show gdigrabJun Zhao2019-05-17
| | | | | | | | | | | missed the category AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT lead to ffmpeg -devices doesn't show gdigrab as a input device FIx #7848 Found-by: dangibson Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* doc/scaler: indicate some options as API only.Gyan Doshi2019-05-17
| | | | | srcw, srch, dstw, dsth, src_format and dst_format were blocked for CLI use in a0af9fd954 in order to fix ticket #4856
* avformat/dashenc: use 64bit for handling the return of avio_tell()Michael Niedermayer2019-05-17
| | | | | | | The return code is 64bit, so this is more correct, especially in case it actually would be a file of such large size Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* doc/filters: update URL for sr filter script repositorySteven Liu2019-05-17
| | | | | | | | | Because the Original repository author loss loss of communication, add new sr filter script repository. Thanks to Gyan Doshi for a suggestion. Signed-Off-By: Steven Liu <lq@chinaffmpeg.org>
* Revert "doc/filters: update URL for sr filter script repository"Steven Liu2019-05-17
| | | | This reverts commit c2771bbf815bd7d0ff273ba590b7db02a303399f.