summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* avcodec/aac: Add floating point 960/120 MDCT windowPaul B Mahol2017-08-24
| | | | | Co-Authored-By: Alex Converse <alex.converse@gmail.com> Co-Authored-By: Rostislav Pehlivanov <atomnuker@gmail.com>
* avfilter/af_sidechaincompress: switch to activatePaul B Mahol2017-08-24
|
* avfilter/vf_blend: rename addition128 and difference128 to grainmerge and ↵Paul B Mahol2017-08-24
| | | | grainextract
* lavf/g726: Demuxer for raw G.726 streams, both left- and right-justified.Carl Eugen Hoyos2017-08-24
| | | | | Compatible with the binary encoder attached to ticket #6596 (right-aligned) and a sample from a SEG Mp3-Player (left-aligned).
* lsws/rgb2rgb: Add unscaled 48bit to 64bit rgb conversion.Carl Eugen Hoyos2017-08-24
| | | | | | Based on b4befca2 and 6b7849e6 by Paul B Mahol. Fixes ticket #6608.
* ffprobe: Fix NULL pointer handling in color parameter printingMichael Niedermayer2017-08-24
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* ffprobe: Fix null pointer dereference with color primariesMichael Niedermayer2017-08-24
| | | | | Found-by: AD-lab of venustech Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/hevc_ps: Check delta_pocs in ff_hevc_decode_short_term_rps()Michael Niedermayer2017-08-24
| | | | | | | | Fixes: integer overflow Fixes: 2893/clusterfuzz-testcase-minimized-5809330567774208 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mov: Fix trampling of ctts during seeks when sidx support is enabled.Dale Curtis2017-08-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When sidx box support is enabled, the code will skip reading all trun boxes (each containing ctts entries for samples inthat box). If seeks are attempted before all ctts values are known, the old code would dump ctts entries into the wrong location. These are then used to compute pts values which leads to out of order and incorrectly timestamped packets. This patch fixes ctts processing by always using the index returned by av_add_index_entry() as the ctts_data index. When the index gains new entries old values are reshuffled as appropriate. This approach makes sense since the mov demuxer is already relying on the mapping of AVIndex entries to samples for correct demuxing. As a result of this all ctts entries are now 1-count. A followup change will be submitted to remove support for > 1 count entries which will simplify seeking. Notes for future improvement: Probably there are other boxes (stts, stsc, etc) that are impacted by this issue... this patch only attempts to fix ctts since it completely breaks packet timestamping. This patch continues using an array for the ctts data, which is not the most ideal given the rearrangement that needs to happen (via memmove as new entries are read in). Ideally AVIndex and the ctts data would be set-type structures so addition is always worst case O(lg(n)) instead of the O(n^2) that exists now; this slowdown is noticeable during seeks. Signed-off-by: Dale Curtis <dalecurtis@chromium.org> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/rtpdec_h264: Fix heap-buffer-overflowMichael Niedermayer2017-08-23
| | | | | | | Fixes: rtp_sdp/poc.sdp Found-by: Bingchang <l.bing.chang.bc@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/aviobuf: Fix signed integer overflow in avio_seek()Vitaly Buka2017-08-23
| | | | | | | | Signed integer overflow is undefined behavior. Detected with clang and -fsanitize=signed-integer-overflow Signed-off-by: Vitaly Buka <vitalybuka@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mov: Fix signed integer overflows with total_sizeVitaly Buka2017-08-23
| | | | | | | | Signed integer overflow is undefined behavior. Detected with clang and -fsanitize=signed-integer-overflow Signed-off-by: Vitaly Buka <vitalybuka@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/utils: Fix signed integer overflow in rc_initial_buffer_occupancy ↵Vitaly Buka2017-08-23
| | | | | | | | | | initialization Signed integer overflow is undefined behavior. Detected with clang and -fsanitize=signed-integer-overflow Signed-off-by: Vitaly Buka <vitalybuka@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavdevice/decklink: configurablity to set max queue sizeRavindra2017-08-22
| | | | | Signed-off-by: Ravindra Patagar <rpatagar@akamai.com> Signed-off-by: Marton Balint <cus@passwd.hu>
* avcodec/aacdec_template: Fix running cleanup in decode_ics_info()Michael Niedermayer2017-08-22
| | | | | | | | | | Fixes: out of array read Fixes: 2873/clusterfuzz-testcase-minimized-5924145713905664 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Previous version reviewed-by: Alex Converse <alex.converse@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/pngdec: Fix () placementMichael Niedermayer2017-08-22
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/vf_pseudocolor: add high bitdepth supportPaul B Mahol2017-08-22
|
* vp9: set color range to MPEG for intraonly profile 0James Zern2017-08-21
| | | | | | | | this is undocumented in the vp9 bitstream and decoding specification doc, but matches libvpx Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com> Signed-off-by: James Zern <jzern@google.com>
* avformat/hlsenc: move free fmp4_init_filename after hls_window operationSteven Liu2017-08-22
| | | | | | fix ticket id: 6599 Signed-off-by: Steven Liu <lq@onvideo.cn>
* avcodec/me_cmp: Fix crashes on ARM due to misalignmentMichael Niedermayer2017-08-21
| | | | | | | | Adds a diff_pixels_unaligned() Fixes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=872503 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavc/g726: Add a little-endian G.726 encoder.Carl Eugen Hoyos2017-08-21
| | | | Fixes ticket #6596.
* avcodec/pixlet: Fixes: undefined shift in av_mod_uintp2()Michael Niedermayer2017-08-20
| | | | | | | | Fixes: runtime error: shift exponent 4294967289 is too large for 32-bit type 'int' Fixes: 3030/clusterfuzz-testcase-minimized-4649809254285312 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/dirac_dwt_template: Fix integer overflow in vertical_compose53iL0()Michael Niedermayer2017-08-20
| | | | | | | | Fixes: runtime error: signed integer overflow: 2147483646 + 2 cannot be represented in type 'int' Fixes: 3013/clusterfuzz-testcase-minimized-4644084197097472 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/vf_pseudocolor: add support for some subsampled formatsPaul B Mahol2017-08-20
|
* doc/encoders: add "coder" option documentation for h264_vaapiJun Zhao2017-08-20
| | | | | Signed-off-by: Jun Zhao <jun.zhao@intel.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
* lavc/vaapi_encode_h264: add "coder" option supportJun Zhao2017-08-20
| | | | | | | | | | Follow libx264 style to support "coder" option, and set it to cabac by default. Signed-off-by: Yi A Wang <yi.a.wang@intel.com> Signed-off-by: Jun Zhao <jun.zhao@intel.com> Reviewed-by: Steven Liu <lingjiujianke@gmail.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
* vaapi_encode: Move quality option to common codeMark Thompson2017-08-20
| | | | | | | | | | | Use AVCodecContext.compression_level rather than a private option, replacing the H.264-specific quality option (which stays only for compatibility). This now works with the H.265 encoder in the i965 driver, as well as the existing cases with the H.264 encoder. (cherry picked from commit 19388a7200e5d99c703271f05dba1c806720e808)
* lavf/bink: fix latest header and add all existing revisionsbnnm2017-08-20
| | | | | | | KB2 'i' found in Life is Strange (Xbox 360), rest verified against binkconv.exe Signed-off-by: bnnm <bananaman255@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/cngdec: Check skip_samplesMichael Niedermayer2017-08-20
| | | | | | | | | | | Without this its possible to make the new decode API decode billions of samples out of a empty input and never return to the caller before all samples have been created and discarded. Fixes: Timeout Fixes: 2992/clusterfuzz-testcase-6649611793989632 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/fic: Fixes signed integer overflowMichael Niedermayer2017-08-20
| | | | | | | | Fixes: runtime error: signed integer overflow: 1037142357 + 1227025305 cannot be represented in type 'int' Fixes: 3024/clusterfuzz-testcase-minimized-5885660323905536 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/snowdec: Fix off by 1 errorMichael Niedermayer2017-08-20
| | | | | | | | Fixes: runtime error: index 4 out of bounds for type 'int8_t [4]' Fixes: 3023/clusterfuzz-testcase-minimized-6421736130084864 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* opus_pvq_search: Restore the proper use of conditional define and simplify ↵Ivan Kalvachev2017-08-19
| | | | | | | | | | | | | | the function name suffix handling. Using named define properly documents the code paths. It also avoids passing additional numbered arguments through multiple levels of macro templates. The suffix handling is done by concatenation, like in other asm functions and avoid having two separate "cglobal" defines. Signed-off-by: Ivan Kalvachev <ikalvachev@gmail.com>
* avutil/eval: add linear interpolation helperPaul B Mahol2017-08-19
|
* avfilter: add pseudocolor filterPaul B Mahol2017-08-19
|
* opus_pvq_search: split functions into exactness and only use the exact if ↵Rostislav Pehlivanov2017-08-18
| | | | | | | | | | | | its faster This splits the asm function into exact and non-exact version. The exact version is as fast or faster on newer CPUs (which EXTERNAL_AVX_FAST describes well) whilst the non-exact version is faster than the exact on older CPUs. Also fixes yasm compilation which doesn't accept !cpuflags(avx) syntax. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* lavd/libdc1394: Do not crash if dc1394_camera_new() fails.Carl Eugen Hoyos2017-08-18
| | | | Fixes Ubuntu bug 1710849
* opus_pvq_search: only use rsqrtps approximation on CPUs with avxRostislav Pehlivanov2017-08-18
| | | | | | Makes the search produce idential results with the C version. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* ops_pvq_search: remove dead macroRostislav Pehlivanov2017-08-18
| | | | | | There's no point in toggling it, even for debugging. Its just worse. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* SIMD opus pvq_search implementationIvan Kalvachev2017-08-18
| | | | | | | | | | | | Explanation on the workings and methods used by the Pyramid Vector Quantization Search function could be found in the following Work-In-Progress mail threads: http://ffmpeg.org/pipermail/ffmpeg-devel/2017-June/212146.html http://ffmpeg.org/pipermail/ffmpeg-devel/2017-June/212816.html http://ffmpeg.org/pipermail/ffmpeg-devel/2017-July/213030.html http://ffmpeg.org/pipermail/ffmpeg-devel/2017-July/213436.html Signed-off-by: Ivan Kalvachev <ikalvachev@gmail.com>
* Add macros to x86util.asm .Ivan Kalvachev2017-08-18
| | | | | | | | | Improved version of VBROADCASTSS that works like the avx2 instruction. Emulation of vpbroadcastd. Horizontal sum HSUMPS that places the result in all elements. Emulation of blendvps and pblendvb. Signed-off-by: Ivan Kalvachev <ikalvachev@gmail.com>
* avcodec/pixlet: fixes integer overflow in read_highpass()Michael Niedermayer2017-08-18
| | | | | | | | Fixes: runtime error: negation of -2147483648 cannot be represented in type 'int32_t' (aka 'int'); cast to an unsigned type to negate this value to itself Fixes: 2879/clusterfuzz-testcase-minimized-6317542639403008 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/ffv1dec: Check for bitstream end in decode_line()Michael Niedermayer2017-08-18
| | | | | | | | Fixes: timeout Fixes: 2971/clusterfuzz-testcase-6130678276030464 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/rangecoder: Do not increase the pointer beyond the bufferMichael Niedermayer2017-08-18
| | | | | | Fixes: undefined behavior Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavformat/mov: Fix inserting frames before current_frame.Jacob Trimble2017-08-18
| | | | | | | | | | When using streaming input, it may be possible to see frames that appear before the current_frame. When these frames are inserted into the index, the current_frame needs to be updated so it is still pointing at the same frame. Signed-off-by: Jacob Trimble <modmaker@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* ffprobe: fix use of uninitialized variableZhao Zhili2017-08-18
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* filters.texi: clarify audio upsampling in loudnormKyle Swanson2017-08-17
| | | | Signed-off-by: Kyle Swanson <k@ylo.ph>
* filters.texi: explain audio upsampling in loudnormWerner Robitza2017-08-17
| | | | | | | Explain that audio will be upsampled to 192 kHz. Addresses issues mentioned in issue 6570. Signed-off-by: Werner Robitza <werner.robitza@gmail.com>
* avformat/utils: always av_reduce r_frame_rateMarton Balint2017-08-17
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Marton Balint <cus@passwd.hu>
* avcodec/zmbv: Check decomp_sizeMichael Niedermayer2017-08-17
| | | | | | | | | Fixes: OOM Fixes: 2710/clusterfuzz-testcase-minimized-4750001420894208 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/dnxhdenc: call slice thread code only if slice threading is enabledPaul B Mahol2017-08-17
|