Anton Khirnov
6599b087de
buffersrc: fix a typo.
Vertical shift is log2_chroma_h, not log2_chroma_w.
13 years ago
Anton Khirnov
c977039e58
lavc, lavfi: fix counting number of planes in AVBufferRef wrappers
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.
13 years ago
Anton Khirnov
6552808014
lavc,lavfi: fix calculating the plane size in the AVBufferRef wrappers
It is supposed to be height * linesize, not width * linesize.
Thanks to Hendrik Leppkes for pointing out the bug.
13 years ago
Anton Khirnov
4750b05d67
af_join: do not leak input frames.
13 years ago
Anton Khirnov
c2b9bd97f5
asrc_anullsrc: return EOF, not -1
13 years ago
Anton Khirnov
f4281f4571
asrc_anullsrc: do not set samplerate and channel layout explicitly
They are auto-negotiated.
13 years ago
Anton Khirnov
e4a7b2177d
vf_showinfo: remove its useless init function
Filter private data is memset to 0 so there is no point in explicitly
initing anything to 0.
13 years ago
Anton Khirnov
dd74e3ef33
avfiltergraph: use sizeof(var) instead of sizeof(type)
13 years ago
Anton Khirnov
42c7c61ab2
avfiltergraph: replace AVFilterGraph.filter_count with nb_filters
This is more consistent with the naming in the rest of Libav.
13 years ago
Anton Khirnov
556aab8f11
lavfi: use designated initializers in avfilter_class
13 years ago
Loren Merritt
5b3c1aecb2
hqdn3d: Fix out of array read in LOWPASS
CC:libav-stable@libav.org
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Anton Khirnov
d0a863ac89
vf_hqdn3d: fix uninitialized variable use
CC:libav-stable@libav.org
13 years ago
Anton Khirnov
887d31d455
vf_gradfun: fix uninitialized variable use
CC:libav-stable@libav.org
13 years ago
Xi Wang
5d639b2b4a
vf_pad: fix a & instead of && typo
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>
13 years ago
Anton Khirnov
0651e892e1
Replace remaining includes of audioconvert.h with channel_layout.h
13 years ago
Anton Khirnov
d8b31be6ca
Add the bumps and APIchanges entries for reference counted buffers changes.
13 years ago
Anton Khirnov
7e350379f8
lavfi: switch to AVFrame.
Deprecate AVFilterBuffer/AVFilterBufferRef and everything related to it
and use AVFrame instead.
13 years ago
Reimar Döffinger
efa7f42020
Use the avstring.h locale-independent character type functions
Make sure the behavior does not change with the locale.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Justin Ruggles
9f1223562e
lavfi: connect libavresample options to af_resample via AVFilterGraph
13 years ago
Anton Khirnov
64ed397635
vf_yadif: fix out-of line reads
Some changes in the border pixels, visually indistinguishable.
13 years ago
Anton Khirnov
ccd70d9c16
vf_yadif: factorize initializing the filtering callbacks
Do it all in config_props().
13 years ago
Anton Khirnov
99162f8d46
vf_yadif: silence a warning.
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)'
13 years ago
Diego Biurrun
e66240f22e
avfilter: x86: consistent filenames for filter optimizations
13 years ago
Diego Biurrun
76d90125cd
vf_hqdn3d: x86: Add proper arch optimization initialization
13 years ago
Anton Khirnov
7194330bcd
vf_delogo: fix copying the input frame.
CC:libav-stable@libav.org
13 years ago
Anton Khirnov
f81c37e40f
vf_delogo: fix an uninitialized read.
CC:libav-stable@libav.org
13 years ago
Vladimir Pantelic
0b55b16abc
avfilter: allow setpts filter to use wallclock time for calculations
Signed-off-by: Vladimir Pantelic <vladoman@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Justin Ruggles
23098bbd50
vf_fps: add final flushed frames to the dropped frame count
13 years ago
Daniel Kang
67360ccd51
yadif: x86: fix build for compilers without aligned stack
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>
13 years ago
Daniel Kang
899157b308
yadif: Port inline assembly to yasm
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Diego Biurrun
bcb8d9eb8f
Drop unnecessary 'l' length modifier when printfing double values.
%f denotes a double argument and 'l' does nothing in this case
according to the C spec.
13 years ago
Diego Biurrun
c73c87b412
cosmetics: Prettyprint codec/format/filter registration files
13 years ago
Diego Biurrun
69583bd3b1
avfilter: Refactor unconditional filter registration
13 years ago
Diego Biurrun
5af53731d9
avfilter: Compile FIFO filters unconditionally
Building libavfilter without that functionality makes little sense.
13 years ago
Diego Biurrun
69f086e0f9
build: avfilter: Remove duplicate compilation entry for vf_scale
vf_scale should not be unconditionally compiled even if disabled.
13 years ago
Justin Ruggles
4e5a8878d5
asyncts: ignore min_delta only if first_pts is set
13 years ago
Justin Ruggles
c0dc57f126
asyncts: merge two conditions
13 years ago
Justin Ruggles
0ee440fe38
asyncts: cosmetics: reindent
13 years ago
Justin Ruggles
c143de40c3
asyncts: fix the asyncts behavior when using the first_pts option
Currently it will do padding, but it does not properly handle
start-of-stream trimming as documented.
13 years ago
Justin Ruggles
8083332c2d
asyncts: use clipped delta value when setting resample compensation
The max_comp option is supposed to limit maximum compensation, but
currently the clipped value is not actually used.
13 years ago
Justin Ruggles
f266486b2e
asyncts: fix flushing of final samples at EOF
13 years ago
Justin Ruggles
b30a363331
x86: af_volume: add SSE2/SSSE3/AVX-optimized s32 volume scaling
13 years ago
Justin Ruggles
f96f1e06a4
x86: af_volume: add SSE2-optimized s16 volume scaling
13 years ago
Justin Ruggles
b384e031da
lavfi: add volume filter
Based on the volume filter in FFmpeg written by Stefano Sabatini
<stefasab@gmail.com>.
13 years ago
Anton Khirnov
cb45553f57
Remove pointless #undefs of previously forbidden functions.
13 years ago
Anton Khirnov
4c973de9a5
vf_fieldorder: require write permissions
This filter modifies the input frame.
13 years ago
Anton Khirnov
49dd71a6f1
vf_fieldorder: reindent
13 years ago
Anton Khirnov
565e4993c6
lavfi: merge start_frame/draw_slice/end_frame
Any alleged performance benefits gained from the split are purely
mythological and do not justify added code complexity.
13 years ago
Anton Khirnov
bb6c67bb36
lavfi: remove vf_slicify
The following commit will make it useless.
The crop_scale_vflip FATE test changes because of off-by-one differences
in output when vflipped slices are passed to sws.
13 years ago
Anton Khirnov
af7d13ee4a
asink_nullsink: plug a memory leak.
13 years ago