Carl Eugen Hoyos
285c015f10
lavd/libdc1394: Do not crash if dc1394_camera_new() fails.
...
Fixes Ubuntu bug 1710849
2017-08-18 19:20:15 +02:00
Rostislav Pehlivanov
f386dd70ac
opus_pvq_search: only use rsqrtps approximation on CPUs with avx
...
Makes the search produce idential results with the C version.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2017-08-18 17:30:41 +01:00
Rostislav Pehlivanov
8e53cd1fab
ops_pvq_search: remove dead macro
...
There's no point in toggling it, even for debugging. Its just worse.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2017-08-18 17:27:41 +01:00
Ivan Kalvachev
7205513f8f
SIMD opus pvq_search implementation
...
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 >
2017-08-18 17:18:32 +01:00
Ivan Kalvachev
30ae07d7ef
Add macros to x86util.asm .
...
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 >
2017-08-18 17:18:32 +01:00
Michael Niedermayer
cadab5a2a7
avcodec/pixlet: fixes integer overflow in read_highpass()
...
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 >
2017-08-18 11:34:01 +02:00
Michael Niedermayer
b9f92093a1
avcodec/ffv1dec: Check for bitstream end in decode_line()
...
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 >
2017-08-18 11:33:16 +02:00
Michael Niedermayer
c359c51947
avcodec/rangecoder: Do not increase the pointer beyond the buffer
...
Fixes: undefined behavior
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-18 11:33:14 +02:00
Jacob Trimble
f4544163b2
libavformat/mov: Fix inserting frames before current_frame.
...
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 >
2017-08-18 03:02:11 +02:00
Zhao Zhili
7fb4b0368d
ffprobe: fix use of uninitialized variable
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-18 03:02:11 +02:00
Kyle Swanson
2955cd4482
filters.texi: clarify audio upsampling in loudnorm
...
Signed-off-by: Kyle Swanson <k@ylo.ph >
2017-08-17 14:01:42 -07:00
Werner Robitza
801ba0f0ee
filters.texi: explain audio upsampling in loudnorm
...
Explain that audio will be upsampled to 192 kHz. Addresses issues mentioned in
issue 6570.
Signed-off-by: Werner Robitza <werner.robitza@gmail.com >
2017-08-17 12:20:26 -08:00
Marton Balint
7160992431
avformat/utils: always av_reduce r_frame_rate
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Marton Balint <cus@passwd.hu >
2017-08-17 21:02:40 +02:00
Michael Niedermayer
931c0ac95c
avcodec/zmbv: Check decomp_size
...
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 >
2017-08-17 16:30:06 +02:00
Paul B Mahol
28e9ba951d
avcodec/dnxhdenc: call slice thread code only if slice threading is enabled
2017-08-17 11:42:16 +02:00
Michael Niedermayer
92da23093c
avcodec/diracdec: Fixes integer overflow
...
Fixes: runtime error: signed integer overflow: 340018243 * 27 cannot be represented in type 'int'
Fixes: 2861/clusterfuzz-testcase-minimized-5361070510178304
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-17 00:23:01 +02:00
Michael Niedermayer
1e6cab8745
avcodec/diracdec: Check perspective_exp and zrs_exp.
...
Fixes: undefined shift
Fixes: runtime error: shift exponent 264 is too large for 32-bit type 'int'
Fixes: 2860/clusterfuzz-testcase-minimized-4672811689836544
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-17 00:23:01 +02:00
Marton Balint
366e6bfc51
fate: add overlay filter tests with alpha
...
Signed-off-by: Marton Balint <cus@passwd.hu >
2017-08-16 22:00:35 +02:00
Paul B Mahol
16efcfe413
avfilter/vf_weave: fix top vs bottom field order
...
Fixes #6590 .
2017-08-16 13:37:53 +02:00
Paul B Mahol
7b19e76aeb
avfilter/vf_transpose: rewrite for x86 SIMD
...
Transpose first in chunks of 8x8 blocks.
15% faster overall.
2017-08-16 09:28:31 +02:00
Leo Izen
cbd8e07056
encoders.texi: Replace x264 --full-help suggestion with --fullhelp
...
Reviewed-by: Steven Liu <lingjiujianke@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-16 03:35:24 +02:00
Nikolas Bowe
4b54d5a721
avformat/mov: Fix memory leak when reading DDTS box.
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-16 03:35:13 +02:00
Michael Niedermayer
0ac8fce267
swresample/resample: Fix flush refelction length
...
Reviewed-by: atomnuker
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-16 00:54:17 +02:00
Vittorio Giovara
62dfa2ba14
Add tonemap filter
...
Based off mpv automatic tonemapping capabilities.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2017-08-15 15:27:42 +02:00
Vittorio Giovara
8b9ae9a8e0
zscale: Enable single precision input/ouput filtering
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2017-08-15 15:27:40 +02:00
Vittorio Giovara
1460408703
Add single precision planar RGB pixel formats
...
Add a pixel format flag to identify this family.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2017-08-15 15:26:20 +02:00
Paul B Mahol
8d2da0939c
avfilter/vf_datascope: make it possible to change pixscope window position
2017-08-15 13:54:19 +02:00
Michael Niedermayer
b9ce43625c
avcodec/cavsdec: Check P/B frame mb decode which return error codes
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-15 01:27:36 +02:00
Michael Niedermayer
426a322aa2
avcodec/cavsdec: Check I frame mb decode for errors
...
Fixes: timeout
Fixes: 2943/clusterfuzz-testcase-5430257156882432
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-15 01:27:36 +02:00
Timo Rothenpieler
62b75537db
avfilter/scale_npp: fix logic used in previous patch
2017-08-14 16:03:11 +02:00
Timo Rothenpieler
f4ebbda566
avfilter/scale_npp: check for buffer allocation failure
...
I totally did not forget to amend this to the previous patch...
2017-08-14 14:15:27 +02:00
Yogender Gupta
77c5a54192
avfilter/scale_npp: fix passthrough mode
...
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org >
2017-08-14 13:56:10 +02:00
Michael Niedermayer
5859b5b439
avcodec/lagarith: Detect end of input in lag_decode_line() loop
...
Fixes: timeout
Fixes: 2933/clusterfuzz-testcase-5124990208835584
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-11 22:02:38 +02:00
Michael Niedermayer
0561bd2fc2
avcodec/gdv: Check available space before reading palette
...
Fixes: Timeout
Fixes: 2926/clusterfuzz-testcase-498711001458278
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-11 19:27:52 +02:00
Michael Niedermayer
62702eebde
avcodec/ffv1dec_template: Fix undefined shift
...
Fixes: runtime error: left shift of negative value -127
Fixes: 2834/clusterfuzz-testcase-minimized-5988039123795968
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-11 18:21:06 +02:00
Michael Niedermayer
7735ed2974
avcodec/mpeg4videodec: Clear mcsel before decoding an image
...
Fixes: runtime error: signed integer overflow: 2146467840 + 1032192 cannot be represented in type 'int'
Fixes: 2826/clusterfuzz-testcase-minimized-5901511613743104
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-11 12:07:16 +02:00
Michael Niedermayer
511e10f673
avformat/avidec: Move packet skip after prefix and related checks
...
This fixes loosing packets
Fixes: big.avi
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-11 12:07:08 +02:00
Michael Niedermayer
84786e928f
avcodec/tests/dct: Add Mean square error test
...
based on quotes of IEEE 1180 / ISO/IEC 23002-1
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-11 12:06:41 +02:00
Michael Niedermayer
86cbffdc4d
avcodec/tests/dct: Add peak mean error check
...
based on quotes of IEEE 1180 / ISO/IEC 23002-1
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-11 12:06:40 +02:00
Davinder Singh
4116b2b136
avcodec/mjpegenc: cosmetic changes
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-11 04:28:52 +02:00
Davinder Singh
1939b90306
avcodec/mjpegenc: disable unused code with AMV
...
disable unused amv_encode_picture() when AMV encoder is not configured.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-11 04:28:52 +02:00
Marton Balint
498c90c708
avfilter/vf_overlay: fix alpha blending for planar formats with a transparent background
...
When the background had an alpha channel, the old code in blend_plane
calculated premultiplied alpha from the destination plane colors instead of the
destination alpha.
Also the calculation of the output alpha should only happen after the color
planes are already finished.
Fixes output of:
ffplay -f lavfi "testsrc2=alpha=32[a];color=black[b];[b][a]overlay[out0]"
Signed-off-by: Marton Balint <cus@passwd.hu >
2017-08-10 22:25:51 +02:00
Marton Balint
3bd2228d05
ffplay: add support for more SDL pixel formats when rendering video
...
Signed-off-by: Marton Balint <cus@passwd.hu >
2017-08-10 22:08:40 +02:00
Marton Balint
7004ac5eeb
ffplay: add support for displaying rgb images with alpha
...
Signed-off-by: Marton Balint <cus@passwd.hu >
2017-08-10 22:08:40 +02:00
Marton Balint
493f637d1e
ffplay: add support for rendering yuv images with negative line size
...
Signed-off-by: Marton Balint <cus@passwd.hu >
2017-08-10 22:08:40 +02:00
Vittorio Giovara
f357104866
pixfmt: Support chroma-derived and ictcp color matrices
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2017-08-10 15:54:06 +02:00
Vittorio Giovara
8c34a2024d
h264: Add support for alternative transfer characterics SEI
...
The use of this SEI is for backward compatibility in HLG HDR systems:
older devices that cannot interpret the "arib-std-b67" transfer will
get the compatible transfer (usually bt709 or bt2020) from the VUI,
while newer devices that can interpret HDR will read the SEI and use
its value instead.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2017-08-10 15:40:16 +02:00
Martin Storsjö
9042402ec7
d3d11va: Check WINAPI_FAMILY instead of HAVE_LOADLIBRARY
...
If using the winstore compat library, a fallback LoadLibrary
function does exist, that only calls LoadPackagedLibrary though
(which doesn't work for dynamically loading d3d11 DLLs).
Therefore explicitly check the targeted API family instead.
Make this check a reusable HAVE_* component which other parts
of the libraries can check when necessary as well.
Signed-off-by: Martin Storsjö <martin@martin.st >
Merged from Libav commit 4d330da006
.
2017-08-10 11:58:25 +02:00
James Almer
c100330a8f
avformat/movenc: reindent after the previous commit
2017-08-09 23:15:38 -03:00
Sasi Inguva
e7e1fbc49b
lavf/movenc.c: Set sgpd and sbgp atoms to represent decoder delay for AAC.
...
According to https://developer.apple.com/library/content/documentation/QuickTime/QTFF/QTFFAppenG/QTFFAppenG.html and ISO-IEC-14496-12 Section 10.1.1.1 and 10.1.1.3
Signed-off-by: Sasi Inguva <isasi@google.com >
Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-10 02:43:53 +02:00