Clément Bœsch
09f057170e
avfilter/vf_colormatrix: make sure the number of threads is even for yuv420p
...
Fix crash with for example:
ffmpeg -f lavfi -i testsrc=568x320 -threads 3 -vf format=yuv420p,colormatrix=bt709:smpte170m -f null -
10 years ago
Michael Niedermayer
6cd079a4e7
avfilter/vf_histeq: Change enums to int, which are accessed via AVOption as int
...
This fixes depending on implementation defined behavior
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
7363889771
avfilter/vf_fieldmatch: Change enums to int, which are accessed via AVOption as int
...
This fixes depending on implementation defined behavior
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
e6140e7822
avfilter/vf_field: Change enum to int, which is accessed via AVOption as int
...
This fixes depending on implementation defined behavior
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Clément Bœsch
fd682b1892
avfilter: handle error in query_formats() of a bunch of random video filters
10 years ago
Clément Bœsch
545b0dd6aa
avfilter/formats: proper error handling in ff_set_common_*() functions
10 years ago
Clément Bœsch
f861d9b2c6
avfilter/formats: proper error handling in ff_channel_layouts_ref() and ff_formats_ref()
...
Also make sure the allocation and its check are properly done.
10 years ago
Clément Bœsch
93d9ce7cec
avfilter/formats: use av_realloc_array in ADD_FORMAT()
10 years ago
Clément Bœsch
38fb183b12
avfilter/formats: remove unused COPY_INT_LIST() macro
...
This macro is unused since 247fa6c27c
.
10 years ago
Stefano Sabatini
83ee820a16
lavfi/sendcmd: improve error reporting and robustness in case of missing commands
...
In particular, fix crash with -vf sendcmd, when no arguments are provided.
10 years ago
Clément Bœsch
84da9339c2
avfilter/palettegen: make sure at least one frame was sent to the filter
...
Fix FPE.
10 years ago
Stefano Sabatini
6a63d0d826
lavfi/eq: clarify error message in case of expression parsing error
10 years ago
Vittorio Giovara
c3bd1d60af
formats: Check memory allocations
10 years ago
Yayoi
d5232d4717
avfilter/colormatrix:add slice threading
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Carl Eugen Hoyos
0637b59c2c
lavfi/boxblur: Fix colourpsace list.
...
Fixes ticket #4363 .
10 years ago
Ole Andre Birkedal
c8372f8001
avfilter/aeval: Fixed a memory leak in EvalContext::channel_values
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
3170b33e57
avfilter/vf_fftfilt: increase RDFT length by 10%
...
This fixes artifacts when the dimensions are exact powers of 2
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
fa7084a065
avfilter/vf_edgedetect: Change enums to int, which are accessed via AVOption as int
...
This fixes depending on implementation defined behavior
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
08880c1f71
avfilter/vf_curves: Change enums to int, which are accessed via AVOption as int
...
This fixes depending on implementation defined behavior
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
ee7b5d4ef8
avfilter/vf_drawtext: Change enums to int, which are accessed via AVOption as int
...
This fixes depending on implementation defined behavior
10 years ago
Paul B Mahol
0c49cff117
avfilter/af_astats: redo zero channel handling
...
Suggested-by: Nicolas George
Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years ago
Martin Vignali
65ba90eac6
avfilter/af_astats: Avoid Zero division in print part.
10 years ago
Arwa Arif
48b5be65ae
avfilter: Add FFT domain filter.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
6f51cb514b
avfilter/vf_colormatrix: Change enums to int, which are accessed via AVOption as int
...
This fixes depending on implementation defined behavior
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
b0662a943c
avfilter/f_perms: Change enums to int, which are accessed via AVOption as int
...
This fixes depending on implementation defined behavior
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
2a34b5099b
avfilter/avf_showwaves: Change enums to int, which are accessed via AVOption as int
...
This fixes depending on implementation defined behavior
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Himangi Saraogi
88b160a457
avfilter: Return more meaningful error codes
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
10 years ago
Clément Bœsch
1cded1f8d7
avfilter/vf_paletteuse: indent fix after 7ccc5848
10 years ago
Michael Niedermayer
7ccc584824
avfilter/vf_paletteuse: Use int where AVERROR can be returned
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Peter Cordes
44d3477264
vf_showinfo: minimum widths for some early fields
...
Depending on FPS, the pts_time string often changes length:
... pts_time:36.1 ...
... pts_time:36.1333 ...
etc.
The length changes make the output bounce around horribly, making it
hard to scan down a column farther right than pts_time.
The solution is to set minimum widths for n, pts, pts_time, and pos.
This patch doesn't touch any of the fields in mean / stddev.
The widths aren't intended to be wide enough that they're never
exceeded, but you'll see only an occasional ripple to a new alignment,
rather than bouncing. (Some fields, like pos, increase monotonically,
which is why I left the minimum width for the field be smaller than it
often gets to.)
Signed-off-by: Peter Cordes <peter@cordes.ca>
10 years ago
Clément Bœsch
f5cbb2c55e
avfilter/vf_tblend: use av_frame_free for freeing an AVFrame
10 years ago
Clément Bœsch
17cb05fe06
avfilter/lavfutils: use av_frame_free for freeing an AVFrame
10 years ago
Michael Niedermayer
34b13dbadf
avfilter/af_aphaser: Change type to int as its accessed as int via AVOptions
...
This fixes depending on implementation defined behavior
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
e8c1eb09c7
avfilter/af_biquads: Change width_type to int as its accessed as int via AVOptions
...
This fixes depending on implementation defined behavior
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
d545668e25
avfilter/af_volume: Change enums to int, which are accessed via AVOption as int
...
This fixes depending on implementation defined behavior
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
27a5d09c6a
avfilter/avf_avectorscope: Change enums to int, which are accessed via AVOption as int
...
This fixes depending on implementation defined behavior
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
7ff296be9f
avfilter/avf_showspectrum: Change enums to int, which are accessed via AVOption as int
...
This fixes depending on implementation defined behavior
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
047fd986bf
avfilter/vf_drawbox: Fix handling of max values
...
Fixes Ticket4332
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Gilles Chanteperdrix
dcf19008a6
avfilter/af_volume: fix precision=fixed and volume=0 case
...
When precision is fixed and volume is 0, filter_frame does not
perform any operation on the output buffer. This works if the
output buffer has been allocated and zeroed with ff_get_audio_buffer
but not if the input buffer is used as output buffer.
Fix this by not using the input buffer as output buffer if
precision is fixed and volume is 0.
Signed-off-by: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Clément Bœsch
3e0ae19f86
avfilter/palettegen: fix frame mem leak
10 years ago
Vittorio Giovara
43e5e3c077
colormatrix: Accept bt601 aliases as input
...
As far as matrix coefficients are concerned, BT470BG and SMPTE170M
match BT601. This is similar to the check performed in vf_scale.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
10 years ago
Clément Bœsch
4629993d99
avfilter/paletteuse: use AV_QSORT()
...
See previous commit for a rationale.
10 years ago
Clément Bœsch
321de03492
avfilter/palettegen: use AV_QSORT()
...
This makes the sorting of the colors along an axis (r, g or b)
predictible, and thus testable under FATE. The performance is not really
an issue here since the function is called only once at the end and will
need to sort very small number of entries, so an alternative would be to
make the sorting functions (see DECLARE_CMP_FUNC()) fallback on another
axis in case of equality. This approach was actually simpler.
I don't know if there is any advantage in using a multidimensional sort,
but it will affect the final palette one way or another.
10 years ago
Clément Bœsch
30f4e9d3d9
avfilter/palettegen: consistently use the same frame for dimensions
10 years ago
Clément Bœsch
4216968f85
avfilter/palettegen: use a logging context for the dupped color warning
10 years ago
Clément Bœsch
ab093bdeef
avfilter/palettegen: export color quantization ratio
10 years ago
Clément Bœsch
5c11f5b4a2
avfilter/palettegen: move longest variable to a local scope
...
Also drop initialization since it is initialized later on before any
usage.
10 years ago
Carl Eugen Hoyos
ab3ff19f08
lavfi/fade: Do not overread input buffer.
10 years ago
Clément Bœsch
c3d40e305c
avfilter/palette{gen,use}: add Copyright
10 years ago
Clément Bœsch
92b7f56193
avfilter/paletteuse: add diff_mode
10 years ago