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
2022-04-07avfilter/vf_neighbor: check if width is 1Paul B Mahol
Fixes #8242 (cherry picked from commit e787f8fd7ee99ba0c3e0f086ce2ce59eea7ed86c)
2021-10-07avfilter/scale_npp: fix non-aligned output frame dimensionsTimo Rothenpieler
2021-10-06avfilter/af_drmeter: Check that there is dataMichael Niedermayer
Fixes: floating point division by 0 Fixes: -nan is outside the range of representable values of type 'int' Fixes: Ticket8307 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 4f49fa6abe89e2fca2585cac4c63190315972cf0) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2021-10-06avfilter/vf_mestimate: Check b_countMichael Niedermayer
Fixes: left shift of negative value -1 Fixes: Ticket8270 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 06af6e101bbd04e8ecc5337bc3b6894a5e058e14) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2021-10-06avfilter/vf_dctdnoiz: Check threadsMichael Niedermayer
Fixes: floating point division by 0 Fixes: Ticket 8269 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 4a3917c02c428b11128ac3d4a01b780ea44aa53c) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2021-10-06avfilter/vf_ciescope: Fix undefined behavior in rgb_to_xy() with blackMichael Niedermayer
Fixes: floating point division by 0 Fixes: undefined behavior in handling NaN Fixes: Ticket 8268 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 3d500e62f6206ad11308b18976246366aed8c1a5) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2021-10-06avfilter/vf_yadif: Fix handing of tiny imagesMichael Niedermayer
Fixes: out of array access Fixes: Ticket8240 Fixes: CVE-2020-22021 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 7971f62120a55c141ec437aa3f0bacc1c1a3526b) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2021-10-06avfilter/vf_vmafmotion: Check dimensionsMichael Niedermayer
Fixes: out of array access Fixes: Ticket8241 Fixes: Ticket8246 Fixes: CVE-2020-22019 Fixes: CVE-2020-22033 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 82ad1b76751bcfad5005440db48c46a4de5d6f02) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2021-09-10avfilter/vf_scale: Fix adding 0 to NULL (which is UB) in scale_slice()Michael Niedermayer
Found-by: Jeremy Leconte <jleconte@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 1cf96ce269364e3c2b4ec2097f121ad42b336839) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-05-20avfilter/vf_dedot: Fix leak of AVFrame if making it writable failsAndreas Rheinhardt
Even in this scenario, the frame still contains references to data that won't be freed if the frame isn't unreferenced. And the AVFrame itself will leak, too. Fixes Coverity issue #1441422. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 212077eda46c4c3eb644774d2b1ccbeb3e322fff)
2020-05-20avfilter/vf_paletteuse: Fix potential double-free of AVFrameAndreas Rheinhardt
apply_palette() would free an AVFrame given to it only via an AVFrame * (and not via AVFrame **) in three of its four exists (namely in the normal path and in two error paths). So upon error the caller has no way to know whether the frame has already been freed or not; load_apply_palette(), the only caller, opted to free the frame in this scenario. This commit changes this by making apply_palette not freeing the frame at all, which is left to load_apply_palette(). Fixes Coverity issue #1452434. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit adea33f46513821c111c602a0692b78315688c1b)
2020-05-20avfilter/vf_xbr: Fix left shift of negative numberAndreas Rheinhardt
Affected every usage of vf_xbr, e.g. the FATE-tests filter-2xbr, filter-3xbr, filter-4xbr. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 4294dc3589a3ab973b10a85b576ff15e3ffb000d)
2020-05-20avfilter/vf_hqx: Fix undefined left shifts of negative numbersAndreas Rheinhardt
Affected every usage of this filter; in particular, it affected the FATE-tests filter-2xbr, filter-3xbr and filter-4xbr. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit fa211943265ca991548a4cc2f85a6df9cedcd092)
2020-05-20avfilter/vf_unsharp: Don't dereference NULLAndreas Rheinhardt
The unsharp filter uses an array of arrays of uint32_t, each of which is separately allocated. These arrays also need to freed separately; but before doing so, one needs to check whether the array of arrays has actually been allocated, otherwise one would dereference a NULL pointer. This fixes #8408. Furthermore, the array of arrays needs to be zero-initialized so that no uninitialized pointer will be freed in case an allocation of one of the individual arrays fails. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 710ab136931ff228b355d87512b0d4ca4e94656a)
2020-05-19avfilter/vf_aspect: Fix integer overflow in compute_dar()Michael Niedermayer
Fixes: signed integer overflow: 1562273630 * 17 cannot be represented in type 'int' Fixes: Ticket8323 Found-by: Suhwan Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 0c0ca0f244b823238e5a4f5584168e620da84899) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-05-19avfilter/vf_find_rect: Remove assertMichael Niedermayer
A score of 0 is possible Fixes: Ticket8500 Reviewed-by: Paul B Mahol <onemda@gmail.com> Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit dfc471488675aa257183745502d0074055db3bd2) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-05-19avfilter/vf_find_rect: Increase worst case scoreMichael Niedermayer
score could be 1.0 which lead to uninitialized values Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 6ff2474e02200dce7abdea3fd211fcaf49691c2c) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-12-31avfilter/vf_geq: Use av_clipd() instead of av_clipf()Michael Niedermayer
With floats we cannot represent all 32bit integer dimensions Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit c8813b1a984714f0027cabeea2394035df20cf38) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-07-30lavfi/vf_thumbnail_cuda: fix operator precedence bugRodger Combs
Discovered via a warning when building with clang Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
2019-07-21Bump minor versions to separate 4.2 from masterMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-07-21lavfi/showinfo: support regions of interest sidedataJun Zhao
support regions of interest sidedata Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
2019-07-14avfilter/vf_hysteresis: use time_base from framesyncPaul B Mahol
Fixes non-monotonous timestamps.
2019-07-14avfilter/vf_remap: add option to control output formatPaul B Mahol
2019-07-14avfilter/vf_remap: use time_base from framesyncPaul B Mahol
Fixes non-monotonous timestamps.
2019-07-14avfilter/vf_displace: use time_base from framesyncPaul B Mahol
Fixes non-monotonous timestamps.
2019-07-14avfilter/vf_midequalizer: always use framesync timestampsPaul B Mahol
2019-07-14avfilter/vf_maskedmerge: always use framesync timestampsPaul B Mahol
2019-07-14avfilter/vf_threshold: use time_base from framesyncPaul B Mahol
Fixes non-monotonous timestamps.
2019-07-14avfilter/vf_blend: add 9bit supportPaul B Mahol
2019-07-13avfilter/af_aiir: calculate group delay tooPaul B Mahol
2019-07-13avfilter/af_aiir: do not ignore k option for audio filteringPaul B Mahol
Previously it was used only for displaying frequency response.
2019-07-10avfilter/avf_showfreqs: make selecting window size simplerPaul B Mahol
The previous solution was very bad.
2019-07-10avfilter/af_afftfilt: make selecting window size simplerPaul B Mahol
Next step after this one will be adding support for more window sizes.
2019-07-08avfilter/vf_readeia608: implement lowpass operation prior to processing linesPaul B Mahol
2019-07-08avfilter/vf_tinterlace: re-enable lowpass optionPaul B Mahol
2019-07-08avfilter/af_aiir: implement mix optionPaul B Mahol
2019-07-08avfilter/af_biquads: clip gain picked from command to sane valuesPaul B Mahol
2019-07-08avfilter/af_biquads: implement mix option to all filtersPaul B Mahol
2019-07-07vf_drawtext: Add pkt_pos, pkt_duration, pkt_size as variablesCalvin Walton
Changes to vf_drawtext.c written by Calvin Walton <calvin.walton@kepstin.ca> Changes to filters.texi written by greg Luce <electron.rotoscope@gmail.com> with lots of help from Moritz Barsnick and Gyan Fixes #7947.
2019-07-06avfilter/af_afftfilt: remove invalid scalingPaul B Mahol
2019-07-06lavfi/scale: Add sub-options for in_color_matrix/out_color_matrixJun Zhao
Add sub-options for in_color_matrix/out_color_matrix Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
2019-07-05avfilter/vf_lut: fix regression with >8bit planar filteringPaul B Mahol
2019-07-03libavfilter/vf_colorspace.c: fix demarcation point of gamma linearize functionYonglin Luo
The linearize function (usually refered to EOTF) is the inverse of delinearize function (usually referred to OETF). Demarcation point of EOTF should be beta*delta, but the actual value used now in the source code is beta. For ITU Rec.709, they are 0.081 (0.018*4.5) and 0.018 respectively (beta = 0.018 and delta = 4.5), and they correspond to pixel value 5 and 21 for an 8-bit image. Linearized result of pixel within that range (5-21) will be different, but this commit will make linearize function of the filter more accurate in the mathematical sense. Signed-off-by: Yonglin Luo <vincenluo@tencent.com> Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
2019-07-03avfilter/vf_lut2: use time_base from framesyncPaul B Mahol
Fixes non-monotonous timestamps.
2019-07-03avfilter/vf_midequalizer: use time_base from framesyncPaul B Mahol
Fixes non-monotonous timestamps.
2019-07-03avfilter/vf_blend: use time_base from framesyncPaul B Mahol
Fixes non-monotonous timestamps.
2019-07-03avfilter/vf_maskedclamp: use time_base from framesyncPaul B Mahol
Fixes non-monotonous timestamps.
2019-07-03avfilter/vf_maskedmerge: use time_base from framesyncPaul B Mahol
Fixes non-monotonous timestamps.
2019-07-03avfilter/af_deesser: remove extra ;Paul B Mahol
2019-07-02avfilter: add deesser audio filterPaul B Mahol