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
AgeCommit message (Collapse)Author
2021-02-10libavutil/eval: Remove CONFIG_TRAPV special handlingMichael Niedermayer
Fixes: division by zero Fixes: 29555/clusterfuzz-testcase-minimized-ffmpeg_dem_VIVO_fuzzer-5149951447400448 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2021-01-12avutil/eval: Unconditionally check argument of e_divMichael Niedermayer
Fixes: division by zero Fixes: 26451/clusterfuzz-testcase-minimized-ffmpeg_dem_VIVO_fuzzer-4756955832516608 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-12-28avutil/eval: Add av_expr_count_func() similar to av_expr_count_vars()Michael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-11-17avutil/eval: add function to track variable useGyan Doshi
1)Some filters allow cross-referenced expressions e.g. x=y+10. In such cases, filters evaluate expressions multiple times for successful evaluation of all expressions. If the expression for one or more variables contains a RNG, the result may vary across evaluation leading to inconsistent values across the cross-referenced expressions. 2)A related case is circular expressions e.g. x=y+10 and y=x+10 which cannot be succesfully resolved. 3)Certain filter variables may only be applicable in specific eval modes and lead to a failure of evaluation in other modes e.g. pts is only relevant for frame eval mode. At present, there is no reliable means to identify these occurrences and thus the error messages provided are broad or inaccurate. The helper function introduced - av_expr_count_vars - allows developers to identify the use and count of variables in expressions and thus tailor the error message, allow for a graceful fallback and/or decide evaluation order.
2019-10-12avutil/eval: add sgn()Paul B Mahol
2017-11-02Merge commit '97cfe1d8bd1968143e2ba9aa46ebe9504a835e24'James Almer
* commit '97cfe1d8bd1968143e2ba9aa46ebe9504a835e24': Convert all AVClass struct declarations to designated initializers. Merged-by: James Almer <jamrial@gmail.com>
2017-08-19avutil/eval: add linear interpolation helperPaul B Mahol
2017-06-12Convert all AVClass struct declarations to designated initializers.Diego Biurrun
2017-06-06libavutil/eval: Add round function to expression parserKevin Mark
We have floor, ceil, and trunc. Let's add round. Signed-off-by: Kevin Mark <kmark937@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-01-30avutil/eval: add atan2 functionPaul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-01-13avutil/reverse: move the ff_reverse declaration to a separate headerJames Almer
Fixes compilation with hardcoded tables after eaff1aa09e90e2711207c9463db8bf8e8dec8178 and e71b8119e7db675dd2dac3f7fb069b0df2943c38 Reviewed-by: Timo Rothenpieler <timo@rothenpieler.org> Signed-off-by: James Almer <jamrial@gmail.com>
2016-05-11Merge commit 'd12b5b2f135aade4099f4b26b0fe678656158c13'Derek Buitenhuis
* commit 'd12b5b2f135aade4099f4b26b0fe678656158c13': build: Split test programs off into separate files Some conversions done by: James Almer <jamrial@gmail.com> Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-04-07build: Split test programs off into separate filesDiego Biurrun
This avoids spurious library rebuilds when only the test program code is changed and simplifies the build system.
2016-03-22all: move ff_exp10, ff_exp10f, ff_fast_powf to lavu/ffmath.hGanesh Ajjanagadde
The idea is to use ffmath.h for internal implementations of math functions. Currently, it is used for variants of libm functions, but is by no means limited to such things. Note that this is not exported; use lavu/mathematics for such purposes. Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanag@gmail.com>
2015-12-25lavu/eval: replace pow(10,x) by ff_exp10(x)Ganesh Ajjanagadde
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2015-12-16lavu/eval: remove pow and exp2 for postfixesGanesh Ajjanagadde
These postfixes can be computed statically, and there is no need to waste runtime resources. Tested with FATE. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2015-11-21avutil/eval: change sqrt to hypotGanesh Ajjanagadde
This improves the mathematical behavior of hypotenuse computation. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2015-08-12avutil: add ff_reverse as av_reverse replacementAndreas Cadhalpun
The table is used in libavutil/eval.c. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
2015-04-01avutil/eval: check for av_malloc failureMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-04-01avutil/eval: factor av_expr_free() calls outMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-08-15Merge commit 'f929ab0569ff31ed5a59b0b0adb7ce09df3fca39'Michael Niedermayer
* commit 'f929ab0569ff31ed5a59b0b0adb7ce09df3fca39': cosmetics: Write NULL pointer equality checks more compactly Conflicts: cmdutils.c ffmpeg_opt.c ffplay.c libavcodec/dvbsub.c libavcodec/dvdsubdec.c libavcodec/dvdsubenc.c libavcodec/dxa.c libavcodec/libxvid_rc.c libavcodec/mpegvideo.c libavcodec/mpegvideo_enc.c libavcodec/rv10.c libavcodec/tiffenc.c libavcodec/utils.c libavcodec/vc1dec.c libavcodec/zmbv.c libavdevice/v4l2.c libavformat/matroskadec.c libavformat/movenc.c libavformat/sdp.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
2014-08-15cosmetics: Write NULL pointer equality checks more compactlyGabriel Dume
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2014-07-21avutil: move QP2LAMBDA constant to evalMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-07-17lavu/eval: add clip functionStefano Sabatini
2014-01-26Merge commit 'fb0c9d41d685abb58575c5482ca33b8cd457c5ec'Michael Niedermayer
* commit 'fb0c9d41d685abb58575c5482ca33b8cd457c5ec': avutil: remove timer.h include from internal.h Conflicts: libavcodec/ffv1dec.c libavutil/internal.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
2014-01-26avutil: remove timer.h include from internal.hJanne Grunau
Added libavutil/timer.h include to all files with {START,STOP}_TIMER.
2013-07-28Merge commit '5b097399baa2e38cc513939cfab3a9b6fdbc33df'Michael Niedermayer
* commit '5b097399baa2e38cc513939cfab3a9b6fdbc33df': eval: Explicitly ignore return value of strtod() in parse_db() Conflicts: libavutil/eval.c See: 3cd9849d9c24b0808e6e55cd7568250acaae2b91 Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-07-27eval: Explicitly ignore return value of strtod() in parse_db()Diego Biurrun
The return value is not needed. This fixes the warning: libavutil/eval.c:353:15: warning: ignoring return value of ‘strtod’
2013-06-30Rename "AVClass class" as "AVClass component_class".Carl Eugen Hoyos
The aix header math.h defines "extern int class()" for C.
2013-04-10lavu/eval: rename "new_eval_expr()" to "make_eval_expr()"Stefano Sabatini
The new name is more semantically and stilistically consistent.
2013-03-22lavu/eval: add between() function.Clément Bœsch
2013-03-17lavu/eval: add bitor and bitand functionsStefano Sabatini
Warning note suggested by Reimar.
2013-03-07Use the avstring.h locale-independent character type functionsReimar Döffinger
Make sure the behavior does not change with the locale. Signed-off-by: Martin Storsjö <martin@martin.st>
2013-03-05lavu/eval: add native support to lte and lt functionsStefano Sabatini
2013-03-04Remove incorrect use of ctype.h functions.Reimar Döffinger
As far as I can tell the code should not change behaviour depending on locale in any of these places. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
2013-02-17fate: add print() to the tests of evalMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-02-17eval: print() supportMichael Niedermayer
This allows printing values via av_log from expressions. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-01-29eval: fix 'warning: ignoring return value of strtod, declared with attribute ↵Michael Niedermayer
warn_unused_result' Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-01-24lavu/eval: extend if/ifnot functions to accept a third parameterStefano Sabatini
Add support to an if/else construct, simplify logic in expressions.
2013-01-24eval: add function to access the current "wallclock" time.Michael Niedermayer
Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-01-03lavu/eval: handle div by zero in mod().Clément Bœsch
Similarly to 03f5043f5, we use the FTRAPV config setting.
2012-12-06Merge commit '9d5c62ba5b586c80af508b5914934b1c439f6652'Michael Niedermayer
* commit '9d5c62ba5b586c80af508b5914934b1c439f6652': lavu/opt: do not filter out the initial sign character except for flags eval: treat dB as decibels instead of decibytes float_dsp: add vector_dmul_scalar() to multiply a vector of doubles Conflicts: libavutil/eval.c tests/ref/fate/eval Merged-by: Michael Niedermayer <michaelni@gmx.at>
2012-12-05eval: treat dB as decibels instead of decibytesJustin Ruggles
2012-12-05Merge commit 'cb45553f577f8e0ebfe05d3287e1b6fa5859b967'Michael Niedermayer
* commit 'cb45553f577f8e0ebfe05d3287e1b6fa5859b967': Remove pointless #undefs of previously forbidden functions. fate: Add dependencies for bmp, cdxl, dfa, mp3 Conflicts: doc/examples/muxing.c libavfilter/filtfmts.c libavutil/des.c libavutil/eval.c libavutil/log.c libavutil/parseutils.c tests/fate/mp3.mak Merged-by: Michael Niedermayer <michaelni@gmx.at>
2012-12-05Remove pointless #undefs of previously forbidden functions.Anton Khirnov
2012-11-08lavu: remove disabled FF_API_OLD_EVAL_NAMES codeStefano Sabatini
2012-11-01eval-test: add some otherwise untested functions.Michael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-10-14Merge commit 'b5198a2637b7b45b0049a1d4b386a06f016f2520'Michael Niedermayer
* commit 'b5198a2637b7b45b0049a1d4b386a06f016f2520': configure: tms470: add mapping for -mfpu=vfpv3-d16 flag configure: recognise Minix as OS configure: work around bug in ash shell eval-test: make table static const lavr: handle clipping in the float to s32 conversion nut: support pcm codecs not mapped in avi Merged-by: Michael Niedermayer <michaelni@gmx.at>
2012-10-13eval-test: make table static constMans Rullgard
Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-10-09eval: Fix eval test with ftrapvMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>