ffmpeg.git
6 years agoAdd missing libavutil/time.h includes.
Anton Khirnov [Fri, 27 Jul 2012 14:28:36 +0000 (16:28 +0200)]
Add missing libavutil/time.h includes.

6 years agovp3: don't compile mmx IDCT functions on x86-64.
Ronald S. Bultje [Fri, 27 Jul 2012 05:16:37 +0000 (22:16 -0700)]
vp3: don't compile mmx IDCT functions on x86-64.

64-bit CPUs always have SSE2, and a SSE2 version exists, thus the MMX
version will never be used.

6 years agoh264_loopfilter: port x86 simd to cpuflags.
Ronald S. Bultje [Sat, 28 Jul 2012 00:45:30 +0000 (17:45 -0700)]
h264_loopfilter: port x86 simd to cpuflags.

6 years agobuild: support non-standard replacements for -c flag
Mans Rullgard [Fri, 20 Jul 2012 22:43:27 +0000 (23:43 +0100)]
build: support non-standard replacements for -c flag

This allows non-standard replacements for the -c compiler flag.
Some compilers use other flags or no flag at all in place of
the usual one.

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agobuild: support non-standard replacements for -E flag
Mans Rullgard [Fri, 20 Jul 2012 21:22:41 +0000 (22:22 +0100)]
build: support non-standard replacements for -E flag

This allows using non-standard flags for running the C preprocessor.
The -o flag must be included in this setting due to strange syntax
required by some compilers.

Set the correct flags for tms470.

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agoh264_chromamc_10bit: port x86 simd to cpuflags.
Ronald S. Bultje [Fri, 27 Jul 2012 03:43:50 +0000 (20:43 -0700)]
h264_chromamc_10bit: port x86 simd to cpuflags.

6 years agovp3: port x86 SIMD to cpuflags.
Ronald S. Bultje [Fri, 27 Jul 2012 22:17:27 +0000 (15:17 -0700)]
vp3: port x86 SIMD to cpuflags.

6 years agobuild: Use portable compiler flag constructs in header compilation rule
Diego Biurrun [Fri, 27 Jul 2012 10:06:01 +0000 (12:06 +0200)]
build: Use portable compiler flag constructs in header compilation rule

6 years agox11grab: cosmetics: consistent naming for x11grab-related things
Diego Biurrun [Sat, 21 Jul 2012 19:28:54 +0000 (21:28 +0200)]
x11grab: cosmetics: consistent naming for x11grab-related things

6 years agobuild: Rename YASMDEP variable to DEPYASM for consistency
Diego Biurrun [Wed, 25 Jul 2012 11:25:58 +0000 (13:25 +0200)]
build: Rename YASMDEP variable to DEPYASM for consistency

6 years agohls: Proceed to the next segment at any error code
Martin Storsjö [Fri, 27 Jul 2012 17:24:53 +0000 (20:24 +0300)]
hls: Proceed to the next segment at any error code

Previously, we returned any error code except AVERROR_EOF to the
caller - only if AVERROR_EOF or 0 was returned, we proceeded to
the next segment.

With some setups of web servers, using Connection: close in https
and GnuTLS, we don't get a clean error code at the end of segments.
In those cases, just proceed to the next segment.

Tested-by: Antti Seppälä <a.seppala@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agotls: Return AVERROR_EOF if the TLS_read/write functions return 0
Martin Storsjö [Fri, 27 Jul 2012 17:22:51 +0000 (20:22 +0300)]
tls: Return AVERROR_EOF if the TLS_read/write functions return 0

OpenSSL returns 0 when the peer has closed the connection. GnuTLS
doesn't return that though, but returns
GNUTLS_E_UNEXPECTED_PACKET_LENGTH if the connection simply is closed
without a clean close notify packet.

Tested-by: Antti Seppälä <a.seppala@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agorv34: port x86 SIMD to cpuflags.
Ronald S. Bultje [Fri, 27 Jul 2012 05:19:19 +0000 (22:19 -0700)]
rv34: port x86 SIMD to cpuflags.

6 years agovp56: only compile MMX SIMD on x86-32.
Ronald S. Bultje [Fri, 27 Jul 2012 05:09:46 +0000 (22:09 -0700)]
vp56: only compile MMX SIMD on x86-32.

All x86-64 CPUs have SSE2, so the MMX version will never be used. This
leads to smaller binaries.

6 years agovp56: port x86 simd to cpuflags.
Ronald S. Bultje [Fri, 27 Jul 2012 05:07:29 +0000 (22:07 -0700)]
vp56: port x86 simd to cpuflags.

6 years agoproresdsp: port x86 assembly to cpuflags.
Ronald S. Bultje [Fri, 27 Jul 2012 03:38:27 +0000 (20:38 -0700)]
proresdsp: port x86 assembly to cpuflags.

6 years agolavr: x86: improve non-SSE4 version of S16_TO_S32_SX macro
Justin Ruggles [Tue, 26 Jun 2012 20:50:10 +0000 (16:50 -0400)]
lavr: x86: improve non-SSE4 version of S16_TO_S32_SX macro

Removes a false dependency on existing contents of the 2nd dst register,
giving better performance for OOE.

6 years agolavfi: better channel layout negotiation
Justin Ruggles [Sat, 14 Jul 2012 00:22:08 +0000 (20:22 -0400)]
lavfi: better channel layout negotiation

Allow substitution of channel pairs in the input for nearby channel pairs in
the output in order to get a closer match. Also weigh LFE channel mismatch
differently to favor matching the same layout without LFE over one less
channel with LFE.

6 years agoalac: check for truncated packets
Justin Ruggles [Fri, 20 Jul 2012 00:04:40 +0000 (20:04 -0400)]
alac: check for truncated packets

This will give a clearer error message when the error is caused by a
truncated packet.

6 years agoalac: reverse lpc coeff order, simplify filter
Justin Ruggles [Thu, 19 Jul 2012 18:08:22 +0000 (14:08 -0400)]
alac: reverse lpc coeff order, simplify filter

Reversing the lpc coefficient order simplifies indexing in the filter.

6 years agolavr: add x86-optimized mixing functions
Justin Ruggles [Mon, 7 May 2012 13:56:33 +0000 (09:56 -0400)]
lavr: add x86-optimized mixing functions

Adds optimized functions for mixing 3 through 8 input channels to 1 and 2
output channels in fltp or s16p format with flt coeffs.

6 years agox86: add support for fmaddps fma4 instruction with abstraction to avx/sse
Justin Ruggles [Tue, 19 Jun 2012 03:39:14 +0000 (23:39 -0400)]
x86: add support for fmaddps fma4 instruction with abstraction to avx/sse

6 years agotscc2: fix typo in array index
Kostya Shishkov [Thu, 26 Jul 2012 17:42:22 +0000 (19:42 +0200)]
tscc2: fix typo in array index

6 years agobuild: use COMPILE template for HOSTOBJS
Mans Rullgard [Fri, 20 Jul 2012 10:01:19 +0000 (11:01 +0100)]
build: use COMPILE template for HOSTOBJS

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agobuild: do full flag handling for all compiler-type tools
Mans Rullgard [Fri, 20 Jul 2012 12:43:07 +0000 (13:43 +0100)]
build: do full flag handling for all compiler-type tools

This adds a full identification probe of CC, AS, LD and HOSTCC,
and sets up correct flags and dependency tracking for each.

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agoeval: fix printing of NaN in eval fate test.
Ronald S. Bultje [Thu, 26 Jul 2012 03:42:04 +0000 (20:42 -0700)]
eval: fix printing of NaN in eval fate test.

This fixes "make fate-eval" on MSVC builds. Without this, the test outputs
"-1.#NaN" instead of "nan" on MSVS 2010.

6 years agobuild: Rename aandct component to more descriptive aandcttables
Diego Biurrun [Tue, 24 Jul 2012 17:16:29 +0000 (19:16 +0200)]
build: Rename aandct component to more descriptive aandcttables

6 years agompegaudio: bury inline asm under HAVE_INLINE_ASM.
Ronald S. Bultje [Thu, 26 Jul 2012 03:32:58 +0000 (20:32 -0700)]
mpegaudio: bury inline asm under HAVE_INLINE_ASM.

6 years agox86inc: automatically insert vzeroupper for YMM functions.
Ronald S. Bultje [Thu, 26 Jul 2012 03:52:16 +0000 (20:52 -0700)]
x86inc: automatically insert vzeroupper for YMM functions.

6 years agortmp: Check the buffer length of ping packets
Samuel Pitoiset [Thu, 26 Jul 2012 18:45:42 +0000 (20:45 +0200)]
rtmp: Check the buffer length of ping packets

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortmp: Allow having more unknown data at the end of a chunk size packet without failing
Samuel Pitoiset [Thu, 26 Jul 2012 12:05:58 +0000 (14:05 +0200)]
rtmp: Allow having more unknown data at the end of a chunk size packet without failing

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortmp: Prevent reading outside of an allocate buffer when receiving server bandwidth...
Samuel Pitoiset [Thu, 26 Jul 2012 12:05:18 +0000 (14:05 +0200)]
rtmp: Prevent reading outside of an allocate buffer when receiving server bandwidth packets

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agolibopenjpeg: support YUV and deep RGB pixel formats
Michael Bradshaw [Tue, 24 Jul 2012 17:43:06 +0000 (19:43 +0200)]
libopenjpeg: support YUV and deep RGB pixel formats

Based on FFmpeg version from
commit 3275981207e30e140cffaea334ac390f1a04266a

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
6 years agoFix typo in v410 decoder.
Carl Eugen Hoyos [Mon, 23 Jul 2012 22:45:17 +0000 (18:45 -0400)]
Fix typo in v410 decoder.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
6 years agovf_yadif: unset cur_buf on the input link.
Anton Khirnov [Wed, 25 Jul 2012 06:42:27 +0000 (08:42 +0200)]
vf_yadif: unset cur_buf on the input link.

The buffer is stored internally, so this prevents it from being unreffed
automatically.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
6 years agovf_overlay: ensure the overlay frame does not get leaked.
Anton Khirnov [Wed, 25 Jul 2012 06:42:26 +0000 (08:42 +0200)]
vf_overlay: ensure the overlay frame does not get leaked.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
6 years agovf_overlay: prevent premature freeing of cur_buf
Michael Niedermayer [Wed, 25 Jul 2012 06:42:25 +0000 (08:42 +0200)]
vf_overlay: prevent premature freeing of cur_buf

Signed-off-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
6 years agoSupport urlencoded http authentication credentials
Antti Seppälä [Wed, 25 Jul 2012 09:43:39 +0000 (12:43 +0300)]
Support urlencoded http authentication credentials

It should be possible to specify usernames in http requests containing
urlencoded characters. This patch adds support for decoding the auth
strings.

Signed-off-by: Antti Seppälä <a.seppala@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortmp: Return an error when the client bandwidth is incorrect
Samuel Pitoiset [Wed, 25 Jul 2012 18:51:11 +0000 (20:51 +0200)]
rtmp: Return an error when the client bandwidth is incorrect

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortmp: Return proper error code in handle_server_bw
Samuel Pitoiset [Wed, 25 Jul 2012 18:51:10 +0000 (20:51 +0200)]
rtmp: Return proper error code in handle_server_bw

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortmp: Return proper error code in handle_client_bw
Samuel Pitoiset [Wed, 25 Jul 2012 18:51:09 +0000 (20:51 +0200)]
rtmp: Return proper error code in handle_client_bw

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortmp: Return proper error codes in handle_chunk_size
Samuel Pitoiset [Wed, 25 Jul 2012 18:51:08 +0000 (20:51 +0200)]
rtmp: Return proper error codes in handle_chunk_size

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agolavr: x86: add missing vzeroupper in ff_mix_1_to_2_fltp_flt()
Justin Ruggles [Wed, 25 Jul 2012 18:49:40 +0000 (14:49 -0400)]
lavr: x86: add missing vzeroupper in ff_mix_1_to_2_fltp_flt()

6 years agovp8: Replace x*155/100 by x*101581>>16.
Ronald S. Bultje [Tue, 24 Jul 2012 21:23:12 +0000 (21:23 +0000)]
vp8: Replace x*155/100 by x*101581>>16.

Idea stolen from webp (by Pascal Massimino) - because it's Cool.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
6 years agovp3: don't use calls to inline asm in yasm code.
Ronald S. Bultje [Sun, 22 Jul 2012 20:38:56 +0000 (20:38 +0000)]
vp3: don't use calls to inline asm in yasm code.

Mixing yasm and inline asm is a bad idea, since if either yasm or inline
asm is not supported by your toolchain, all of the asm stops working.
Thus, better to use either one or the other alone.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
6 years agox86/dsputil: put inline asm under HAVE_INLINE_ASM.
Ronald S. Bultje [Sun, 22 Jul 2012 21:14:20 +0000 (21:14 +0000)]
x86/dsputil: put inline asm under HAVE_INLINE_ASM.

This allows compiling with compilers that don't support gcc-style
inline assembly.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
6 years agodsputil_mmx: fix incorrect assembly code
Yang Wang [Mon, 23 Jul 2012 22:51:10 +0000 (00:51 +0200)]
dsputil_mmx: fix incorrect assembly code

In ff_put_pixels_clamped_mmx(), there are two assembly code blocks.
In the first block (in the unrolled loop), the instructions
"movq 8%3, %%mm1 \n\t", and so forth, have problems.

From above instruction, it is clear what the programmer wants: a load from
p + 8. But this assembly code doesn’t guarantee that. It only works if the
compiler puts p in a register to produce an instruction like this:
"movq 8(%edi), %mm1". During compiler optimization, it is possible that the
compiler will be able to constant propagate into p. Suppose p = &x[10000].
Then operand 3 can become 10000(%edi), where %edi holds &x. And the instruction
becomes "movq 810000(%edx)". That is, it will stride by 810000 instead of 8.

This will cause a segmentation fault.

This error was fixed in the second block of the assembly code, but not in
the unrolled loop.

How to reproduce:
    This error is exposed when we build using Intel C++ Compiler, with
    IPO+PGO optimization enabled. Crashed when decoding an MJPEG video.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
6 years agortmp: Factorize the code by adding handle_invoke
Samuel Pitoiset [Sat, 21 Jul 2012 10:59:58 +0000 (12:59 +0200)]
rtmp: Factorize the code by adding handle_invoke

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortmp: Factorize the code by adding handle_chunk_size
Samuel Pitoiset [Sat, 21 Jul 2012 10:59:52 +0000 (12:59 +0200)]
rtmp: Factorize the code by adding handle_chunk_size

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortmp: Factorize the code by adding handle_ping
Samuel Pitoiset [Sat, 21 Jul 2012 10:59:51 +0000 (12:59 +0200)]
rtmp: Factorize the code by adding handle_ping

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortmp: Factorize the code by adding handle_client_bw
Samuel Pitoiset [Sat, 21 Jul 2012 10:59:50 +0000 (12:59 +0200)]
rtmp: Factorize the code by adding handle_client_bw

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortmp: Factorize the code by adding handle_server_bw
Samuel Pitoiset [Sat, 21 Jul 2012 10:59:49 +0000 (12:59 +0200)]
rtmp: Factorize the code by adding handle_server_bw

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortmp: Add a new option 'rtmp_pageurl'
Samuel Pitoiset [Tue, 24 Jul 2012 14:29:40 +0000 (16:29 +0200)]
rtmp: Add a new option 'rtmp_pageurl'

This option specifies the URL of the web page in which the media
was embedded.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agodoc: Update the description of the rtmp_tcurl option
Samuel Pitoiset [Tue, 24 Jul 2012 14:29:39 +0000 (16:29 +0200)]
doc: Update the description of the rtmp_tcurl option

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortmp: Make the description of the rtmp_tcurl option more generic
Samuel Pitoiset [Tue, 24 Jul 2012 14:29:38 +0000 (16:29 +0200)]
rtmp: Make the description of the rtmp_tcurl option more generic

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agolibfdk-aacenc: add LATM/LOAS encapsulation support
Kieran Kunhya [Mon, 23 Jul 2012 16:20:04 +0000 (11:20 -0500)]
libfdk-aacenc: add LATM/LOAS encapsulation support

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agosctp: add port missing error message
Jordi Ortiz [Tue, 24 Jul 2012 17:56:39 +0000 (19:56 +0200)]
sctp: add port missing error message

Without this patch a user a bit absent-minded may not notice that
the connection doesn't work because the port is missing.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agotcp: add port missing error message
Jordi Ortiz [Tue, 24 Jul 2012 17:59:53 +0000 (19:59 +0200)]
tcp: add port missing error message

Without this patch a user a bit absent-minded may not notice that
the connection doesn't work because the port is missing.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agoavfilter: Fix printf format string conversion specifier
Diego Biurrun [Tue, 24 Jul 2012 21:58:59 +0000 (23:58 +0200)]
avfilter: Fix printf format string conversion specifier

libavfilter/avfilter.c:224:9: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘int’ [-Wformat]

6 years agortmp: Add credit/copyright to librtmp authors for parts of the RTMPE code
Martin Storsjö [Tue, 24 Jul 2012 13:01:36 +0000 (16:01 +0300)]
rtmp: Add credit/copyright to librtmp authors for parts of the RTMPE code

Our implementation of RTMPE is heavily based on librtmp.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortmp: Move the CONFIG_ condition into the if conditions
Samuel Pitoiset [Tue, 24 Jul 2012 11:46:28 +0000 (13:46 +0200)]
rtmp: Move the CONFIG_ condition into the if conditions

This makes sure these calls are removed by dead code elimination
even if optimization is disabled. This fixes building without
crypto libraries without optimization.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agoaac: Mention abbreviation as well in long_name
Diego Biurrun [Tue, 24 Jul 2012 00:14:38 +0000 (02:14 +0200)]
aac: Mention abbreviation as well in long_name

Most people know the codec as "AAC" and not "Advanced Audio Coding".

6 years agobuild: Skip compiling rtmpdh.h if ffrtmpcrypt protocol is not enabled
Diego Biurrun [Mon, 23 Jul 2012 21:53:34 +0000 (23:53 +0200)]
build: Skip compiling rtmpdh.h if ffrtmpcrypt protocol is not enabled

The ffrtmpcrypt protocol depends on external libraries, which are
also required to compile the header file.

6 years agodoc: Add Git configuration section
Diego Biurrun [Sun, 22 Jul 2012 13:11:25 +0000 (15:11 +0200)]
doc: Add Git configuration section

6 years agoconfigure: Add a dependency on https for rtmpts
Martin Storsjö [Mon, 23 Jul 2012 13:38:45 +0000 (16:38 +0300)]
configure: Add a dependency on https for rtmpts

The rtmpts protocol uses https implicitly, via the ffrtmphttp
protocol, but the ffrtmphttp protocol is also useable for plain
rtmpt without https, so the dependency needs to be added here instead.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortp: Only choose static payload types if the sample rate and channels are right
Adriano Pallavicino [Tue, 17 Jul 2012 07:51:13 +0000 (09:51 +0200)]
rtp: Only choose static payload types if the sample rate and channels are right

If using a different sample rate or number of channels, use a dynamic
payload type instead, where the parameters are passed in the SDP.

G722 is a special case where the normal rules don't apply.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agov410dec: Implement explode mode support
Derek Buitenhuis [Mon, 23 Jul 2012 15:03:58 +0000 (11:03 -0400)]
v410dec: Implement explode mode support

Try and decode broken files, but still fail if explode
mode is enabled.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
6 years agozerocodec: fix direct rendering.
Reimar Döffinger [Sat, 21 Jul 2012 11:22:04 +0000 (13:22 +0200)]
zerocodec: fix direct rendering.

Set picture type before calling get_buffer.
This allows the DR application to make better decisions.
It also fixes a resource leak in case of missing reference frames
since it would call get_buffer but never release_buffer.
Also use FFSWAP to ensure that the AVFrame is properly initialized
in the next get_buffer (in particular that data[0] is NULL).

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
6 years agowav: init st to NULL to avoid a false-positive warning.
Clément Bœsch [Thu, 1 Sep 2011 18:06:05 +0000 (20:06 +0200)]
wav: init st to NULL to avoid a false-positive warning.

If st is NULL, it means no 'fmt ' tag is found, but 'data' tag (which
needs a previous 'fmt ' tag to be parsed correctly and st initialized)
check will make sure st is never dereferenced in that case.

Fixes warning:
    libavformat/wav.c: In function ‘wav_read_header’:
    libavformat/wav.c:499:44: warning: ‘st’ may be used uninitialized in this function [-Wmaybe-uninitialized]

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
6 years agowavpack: set bits_per_raw_sample for S32 samples to properly identify 24-bit
Hendrik Leppkes [Fri, 16 Dec 2011 21:43:35 +0000 (22:43 +0100)]
wavpack: set bits_per_raw_sample for S32 samples to properly identify 24-bit

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
6 years agoh264: refactor NAL decode loop
Ronald S. Bultje [Mon, 23 Jul 2012 03:46:10 +0000 (20:46 -0700)]
h264: refactor NAL decode loop

Write out the NAL decoding loops in full so that they are easier
to parse for a preprocessor without it having to be aware of macros
or other such things in C code.

This also makes the code more readable.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
6 years agoRTMPTE protocol support
Samuel Pitoiset [Fri, 20 Jul 2012 14:36:47 +0000 (16:36 +0200)]
RTMPTE protocol support

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agoRTMPE protocol support
Samuel Pitoiset [Thu, 19 Jul 2012 12:13:58 +0000 (14:13 +0200)]
RTMPE protocol support

This adds two protocols, but one of them is an internal implementation
detail just used as an abstraction layer/generalization in the code. The
RTMPE protocol implementation uses ffrtmpcrypt:// as an alternative to the
tcp:// protocol. This allows moving most of the lower level logic out
from the higher level generic rtmp code.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortmp: Add ff_rtmp_calc_digest_pos()
Samuel Pitoiset [Thu, 5 Jul 2012 11:06:07 +0000 (13:06 +0200)]
rtmp: Add ff_rtmp_calc_digest_pos()

This function is used for calculating digest position for RTMP handshake
packets.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortmp: Rename rtmp_calc_digest to ff_rtmp_calc_digest and make it global
Samuel Pitoiset [Thu, 5 Jul 2012 11:05:46 +0000 (13:05 +0200)]
rtmp: Rename rtmp_calc_digest to ff_rtmp_calc_digest and make it global

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agoswscale: add missing HAVE_INLINE_ASM check.
Ronald S. Bultje [Sun, 22 Jul 2012 20:55:58 +0000 (13:55 -0700)]
swscale: add missing HAVE_INLINE_ASM check.

The function called in this block is under HAVE_INLINE_ASM itself also.

6 years agolavfi: place x86 inline assembly under HAVE_INLINE_ASM.
Ronald S. Bultje [Sun, 22 Jul 2012 00:03:12 +0000 (17:03 -0700)]
lavfi: place x86 inline assembly under HAVE_INLINE_ASM.

This allows compiling this code using compilers that do not understand
gcc-style inline assembly.

6 years agovc1: Add a test for interlaced field pictures
Mashiat Sarker Shakkhar [Mon, 16 Jul 2012 07:45:23 +0000 (07:45 +0000)]
vc1: Add a test for interlaced field pictures

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
6 years agoswscale: Mark all init functions as av_cold
Diego Biurrun [Sun, 22 Jul 2012 10:29:28 +0000 (12:29 +0200)]
swscale: Mark all init functions as av_cold

6 years agoswscale: x86: Drop pointless _mmx suffix from filenames
Diego Biurrun [Sat, 21 Jul 2012 20:33:03 +0000 (22:33 +0200)]
swscale: x86: Drop pointless _mmx suffix from filenames

The files do not contain only MMX code.

6 years agolavf: use conditional notation for default codec in muxer declarations.
Ronald S. Bultje [Sat, 21 Jul 2012 23:44:26 +0000 (16:44 -0700)]
lavf: use conditional notation for default codec in muxer declarations.

This removes the use of macro nesting in these code constructs, which
makes it easier to parse in pre-processors.

6 years agoswscale: place inline assembly bilinear scaler under HAVE_INLINE_ASM.
Ronald S. Bultje [Sun, 22 Jul 2012 21:01:21 +0000 (14:01 -0700)]
swscale: place inline assembly bilinear scaler under HAVE_INLINE_ASM.

6 years agodsputil: ppc: cosmetics: pretty-print
Justin Ruggles [Sun, 22 Jul 2012 18:37:24 +0000 (14:37 -0400)]
dsputil: ppc: cosmetics: pretty-print

6 years agodsputil: x86: add SHUFFLE_MASK_W macro
Jason Garrett-Glaser [Fri, 20 Jul 2012 22:33:06 +0000 (18:33 -0400)]
dsputil: x86: add SHUFFLE_MASK_W macro

Simplifies pshufb masks that operate on words.

6 years agoconfigure: respect CC_O setting in check_cc
Mans Rullgard [Fri, 20 Jul 2012 21:22:18 +0000 (22:22 +0100)]
configure: respect CC_O setting in check_cc

Use compiler-specific replacements for the -o flag in check_cc.
This makes tests work properly with compilers using non-standard
flags.

The tms470 flags are updated to work with this scheme.

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agoFATE: fix the asyncts test
Anton Khirnov [Sun, 22 Jul 2012 09:29:06 +0000 (11:29 +0200)]
FATE: fix the asyncts test

Nellymoser is float, so use oneoff comparison instead of md5.

6 years agobuild: Drop gcc-specific warning flag from header compilation rule
Diego Biurrun [Sat, 21 Jul 2012 23:12:24 +0000 (01:12 +0200)]
build: Drop gcc-specific warning flag from header compilation rule

The flag was added to avoid excessive warning spam, but nowadays those
warnings no longer occur in such large numbers as to require silencing.
Besides, gcc-specific flags do not belong in the Makefiles.

6 years agoFATE: add a test for the asyncts audio filter.
Anton Khirnov [Thu, 5 Jul 2012 08:28:28 +0000 (10:28 +0200)]
FATE: add a test for the asyncts audio filter.

6 years agomatroskadec: return more correct error code on read error.
Anton Khirnov [Sat, 21 Jul 2012 08:48:39 +0000 (10:48 +0200)]
matroskadec: return more correct error code on read error.

6 years agobuffersrc: check ff_get_audio_buffer() for errors.
Anton Khirnov [Sun, 15 Jul 2012 09:29:10 +0000 (11:29 +0200)]
buffersrc: check ff_get_audio_buffer() for errors.

6 years agolavfi: check all ff_get_video_buffer() calls for errors.
Anton Khirnov [Sun, 15 Jul 2012 09:16:53 +0000 (11:16 +0200)]
lavfi: check all ff_get_video_buffer() calls for errors.

6 years agolavfi: check all avfilter_ref_buffer() calls for errors.
Anton Khirnov [Sun, 15 Jul 2012 09:16:53 +0000 (11:16 +0200)]
lavfi: check all avfilter_ref_buffer() calls for errors.

6 years agovf_select: avoid an unnecessary avfilter_ref_buffer().
Anton Khirnov [Sun, 15 Jul 2012 09:00:49 +0000 (11:00 +0200)]
vf_select: avoid an unnecessary avfilter_ref_buffer().

6 years agobuffersrc: avoid creating unnecessary buffer reference
Anton Khirnov [Sun, 15 Jul 2012 08:28:17 +0000 (10:28 +0200)]
buffersrc: avoid creating unnecessary buffer reference

6 years agolavfi: use avfilter_unref_bufferp() where appropriate.
Anton Khirnov [Sun, 15 Jul 2012 08:12:51 +0000 (10:12 +0200)]
lavfi: use avfilter_unref_bufferp() where appropriate.

6 years agovf_fps: add more error checks.
Anton Khirnov [Sun, 15 Jul 2012 08:07:59 +0000 (10:07 +0200)]
vf_fps: add more error checks.

6 years agovf_fps: fix a memleak on malloc failure.
Anton Khirnov [Sun, 15 Jul 2012 07:50:49 +0000 (09:50 +0200)]
vf_fps: fix a memleak on malloc failure.

6 years agolavfi: check all ff_start_frame/draw_slice/end_frame calls for errors
Anton Khirnov [Sun, 15 Jul 2012 07:47:01 +0000 (09:47 +0200)]
lavfi: check all ff_start_frame/draw_slice/end_frame calls for errors

6 years agolavfi: add error handling to end_frame().
Anton Khirnov [Sat, 14 Jul 2012 07:25:33 +0000 (09:25 +0200)]
lavfi: add error handling to end_frame().

6 years agolavfi: add error handling to draw_slice().
Anton Khirnov [Sat, 14 Jul 2012 07:25:33 +0000 (09:25 +0200)]
lavfi: add error handling to draw_slice().