Nicolas George
f8d7b5febb
lavfi: add a preinit callback to filters.
...
It is necessary for filters with child objects, to set the class
and default options values.
7 years ago
Nicolas George
19804024d5
lavfi/vf_overlay: move to framesync2.
7 years ago
Nicolas George
0ae8df4109
lavfi/framesync2: add dualinput helper functions.
7 years ago
Nicolas George
6bde475cf2
lavfi/f_streamselect: convert to framesync2.
7 years ago
James Almer
95a6de5674
avcodec/snowenc: fix setting motion_est option
...
Remove usage of FF_MPV_COMMON_OPTS, and set SnowContext.motion_est directly.
Based on code from svq1enc.c
Signed-off-by: James Almer <jamrial@gmail.com>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Carl Eugen Hoyos
d4fbe99dab
lavf/dump: Remove superfluous cast.
7 years ago
Mark Thompson
b264810ef7
hevc: Add names for reserved NAL unit types
...
While not yet used, these NAL units do already have some defined
semantics and are referred to elsewhere.
(cherry picked from commit 3daaa44173
)
7 years ago
Jun Zhao
e4a6eb70f4
lavc/vaapi_encode: Change the slice/parameter buffers to dynamic alloc.
...
Change the slice/parameter buffers to be allocated dynamically.
Signed-off-by: Wang, Yi A <yi.a.wang@intel.com>
Signed-off-by: Jun Zhao <jun.zhao@intel.com>
Signed-off-by: Mark Thompson <sw@jkqxz.net>
7 years ago
Jun Zhao
385cafb07a
lavc/vaapi_encode_h265: Enable VBR mode
...
Follow vaapi_h264 style, enable the VBR mode.
Signed-off-by: Jun Zhao <jun.zhao@intel.com>
Signed-off-by: Mark Thompson <sw@jkqxz.net>
7 years ago
Timo Rothenpieler
ef0c6d9b01
libavutil/opencl: fix potential null dereference
...
Fixes CID 1396840
Reviewed-by: Wei Gao <highgod0401@gmail.com>
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
7 years ago
Michael Niedermayer
aa26258faa
avfilter/vf_zoompan: remove AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
...
Suggested-by: <durandal_1707>
Fixes: assertion failure
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Michael Niedermayer
0181b202cc
avcodec/aacpsdsp_template: Fix undefined integer overflow in ps_add_squares_c()
...
Fixes runtime error: signed integer overflow: 1997494407 + 613252359 cannot be represented in type 'int'
Fixes: 2014/clusterfuzz-testcase-minimized-5186337030275072
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Michael Niedermayer
eefb68c9c3
avcodec/sbrdsp_fixed: Fix undefined overflows in autocorrelate()
...
Fixes: runtime error: signed integer overflow: 8903997421129740175 + 354481484684609529 cannot be represented in type 'long'
Fixes: 2045/clusterfuzz-testcase-minimized-6751255865065472
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Michael Niedermayer
4f05e2e2dc
avformat/mvdec: Fix DoS due to lack of eof check
...
Fixes: loop.mv
Found-by: Xiaohei and Wangchu from Alibaba Security Team
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
孙浩 and 张洪亮(望初)
96f24d1bee
avformat/rl2: Fix DoS due to lack of eof check
...
Fixes: loop.rl2
Found-by: Xiaohei and Wangchu from Alibaba Security Team
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
孙浩 and 张洪亮(望初)
124eb202e7
avformat/rmdec: Fix DoS due to lack of eof check
...
Fixes: loop.ivr
Found-by: Xiaohei and Wangchu from Alibaba Security Team
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
孙浩 and 张洪亮(望初)
7e80b63ecd
avformat/cinedec: Fix DoS due to lack of eof check
...
Fixes: loop.cine
Found-by: Xiaohei and Wangchu from Alibaba Security Team
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
孙浩 and 张洪亮(望初)
7f9ec5593e
avformat/asfdec: Fix DoS due to lack of eof check
...
Fixes: loop.asf
Found-by: Xiaohei and Wangchu from Alibaba Security Team
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Michael Niedermayer
7ec414892d
avformat/hls: Fix DoS due to infinite loop
...
Fixes: loop.m3u
The default max iteration count of 1000 is arbitrary and ideas for a better solution are welcome
Found-by: Xiaohei and Wangchu from Alibaba Security Team
Previous version reviewed-by: Steven Liu <lingjiujianke@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Maksym Veremeyenko
2634927fe3
lavd: implement NewTek NDI input/output device support
...
Signed-off-by: Marton Balint <cus@passwd.hu>
7 years ago
pkviet
84ee6512ed
avdevice/decklink_enc: enable 16 output channel
...
Decklink devices can output 2, 8 or 16 audio channels along video.
The code was limited to 2 or 8 channels. The commit enables 16 audio
channels (relevant for SDI outputs).
Signed-off-by: Marton Balint <cus@passwd.hu>
7 years ago
Marton Balint
76a8b5e7ad
avdevice/decklink_dec: fix signed and unsigned comparison warning
...
Signed-off-by: Marton Balint <cus@passwd.hu>
7 years ago
Paul B Mahol
bf39f7eadc
avfilter/vf_zoompan: parse zoom,x and y expression during initialization
...
Fixes #6127 .
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
2ce43274e3
avfilter/vf_zoompan: switch to activate
...
Fixes #5182 .
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
99b6e68441
avfilter/af_amix: do not request samples if inlink reached EOF
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
James Almer
257f0d09f7
avcoec/snowenc: silence some deprecation warnings
7 years ago
Martin Vignali
435dd2ee4e
configure: add avx2 enabled log
...
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
Paul B Mahol
7f5c655833
avfilter/af_amix: simplify const entries for duration in amix_options[]
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
15e9c4afdc
avfilter/af_amix: switch to activate
...
Really fixes hangs and infinite loops.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
473e18fdba
doc/filters: improve pseudocolor example
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Carl Eugen Hoyos
094d4d8691
lavc/sinewin_tablegen: Fix compilation with --enable-hardcoded-tables.
...
Reported by irc user JCount_.
7 years ago
Carl Eugen Hoyos
1c56becb9b
lavc/utils: Calculate frame duration for little-endian G.726.
7 years ago
Carl Eugen Hoyos
9d494c5e55
lavf/rawenc: Add little- and big-endian G.726 muxers.
7 years ago
Paul B Mahol
9d6aab6fa1
avfilter/af_surround: make volume configurable for front center and lfe channel
7 years ago
pkviet
e0436ddaa4
ffmpeg options: Enable trailing ? for map_channel
...
The -map option allows for a trailing ? so that an error is not thrown if
the input stream does not exist.
This capability is extended to the map_channel option.
This allows a ffmpeg command not to break if an input channel does not
exist, which can be of use (for instance, scripts processing audio
channels with sources having unset number of audio channels).
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Michael Niedermayer
7c10068da1
avcodec/dvbsubdec: Check for duplicate regions in dvbsub_parse_page_segment()
...
Fixes: OOM
Fixes: 3051/clusterfuzz-testcase-minimized-5745818336231424
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
James Almer
8a0954dd51
avcodec: add missing FF_API_DEBUG_MV wrappers
...
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
James Almer
2c800eb737
avcodec: make the avcodec_get_chroma_sub_sample deprecation effective
...
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
7 years ago
Derek Buitenhuis
add7b3bc3f
utils: Do not expand a macro with 'defined' in it
...
Fixes:
libswscale/utils.c:1632:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if USE_MMAP
^
libswscale/utils.c:1577:49: note: expanded from macro 'USE_MMAP'
#define USE_MMAP (HAVE_MMAP && HAVE_MPROTECT && defined MAP_ANONYMOUS)
^
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
7 years ago
Derek Buitenhuis
9e02f35f6a
mjpeg: Add support for ICC side data
...
JPEGs store embedded profiles under the APP2 marker, signified
with a "ICC_PROFILE" null-terminated string header, and can be
split across multiple APP2 markers, out of order.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
7 years ago
Paul B Mahol
71907f2509
doc/filters: add pseudocolor example
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Muhammad Faiz
3ddd10290a
avfilter/af_firequalizer: fix minval on cepstrum calculation
...
The impulse response is scaled with 2/rdft_len.
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
7 years ago
Paul B Mahol
48ddd8ddec
avfilter/src_movie: check ff_insert_outpad() for failure
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
5e706a2afb
avfilter/split: check ff_insert_outpad() for failure
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
0b940c95b2
avfilter/vf_decimate: check ff_insert_inpad() for failure
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
dfea94ce99
avfilter/vf_fieldmatch: check ff_insert_inpad() for failure
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
1a58da434a
avfilter/avf_concat: check ff_insert_pad() for failure
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
01b986cf18
avfilter/f_select: check ff_insert_outpad() for failure
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
730734d4f3
avfilter/af_channelsplit: check ff_insert_outpad() for failure
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
99dd47a647
avfilter/vf_extractplanes: check ff_insert_outpad() for failure
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago