| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Current code divides before increasing precision.
Also reduce upper bound for strength from 255 to 64. This will prevent
an overflow in the SSSE3 and MMX filter_line code: delta is expressed as
an u16 being shifted by 2 to the left. If it overflows, having a
strength not above 64 will make sure that m is set to 0 (making the
m*m*delta >> 14 expression void).
A value above 64 should not make any sense unless gradfun is used as
a blur filter.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
|
|
|
|
|
|
|
| |
First DC is only used once otherwise. This also makes the code
consistent with ASM versions.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch improves af_asyncts behavior on streams with bogus PTS, which
are either non-monotonic, or contain PTS jitter, and trigger the
non-monotonicity error. With this patch, af_asyncts is able to correct
these streams and avoid the error.
Firstly, it fixes resample compensation calculation by supplying proper
units to avresample_set_compensation (sample count per second instead
of sample count per some arbitrary frame size). Also, the calculation of
the compensation itself is fixed - delta is proportional to an adjustment
of the compensation, not the compensation itself. Ideally, the compensation
should converge to a value that keeps delta at zero.
To be able to deal with sources with PTS jitter even without resampling,
small PTS errors are adjusted, so the output frames do not overlap.
Finally, one more monotonicity check is added.
The FATE reference changes because now there is 8 less samples of
silence because of the pts jitter.
Signed-off-by: Jindřich Makovička <makovick@gmail.com>
|
|
|
|
| |
Vertical shift is log2_chroma_h, not log2_chroma_w.
|
|
|
|
|
|
| |
Number of planes is not always equal to the number of components even
for formats marked with PIX_FMT_PLANAR -- e.g. NV12 has three components
in two planes.
|
|
|
|
|
| |
It is supposed to be height * linesize, not width * linesize.
Thanks to Hendrik Leppkes for pointing out the bug.
|
| |
|
| |
|
|
|
|
| |
They are auto-negotiated.
|
|
|
|
|
| |
Filter private data is memset to 0 so there is no point in explicitly
initing anything to 0.
|
| |
|
|
|
|
| |
This is more consistent with the naming in the rest of Libav.
|
| |
|
|
|
|
|
| |
CC:libav-stable@libav.org
Signed-off-by: Anton Khirnov <anton@khirnov.net>
|
|
|
|
| |
CC:libav-stable@libav.org
|
|
|
|
| |
CC:libav-stable@libav.org
|
|
|
|
|
|
|
| |
Avoid buffer overflow in buffer_needs_copy()
Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
|
| |
|
| |
|
|
|
|
|
| |
Deprecate AVFilterBuffer/AVFilterBufferRef and everything related to it
and use AVFrame instead.
|
|
|
|
|
|
| |
Make sure the behavior does not change with the locale.
Signed-off-by: Martin Storsjö <martin@martin.st>
|
| |
|
|
|
|
| |
Some changes in the border pixels, visually indistinguishable.
|
|
|
|
| |
Do it all in config_props().
|
|
|
|
|
|
|
| |
clang says:
libavfilter/vf_yadif.c:192:28: warning: incompatible pointer types assigning to
'void (*)(uint8_t *, uint8_t *, uint8_t *, uint8_t *, int, int, int, int, int)'
from 'void (uint16_t *, uint16_t *, uint16_t *, uint16_t *, int, int, int, int, int)'
|
| |
|
| |
|
|
|
|
| |
CC:libav-stable@libav.org
|
|
|
|
| |
CC:libav-stable@libav.org
|
|
|
|
|
| |
Signed-off-by: Vladimir Pantelic <vladoman@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
|
| |
|
|
|
|
|
|
|
| |
Manually load registers to avoid using 8 registers on x86_32 with
compilers that do not align the stack (e.g. MSVC).
Signed-off-by: Diego Biurrun <diego@biurrun.de>
|
|
|
|
| |
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
|
|
|
|
|
| |
%f denotes a double argument and 'l' does nothing in this case
according to the C spec.
|
| |
|
| |
|
|
|
|
| |
Building libavfilter without that functionality makes little sense.
|
|
|
|
| |
vf_scale should not be unconditionally compiled even if disabled.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Currently it will do padding, but it does not properly handle
start-of-stream trimming as documented.
|
|
|
|
|
| |
The max_comp option is supposed to limit maximum compensation, but
currently the clipped value is not actually used.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Based on the volume filter in FFmpeg written by Stefano Sabatini
<stefasab@gmail.com>.
|
| |
|
|
|
|
| |
This filter modifies the input frame.
|
| |
|