ffmpeg.git
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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()

7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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]

7 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>
7 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>
7 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".

7 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.

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

7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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.

7 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.

7 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>
7 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

7 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.

7 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.

7 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.

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

7 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.

7 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>
7 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.

7 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.

7 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.

7 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.

7 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.

7 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.

7 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.

7 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().

7 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

7 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.

7 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.

7 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.

7 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

7 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().

7 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().

7 years agolavfi: add error handling to start_frame().
Anton Khirnov [Sun, 8 Jul 2012 15:29:42 +0000 (17:29 +0200)]
lavfi: add error handling to start_frame().

7 years agoBump libavcodec and libavformat minor versions for G.723.1 decoder and demuxer
Kostya Shishkov [Sun, 22 Jul 2012 06:06:19 +0000 (08:06 +0200)]
Bump libavcodec and libavformat minor versions for G.723.1 decoder and demuxer

7 years agoG.723.1 demuxer and decoder
Mohamed Naufal Basheer [Thu, 17 Mar 2011 22:56:50 +0000 (23:56 +0100)]
G.723.1 demuxer and decoder

Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
7 years agoAdd a shift parameter to celp_lp_synthesis_filter()
Mohamed Naufal Basheer [Tue, 10 Jul 2012 17:58:39 +0000 (19:58 +0200)]
Add a shift parameter to celp_lp_synthesis_filter()

This is intended for reuse by the G.723.1 decoder

Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
7 years agolibopenjpeg: K&R formatting cosmetics
Luca Barbato [Thu, 19 Jul 2012 20:22:08 +0000 (22:22 +0200)]
libopenjpeg: K&R formatting cosmetics

7 years agoyadif: use emms_c() instead of inline assembly for emms invocations.
Ronald S. Bultje [Sun, 22 Jul 2012 00:04:06 +0000 (17:04 -0700)]
yadif: use emms_c() instead of inline assembly for emms invocations.

7 years agoac3: don't use different names for option tables in the template file.
Ronald S. Bultje [Sat, 21 Jul 2012 23:42:36 +0000 (16:42 -0700)]
ac3: don't use different names for option tables in the template file.

The variables which are declared in the teplate file are static and
therefore there is no symbol clash.

7 years agolavfi: use const for AVFilterPad declarations in all filters.
Ronald S. Bultje [Sat, 21 Jul 2012 16:45:52 +0000 (09:45 -0700)]
lavfi: use const for AVFilterPad declarations in all filters.

7 years agoadpcm: don't duplicate identical AVSampleFmt array for each encoder.
Ronald S. Bultje [Sat, 21 Jul 2012 15:56:18 +0000 (08:56 -0700)]
adpcm: don't duplicate identical AVSampleFmt array for each encoder.

7 years agoconfigure: cosmetics: Group test dependencies together
Diego Biurrun [Tue, 10 Jul 2012 20:18:42 +0000 (22:18 +0200)]
configure: cosmetics: Group test dependencies together

7 years agoconfigure: add more passthrough flags in tms470 filter
Mans Rullgard [Fri, 20 Jul 2012 00:27:53 +0000 (01:27 +0100)]
configure: add more passthrough flags in tms470 filter

This is in preparation for following changes.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoconfigure: move flag filtering functions out of if/else blocks
Mans Rullgard [Wed, 18 Jul 2012 19:27:09 +0000 (20:27 +0100)]
configure: move flag filtering functions out of if/else blocks

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agox86: swscale: Place inline assembly code under appropriate #ifdefs
Ronald S. Bultje [Sun, 15 Jul 2012 04:25:55 +0000 (21:25 -0700)]
x86: swscale: Place inline assembly code under appropriate #ifdefs

Fixes compilation for compilers that do not support gcc inline assembly.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
7 years agortsp: remove terminal comma in FF_RTP_FLAG_OPTS macro.
Ronald S. Bultje [Sat, 21 Jul 2012 14:13:48 +0000 (14:13 +0000)]
rtsp: remove terminal comma in FF_RTP_FLAG_OPTS macro.

This makes usage of the macro look more natural when
used with array entries.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
7 years agoconfigure: Remove redundant RTMPT/RTMPTS dependencies
Samuel Pitoiset [Thu, 19 Jul 2012 12:16:01 +0000 (14:16 +0200)]
configure: Remove redundant RTMPT/RTMPTS dependencies

The incompatibility with librtmp is already expressed in the ffrtmphttp
protocol dependency declaration, which both RTMPT and RTMPTS depend on.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
7 years agoconfigure: add filtering of host cflags/ldflags
Mans Rullgard [Fri, 20 Jul 2012 12:48:13 +0000 (13:48 +0100)]
configure: add filtering of host cflags/ldflags

This is in preparation for supporting host compilers with
non-standard flags.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoconfigure: initialise all flag filters at the same place
Mans Rullgard [Fri, 20 Jul 2012 11:20:23 +0000 (12:20 +0100)]
configure: initialise all flag filters at the same place

This is more consistent, and doing it earlier is harmless.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoconfigure: add filtering of linker flags
Mans Rullgard [Fri, 20 Jul 2012 02:06:49 +0000 (03:06 +0100)]
configure: add filtering of linker flags

This allows filtering of linker flags the same was as already
supported for CFLAGS.  The filter must be initialised to 'echo'
early since it is invoked by --extra-ldflags.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoconfigure: name some variables more consistently
Mans Rullgard [Fri, 20 Jul 2012 11:02:18 +0000 (12:02 +0100)]
configure: name some variables more consistently

Name variables pertaining to various types of flags with 'cflags' etc
as prefix instead of suffix.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoconfigure: remove filter_cppflags
Mans Rullgard [Fri, 20 Jul 2012 11:02:29 +0000 (12:02 +0100)]
configure: remove filter_cppflags

This is not used and the current design would not work properly
if mixing tools needing different filters.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoconfigure: set icc_version where it is needed
Mans Rullgard [Wed, 18 Jul 2012 19:40:38 +0000 (20:40 +0100)]
configure: set icc_version where it is needed

This variable is only used once, so setting it there is clearer.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agompegenc: remove disabled code
Diego Biurrun [Fri, 29 Jul 2011 10:01:37 +0000 (12:01 +0200)]
mpegenc: remove disabled code

7 years agolavfi: unref AVFilterLink.out_buf in ff_end_frame().
Anton Khirnov [Sat, 14 Jul 2012 15:09:43 +0000 (17:09 +0200)]
lavfi: unref AVFilterLink.out_buf in ff_end_frame().

This reduces code duplication and prevents stale pointers from remaining
on the link.

7 years agolavfi: unref AVFilterLink.cur_buf in ff_end_frame().
Anton Khirnov [Sat, 14 Jul 2012 15:09:43 +0000 (17:09 +0200)]
lavfi: unref AVFilterLink.cur_buf in ff_end_frame().

This reduces code duplication and prevents stale pointers from remaining
on the link.

7 years agovsrc_testsrc: avoid an unnecessary avfilter_ref_buffer().
Anton Khirnov [Sun, 15 Jul 2012 09:12:10 +0000 (11:12 +0200)]
vsrc_testsrc: avoid an unnecessary avfilter_ref_buffer().

7 years agovf_slicify: clear AVFilterLink.cur_buf in start_frame().
Anton Khirnov [Wed, 11 Jul 2012 07:58:43 +0000 (09:58 +0200)]
vf_slicify: clear AVFilterLink.cur_buf in start_frame().

The buffer is passed on to the next filter, so we shouldn't keep any
pointers to it.

7 years agovf_settb: simplify start_frame().
Anton Khirnov [Wed, 11 Jul 2012 09:00:48 +0000 (11:00 +0200)]
vf_settb: simplify start_frame().

Avoid pointless filter ref/unref. Just use the reference passed to
start_frame().

7 years agovf_fieldorder: don't give up its own reference to the output buffer.
Anton Khirnov [Sun, 8 Jul 2012 15:01:17 +0000 (17:01 +0200)]
vf_fieldorder: don't give up its own reference to the output buffer.

7 years agovf_pad: don't give up its own reference to the output buffer.
Anton Khirnov [Sun, 8 Jul 2012 15:01:17 +0000 (17:01 +0200)]
vf_pad: don't give up its own reference to the output buffer.

7 years agovf_overlay: don't access a buffer reference that's been given away.
Anton Khirnov [Sun, 8 Jul 2012 03:34:20 +0000 (05:34 +0200)]
vf_overlay: don't access a buffer reference that's been given away.

7 years agovf_drawtext: don't give up its own reference to the input buffer.
Anton Khirnov [Sun, 8 Jul 2012 02:20:22 +0000 (04:20 +0200)]
vf_drawtext: don't give up its own reference to the input buffer.

Directly forwarding the input buffer to the next filter means that
drawtext no longer owns any references to it and thus shouldn't refer to
it in any way.

7 years agovf_gradfun: don't store two pointers to one AVFilterBufferRef.
Anton Khirnov [Sun, 8 Jul 2012 02:07:05 +0000 (04:07 +0200)]
vf_gradfun: don't store two pointers to one AVFilterBufferRef.

7 years agovf_delogo: don't store two pointers to one AVFilterBufferRef.
Anton Khirnov [Sun, 8 Jul 2012 02:07:05 +0000 (04:07 +0200)]
vf_delogo: don't store two pointers to one AVFilterBufferRef.

7 years agovf_aspect: clear AVFilterLink.cur_buf in start_frame().
Anton Khirnov [Wed, 11 Jul 2012 07:58:43 +0000 (09:58 +0200)]
vf_aspect: clear AVFilterLink.cur_buf in start_frame().

The buffer is passed on to the next filter, so we shouldn't keep any
pointers to it.

7 years agolavfi: add avfilter_unref_bufferp()
Robert Nagy [Mon, 16 Apr 2012 06:17:25 +0000 (08:17 +0200)]
lavfi: add avfilter_unref_bufferp()

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agolibopenjpeg: introduce lowres and lowqual private options
Luca Barbato [Wed, 18 Jul 2012 23:31:39 +0000 (01:31 +0200)]
libopenjpeg: introduce lowres and lowqual private options

OpenJPEG can decode in lower resolution or decode only a number
of enhancement layers.