Michael Niedermayer
acd203fc0d
avutil/softfloat: Fix exponent underflow in av_div_sf()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 046218b212 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-11 23:32:54 +01:00
Michael Niedermayer
402c4a9f81
avutil/softfloat: Fix exponent underflow in av_mul_sf()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a1e3303fc0 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-11 23:32:51 +01:00
Michael Niedermayer
6e4bfbe936
avutil/softfloat: Fix typo in av_mul_sf() doxy
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 4135a2bfd6 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-11 23:32:48 +01:00
Michael Niedermayer
f38beb47da
avutil/softfloat: Correctly set the exponent for 0.0 in av_sqrt_sf()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 107db5abf3 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-11 23:32:32 +01:00
Michael Niedermayer
efa9128556
avutil/softfloat: FLOAT_0 should use MIN_EXP
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a66b243d52 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-11 23:32:27 +01:00
Michael Niedermayer
1290037626
libavutil/channel_layout: Check strtol*() for failure
...
Fixes assertion failure
Fixes: 4f5814bb15d2dda6fc18ef9791b13816/signal_sigabrt_7ffff6ae7cc9_65_7209d160d168b76f311be6cd64a548eb.wv
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit c9bfd6a8c3 )
Conflicts:
libavutil/channel_layout.c
2015-11-05 20:47:15 +01:00
Tobias Rapp
c6c801d993
avutil/file_open: avoid file handle inheritance on Windows
...
Avoids inheritance of file handles on Windows systems similar to the
O_CLOEXEC/FD_CLOEXEC flag on Linux.
Fixes file lock issues in Windows applications when a child process
is started with handle inheritance enabled (standard input/output
redirection) while a FFmpeg transcoding is running in the parent
process.
Links relevant to the subject:
https://msdn.microsoft.com/en-us/library/w7sa2b22.aspx
Describes the _wsopen() function and the O_NOINHERIT flag. File handles
opened by _wsopen() are inheritable by default.
https://msdn.microsoft.com/en-us/library/windows/desktop/ms682425%28v=vs.85%29.aspx
Describes handle inheritance when creating new processes. Handle
inheritance must be enabled (bInheritHandles = TRUE) e.g. when you want
to pass handles for stdin/stdout via lpStartupInfo.
Signed-off-by: Tobias Rapp <t.rapp@noa-audio.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 4746653466 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-02 19:15:32 +01:00
Ganesh Ajjanagadde
3fedd64d4b
avutil/log: fix zero length gnu_printf format string warning
...
This should fix warning reported by fate client:
http://fate.ffmpeg.org/report.cgi?time=20150917113121&slot=x86_32-linux-gnu-gcc-4.5.1-have_6regs .
Untested.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 63cdb6e4a5 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-08 13:15:42 +02:00
James Almer
1a56be9cdc
avutil: undo FF_API_CRYPTO_CONTEXT deprecation for 2.8 release
...
There's no consensus yet if this deprecation is desired, so it's removed
from this release for the time being
Signed-off-by: James Almer <jamrial@gmail.com >
2015-09-05 13:02:29 -03:00
Michael Niedermayer
d6cd614dac
avutil/common: Add FFNABS()
...
This macro avoids the undefined corner case with the *_MIN values
Previous version Reviewed-by: Ganesh Ajjanagadde <gajjanag@mit.edu >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-03 09:05:50 +02:00
Michael Niedermayer
733511fb53
avutil/common: Document FFABS() corner case
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-03 02:18:01 +02:00
Hendrik Leppkes
fd2977d85f
Merge commit 'e23f84d9652474353d8bbc42787a56ec1991908f'
...
* commit 'e23f84d9652474353d8bbc42787a56ec1991908f':
channel_layout: Add a 16channel default layout
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-24 10:40:24 +02:00
Luca Barbato
e23f84d965
channel_layout: Add a 16channel default layout
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-08-23 21:44:38 +02:00
Andreas Cadhalpun
095347ffe4
disable deprecation warnings in deprecated code
...
Reviewed-by: wm4 <nfxjfg@googlemail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-08-22 19:16:14 +02:00
Timothy Gu
c5d9e9b354
doxygen: Remove lavu_internal group
...
There is no use in an internal group for a public API documentation.
2015-08-22 10:07:05 -07:00
Timothy Gu
0aa9bbbc37
version: Fix two more typos
...
Same as cafba99b51 but applied to
lavf and lavu.
2015-08-22 08:09:03 -07:00
Ganesh Ajjanagadde
531b0a316b
avutil/x86/asm: rename REG_SP to REG_sp
...
REG_SP is defined by Solaris system headers.
This fixes a sea of warnings while building on Solaris:
http://fate.ffmpeg.org/report.cgi?time=20150820233505&slot=x86-opensolaris-gcc4.3
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-22 02:56:53 +02:00
Michael Niedermayer
0b7829901b
*/version.h: Add note/recommandition about bumping major
...
Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-19 21:37:32 +02:00
Paul B Mahol
2fa019958b
avfilter: add showfreqs filter
2015-08-19 16:15:13 +00:00
Gwenole Beauchesne
9f8e57efe4
vaapi: define a unique pixel format for VA-API (AV_PIX_FMT_VAAPI).
...
Deprecate older VA pixel formats (MOCO, IDCT) as it is now very unlikely
to ever be useful in the future. Only keep plain AV_PIX_FMT_VAAPI format
that is aliased to the older VLD variant.
This is an API change.
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com >
2015-08-19 14:03:24 +02:00
Ronald S. Bultje
87068ea5c5
lavu: disable wrong value check in get_version() upon api bump.
2015-08-18 15:57:20 -04:00
Ronald S. Bultje
3285005347
Undeprecate av_opt_set_defaults2().
2015-08-18 13:09:06 -04:00
Ronald S. Bultje
ad45121d56
options: mark av_get_{int,double,q} as deprecated.
...
Convert last users to av_opt_get_*() counterparts.
2015-08-18 12:05:17 -04:00
Ronald S. Bultje
70a19c482a
Move ff_dlog from lavc to lavu.
2015-08-18 09:46:49 -04:00
Henrik Gramner
44b4444120
x86inc: Various minor backports from x264
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-08-13 07:46:24 +02:00
Andreas Cadhalpun
107e54c5bf
avutil: add ff_reverse as av_reverse replacement
...
The table is used in libavutil/eval.c.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-08-12 00:14:14 +02:00
Henrik Gramner
ab43beefab
x86inc: Drop SECTION_TEXT macro
...
The .text section is already 16-byte aligned by default on all supported
platforms so `SECTION_TEXT` isn't any different from `SECTION .text`.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-08-11 11:12:01 +02:00
Henrik Gramner
1c6bb81328
x86inc: Disable vpbroadcastq workaround in newer yasm versions
...
The bug was fixed in 1.3.0, so only perform the workaround in earlier versions.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-08-11 11:11:27 +02:00
Christophe Gisquet
f5e486f6f8
x86inc: Fix instantiation of YMM registers
...
Signed-off-by: Henrik Gramner <henrik@gramner.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-08-11 11:09:08 +02:00
Anton Mitrofanov
b114d28a18
x86inc: warn when instructions incompatible with current cpuflags are used
...
Signed-off-by: Henrik Gramner <henrik@gramner.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-08-11 11:07:18 +02:00
Henrik Gramner
9f1245eb96
x86inc: Support arbitrary stack alignments
...
Change ALLOC_STACK to always align the stack before allocating stack space for
consistency. Previously alignment would occur either before or after allocating
stack space depending on whether manual alignment was required or not.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-08-11 11:04:11 +02:00
Anton Mitrofanov
8c75ba55a4
x86inc: warn if XOP integer FMA instruction emulation is impossible
...
Emulation requires a temporary register if arguments 1 and 4 are the same; this
doesn't obey the semantics of the original instruction, so we can't emulate
that in x86inc.
Also add pmacsdql emulation.
Signed-off-by: Henrik Gramner <henrik@gramner.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-08-11 11:02:27 +02:00
Michael Niedermayer
7d3aa2ca63
avutil/float_dsp: Remove use of deprecated av_set_cpu_flags_mask()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-07 22:46:27 +02:00
Anton Mitrofanov
8db0f71b49
x86inc: warn if XOP integer FMA instruction emulation is impossible
...
Signed-off-by: Henrik Gramner <henrik@gramner.com >
2015-08-05 16:15:40 +02:00
Henrik Gramner
f0b7882ceb
x86inc: Drop SECTION_TEXT macro
...
The .text section is already 16-byte aligned by default on all supported
platforms so `SECTION_TEXT` isn't any different from `SECTION .text`.
2015-08-04 20:13:09 +02:00
Henrik Gramner
826790f596
x86inc: Support arbitrary stack alignments
...
Change ALLOC_STACK to always align the stack before allocating stack space for
consistency. Previously alignment would occur either before or after allocating
stack space depending on whether manual alignment was required or not.
2015-08-04 20:13:09 +02:00
James Almer
5750d6c5e9
x86: move XOP emulation code back to x86inc
...
Only two functions that use xop multiply-accumulate instructions where the
first operand is the same as the fourth actually took advantage of the macros.
This further reduces differences with x264's x86inc.
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-08-03 17:11:13 -03:00
Sebastien Zwickert
11d923d414
avcodec: add new Videotoolbox hwaccel.
2015-08-03 10:12:10 +02:00
Henrik Gramner
127203ba5a
x86inc: Various minor backports from x264
...
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-03 04:08:33 +02:00
Henrik Gramner
f151fbd9e5
x86inc: Disable vpbroadcastq workaround in newer yasm versions
...
The bug was fixed in 1.3.0, so only perform the workaround in earlier versions.
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-03 03:13:20 +02:00
Hendrik Leppkes
d95fee4425
Merge commit '3e853ff7acc56b180950ab39e7282f1b938c8784'
...
* commit '3e853ff7acc56b180950ab39e7282f1b938c8784':
des: extend av_des_init() doxy
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-02 10:41:26 +02:00
Hendrik Leppkes
3cf08e96fc
Merge commit 'd9e8b47e3144262d6bc4681740411d4bdafad6ac'
...
* commit 'd9e8b47e3144262d6bc4681740411d4bdafad6ac':
des: add av_des_alloc()
Conflicts:
libavutil/des.c
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-02 10:41:16 +02:00
Hendrik Leppkes
9ca19971bc
Merge commit '5d8bea3bb2357bb304f8f771a4107039037c5549'
...
* commit '5d8bea3bb2357bb304f8f771a4107039037c5549':
xtea: add av_xtea_alloc()
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-02 10:39:37 +02:00
Hendrik Leppkes
52566efd5c
Merge commit 'b469832de993dabbfe037bef59c68e90e82ebca5'
...
* commit 'b469832de993dabbfe037bef59c68e90e82ebca5':
rc4: extend av_rc4_init() doxy
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-02 10:38:53 +02:00
Hendrik Leppkes
a130ec9540
Merge commit 'ae365453c370c85f278bff7fbf9e20d9d335cb2a'
...
* commit 'ae365453c370c85f278bff7fbf9e20d9d335cb2a':
rc4: add av_rc4_alloc()
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-02 10:38:33 +02:00
Hendrik Leppkes
9ed59f16e0
Merge commit '7a7df34c91e16ea8936f59524145a2cdd6b790f9'
...
* commit '7a7df34c91e16ea8936f59524145a2cdd6b790f9':
blowfish: add av_blowfish_alloc()
Conflicts:
doc/APIchanges
libavutil/version.h
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-02 10:38:12 +02:00
James Almer
3e853ff7ac
des: extend av_des_init() doxy
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-07-31 09:04:12 +02:00
James Almer
d9e8b47e31
des: add av_des_alloc()
...
Signed-off-by: James Almer <jamrial@gmail.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-07-31 09:04:12 +02:00
James Almer
5d8bea3bb2
xtea: add av_xtea_alloc()
...
Signed-off-by: James Almer <jamrial@gmail.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-07-31 09:04:12 +02:00
James Almer
b469832de9
rc4: extend av_rc4_init() doxy
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-07-31 09:04:12 +02:00