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
Paul B Mahol
9bd1bf382e
avfilter/f_interleave: check ff_insert_inpad() for failure
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
f39136b0a7
avfilter/af_merge: check ff_insert_inpad() for failure
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
db5604ac26
avfilter/af_join: check ff_insert_inpad() for failure
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
13f9639e3e
avfilter/af_headphone: check ff_insert_inpad() for failure
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
1e7ce6d925
avfilter/af_amix: check ff_insert_inpad() for failure
7 years ago
Paul B Mahol
4b96fd2b1e
avfilter/af_agate: switch to activate
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Muhammad Faiz
e0e991f8a1
avfilter/af_firequalizer: reindent after previous commit
...
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
7 years ago
Muhammad Faiz
ae1ce0db91
avfilter/af_firequalizer: add min_phase option
...
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
7 years ago
James Almer
e51073fe00
checkasm/vf_blend: rename addition128 and difference128 to grainmerge and grainextract
...
This was missing from f8d0689d3f
.
Fixes checkasm.
7 years ago
Alex Converse
cb96e9bea4
fate: add test vector aac-al04sf_48
7 years ago
Paul B Mahol
dbc9a8f21f
avcodec/aac: Add floating point 960/120 MDCT window
...
Co-Authored-By: Alex Converse <alex.converse@gmail.com>
Co-Authored-By: Rostislav Pehlivanov <atomnuker@gmail.com>
7 years ago