Andreas Rheinhardt
a04ad248a0
avfilter: Constify all AVFilters
...
This is possible now that the next-API is gone.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2021-04-27 11:48:05 -03:00
Andreas Rheinhardt
2ae73b74bb
avfilter/vf_nnedi: Fix use of uninitialized value
...
Fixes Coverity issue #1473546 .
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
2021-03-10 21:00:21 +01:00
Andreas Rheinhardt
2bcec40cce
avfilter/vf_nnedi: Fix segfault when prescreening is disabled
...
Since c737f6edce prescreening is
nevertheless run because of a wrong check: "if (s->prescreen > 0)".
s->prescreen is an array of two function pointers that is contained in
the context and comparing it with 0 (i.e. NULL) is actually undefined
behaviour, because NULL and s->prescreen do not point to the same
object (NULL after all never points to any object). Nevertheless both
Clang as well as GCC compile this to code that treat s->prescreen > 0 as
true, leading to segfaults, because the code then tries to access the
-1th member of an array.
This commit fixes the check as well as another such check a few lines
below.
(Found via compiler warnings enabled by -pedantic:
"ordered comparison between pointer and zero is an extension".)
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
2021-01-24 22:37:55 +01:00
Paul B Mahol
24dc6d386c
avfilter/vf_nnedi: fix memleak at eof and simplify frame handling
2021-01-20 13:39:59 +01:00
Paul B Mahol
1dc71cf64e
avfilter/vf_nnedi: small improvements
2021-01-20 13:39:59 +01:00
Paul B Mahol
f359575c0b
avfilter/vf_nnedi: unbreak nsize=0:nns=0 output
2021-01-19 20:37:37 +01:00
Paul B Mahol
c737f6edce
avfilter/vf_nnedi: simplify code even more
2021-01-19 20:37:37 +01:00
Paul B Mahol
553eb07737
avfilter/vf_nnedi: small cleanups
2021-01-19 14:59:05 +01:00
Paul B Mahol
f3f5ba0bf8
avfilter/vf_nnedi: fix some compilation errors and warnings
2021-01-19 12:15:07 +01:00
Paul B Mahol
117bf7394f
avfilter/vf_nnedi: rewrite and cleanup code
...
Also add slice threading support.
Also add support for >8 depth formats.
Also add support for commands.
2021-01-18 14:05:51 +01:00
Paul B Mahol
376c61c61b
avfilter/vf_nnedi: use av_fopen_utf8()
2020-09-07 19:13:19 +02:00
Paul B Mahol
5b4010e886
avfilter/vf_nnedi: fix possible double free
2019-10-07 11:15:44 +02:00
Carl Eugen Hoyos
37afeabd1b
lavfi/nnedi: Fix a compilation warning.
...
Silences the following warning:
libavfilter/vf_nnedi.c:611:15: warning: assignment discards ‘const’ qualifier from pointer target type
2016-02-23 00:21:49 +01:00
Carl Eugen Hoyos
44cf5b41d3
lavfi/nnedi: Fix a memleak.
2016-02-23 00:19:11 +01:00
Michael Niedermayer
ac3a275d1e
avfilter/vf_nnedi: Simplify away some trivial mem*()
...
Reviewed-by: James Almer <jamrial@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-02-11 02:20:29 +01:00
Michael Niedermayer
674cc26f25
avfilter/vf_nnedi: Fix memleak
...
Fixes CID1351359
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-02-10 01:00:08 +01:00
Paul B Mahol
c1b23e158c
avfilter/vf_nnedi: fix ISO C90 warnings
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2016-02-03 09:38:11 +01:00
Paul B Mahol
79991b2288
avfilter: add nnedi filter
...
Port of nnedi3 vapoursynth filter.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2016-02-01 13:16:15 +01:00