platform/upstream/libav.git
11 years agoFATE: Add Canopus Lossless tests
Derek Buitenhuis [Thu, 23 Aug 2012 18:17:35 +0000 (18:17 +0000)]
FATE: Add Canopus Lossless tests

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
11 years agocllc: Pad swapped buffer
Derek Buitenhuis [Sat, 25 Aug 2012 02:10:19 +0000 (22:10 -0400)]
cllc: Pad swapped buffer

The bitstream buffer must be padded, or the bitstream reader might
read over the end.

Fixes the following valgrind warning:
    Use of uninitialised value of size 8 at 0x591BAE: cllc_decode_frame (cllc.c:166)

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
11 years agoutvideodec: Fix single symbol mode decoding
Jan Ekström [Thu, 23 Aug 2012 20:32:06 +0000 (23:32 +0300)]
utvideodec: Fix single symbol mode decoding

Put the zero length check in place of code that was never used
during decoding, as zero-length slices were generally refused
in decode_frame().

Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
11 years agotruespeech: drop useless casts
Mans Rullgard [Thu, 23 Aug 2012 18:47:29 +0000 (19:47 +0100)]
truespeech: drop useless casts

These values already have the correct types.

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agolibavcodec: drop bogus dependencies from mpc[78] and qdm2
Mans Rullgard [Thu, 23 Aug 2012 17:48:13 +0000 (18:48 +0100)]
libavcodec: drop bogus dependencies from mpc[78] and qdm2

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agompegaudio: move ff_mpa_enwindow to a separate file
Mans Rullgard [Thu, 23 Aug 2012 17:47:49 +0000 (18:47 +0100)]
mpegaudio: move ff_mpa_enwindow to a separate file

This table is used only by mpegaudiodsp and mpegaudioenc.  Separating
it allows dropping some dependencies from mpc[78] and qdm2.

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agoAVOptions: store defaults for INT64 options in int64 union member.
Anton Khirnov [Wed, 22 Aug 2012 08:07:54 +0000 (10:07 +0200)]
AVOptions: store defaults for INT64 options in int64 union member.

Double does not have enough precision to represent all int64 numbers
exactly.

11 years agocmdutils: fix a memleak when specifying an option twice.
Anton Khirnov [Thu, 23 Aug 2012 07:18:06 +0000 (09:18 +0200)]
cmdutils: fix a memleak when specifying an option twice.

11 years agox86: mpegvideo: more sensible names for optimization file and init function
Diego Biurrun [Mon, 13 Aug 2012 11:13:57 +0000 (13:13 +0200)]
x86: mpegvideo: more sensible names for optimization file and init function

11 years agox86: mpegvideoenc: Split optimizations off into a separate file
Diego Biurrun [Mon, 13 Aug 2012 11:11:38 +0000 (13:11 +0200)]
x86: mpegvideoenc: Split optimizations off into a separate file

11 years agodnxhdenc: x86: more sensible names for optimization file and init function
Diego Biurrun [Mon, 13 Aug 2012 10:20:07 +0000 (12:20 +0200)]
dnxhdenc: x86: more sensible names for optimization file and init function

11 years agosvq1/svq3: Move common code out of SVQ1 decoder-specific file
Diego Biurrun [Sun, 19 Aug 2012 20:53:28 +0000 (22:53 +0200)]
svq1/svq3: Move common code out of SVQ1 decoder-specific file

11 years agodirac: add Comments and references to the standard
Jordi Ortiz [Wed, 22 Aug 2012 11:24:34 +0000 (13:24 +0200)]
dirac: add Comments and references to the standard

Signed-off-by: Diego Biurrun <diego@biurrun.de>
11 years agolavr: x86: optimized 6-channel flt to fltp conversion
Justin Ruggles [Wed, 2 May 2012 22:27:30 +0000 (18:27 -0400)]
lavr: x86: optimized 6-channel flt to fltp conversion

11 years agolavr: x86: optimized 2-channel flt to fltp conversion
Justin Ruggles [Wed, 2 May 2012 22:26:01 +0000 (18:26 -0400)]
lavr: x86: optimized 2-channel flt to fltp conversion

11 years agolavr: x86: optimized 6-channel flt to s16p conversion
Justin Ruggles [Wed, 2 May 2012 22:23:20 +0000 (18:23 -0400)]
lavr: x86: optimized 6-channel flt to s16p conversion

11 years agolavr: x86: optimized 2-channel flt to s16p conversion
Justin Ruggles [Wed, 2 May 2012 22:21:26 +0000 (18:21 -0400)]
lavr: x86: optimized 2-channel flt to s16p conversion

11 years agolavr: x86: optimized 6-channel s16 to fltp conversion
Justin Ruggles [Wed, 2 May 2012 22:03:11 +0000 (18:03 -0400)]
lavr: x86: optimized 6-channel s16 to fltp conversion

11 years agolavr: x86: optimized 2-channel s16 to fltp conversion
Justin Ruggles [Wed, 2 May 2012 21:57:56 +0000 (17:57 -0400)]
lavr: x86: optimized 2-channel s16 to fltp conversion

11 years agolavr: x86: optimized 6-channel s16 to s16p conversion
Justin Ruggles [Wed, 2 May 2012 21:54:56 +0000 (17:54 -0400)]
lavr: x86: optimized 6-channel s16 to s16p conversion

11 years agolavr: x86: optimized 2-channel s16 to s16p conversion
Justin Ruggles [Wed, 2 May 2012 21:53:15 +0000 (17:53 -0400)]
lavr: x86: optimized 2-channel s16 to s16p conversion

11 years agolavr: x86: optimized 2-channel fltp to flt conversion
Justin Ruggles [Wed, 2 May 2012 20:32:08 +0000 (16:32 -0400)]
lavr: x86: optimized 2-channel fltp to flt conversion

11 years agolavr: x86: optimized 6-channel fltp to s16 conversion
Justin Ruggles [Wed, 2 May 2012 20:27:11 +0000 (16:27 -0400)]
lavr: x86: optimized 6-channel fltp to s16 conversion

11 years agolavr: x86: optimized 2-channel fltp to s16 conversion
Justin Ruggles [Wed, 2 May 2012 19:50:46 +0000 (15:50 -0400)]
lavr: x86: optimized 2-channel fltp to s16 conversion

11 years agolavr: x86: optimized 6-channel s16p to flt conversion
Justin Ruggles [Wed, 2 May 2012 19:45:29 +0000 (15:45 -0400)]
lavr: x86: optimized 6-channel s16p to flt conversion

11 years agolavr: x86: optimized 2-channel s16p to flt conversion
Justin Ruggles [Wed, 2 May 2012 19:38:11 +0000 (15:38 -0400)]
lavr: x86: optimized 2-channel s16p to flt conversion

11 years agolavr: x86: optimized 6-channel s16p to s16 conversion
Justin Ruggles [Wed, 2 May 2012 19:36:43 +0000 (15:36 -0400)]
lavr: x86: optimized 6-channel s16p to s16 conversion

11 years agolavr: x86: optimized 2-channel s16p to s16 conversion
Justin Ruggles [Wed, 2 May 2012 19:32:08 +0000 (15:32 -0400)]
lavr: x86: optimized 2-channel s16p to s16 conversion

11 years agodoc/APIchanges: add an entry for codec descriptors.
Anton Khirnov [Wed, 22 Aug 2012 08:37:35 +0000 (10:37 +0200)]
doc/APIchanges: add an entry for codec descriptors.

Also fill in missing dates and hashes.

11 years agovorbisenc: set AVCodecContext.bit_rate to 0
Justin Ruggles [Mon, 20 Aug 2012 17:35:48 +0000 (13:35 -0400)]
vorbisenc: set AVCodecContext.bit_rate to 0

The Vorbis encoder is always VBR.

11 years agovorbisenc: fix quality parameter
Justin Ruggles [Mon, 20 Aug 2012 17:30:44 +0000 (13:30 -0400)]
vorbisenc: fix quality parameter

This generates output with bitrates similar to libvorbis for a given quality
value.

11 years agoFATE: add ALAC encoding tests
Justin Ruggles [Tue, 21 Aug 2012 16:48:23 +0000 (12:48 -0400)]
FATE: add ALAC encoding tests

11 years agolpc: fix alignment of windowed samples for odd maximum LPC order
Justin Ruggles [Tue, 21 Aug 2012 16:29:11 +0000 (12:29 -0400)]
lpc: fix alignment of windowed samples for odd maximum LPC order

Fixes crash on x86 due to alignment requirements for w_data in
lpc_apply_welch_window_sse2().

11 years agoalacenc: use s16p sample format as input
Justin Ruggles [Tue, 21 Aug 2012 13:21:56 +0000 (09:21 -0400)]
alacenc: use s16p sample format as input

11 years agoalacenc: remove unneeded sample_fmt check
Justin Ruggles [Tue, 21 Aug 2012 15:27:34 +0000 (11:27 -0400)]
alacenc: remove unneeded sample_fmt check

11 years agoalacenc: fix max_frame_size calculation for the final frame
Justin Ruggles [Tue, 21 Aug 2012 15:29:37 +0000 (11:29 -0400)]
alacenc: fix max_frame_size calculation for the final frame

11 years agoadpcm_swf: Use correct sample offsets when using trellis.
Justin Ruggles [Mon, 20 Aug 2012 16:18:58 +0000 (12:18 -0400)]
adpcm_swf: Use correct sample offsets when using trellis.

Fixes invalid reads when encoding mono streams when trellis is used.

11 years agortmp: support strict rtmp servers
Samuel Pitoiset [Sun, 19 Aug 2012 11:02:23 +0000 (13:02 +0200)]
rtmp: support strict rtmp servers

In order to send or receive a stream FCPublish, FCSubscribe and _checkbw
are completely optional and often not implemented. releaseStream over a
non-existen stream might report an error instead of being silent.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
11 years agomjpegdec: support AVRn interlaced
Michael Niedermayer [Fri, 10 Aug 2012 13:47:07 +0000 (15:47 +0200)]
mjpegdec: support AVRn interlaced

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
11 years agox86: remove FASTDIV inline asm
Mans Rullgard [Sat, 18 Aug 2012 19:22:10 +0000 (20:22 +0100)]
x86: remove FASTDIV inline asm

GCC 4.3 and later do the right thing with the plain C code.  Earlier
versions in 32-bit mode generate one extra instruction, needlessly
zeroing what would be the high half of the shifted value.  At least
two gcc configurations miscompile the inline asm in some situations.

In 64-bit mode, all gcc versions generate imul r64, r64 followed by
shr.  On Intel i7 and later, this imul is faster 32-bit mul.  On
older Intel and all AMD, it is slightly slower.  On Atom it is much
slower.

Considering where the FASTDIV macro is used, any overall negative
performance impact of this change should be negligible.  If anyone
cares, they should file a bug against gcc and get the instruction
selection fixed.

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agobuild: x86: Only compile mpegvideo optimizations when necessary
Diego Biurrun [Mon, 13 Aug 2012 11:02:38 +0000 (13:02 +0200)]
build: x86: Only compile mpegvideo optimizations when necessary

11 years agoconfigure: Drop fastdiv option
Diego Biurrun [Mon, 20 Aug 2012 22:36:16 +0000 (00:36 +0200)]
configure: Drop fastdiv option

There is no point in having the user disable any fastdiv macros.
Besides the condition implementation was broken and only disabled
the C implementation, but no platform specific assembly versions.

11 years agobuild: Make the E-AC-3 encoder select the AC-3 encoder
Diego Biurrun [Sun, 19 Aug 2012 21:19:38 +0000 (23:19 +0200)]
build: Make the E-AC-3 encoder select the AC-3 encoder

The E-AC-3 encoder depends on almost all of the code of the AC-3
encoder, so it makes no sense to enable one without the other.

11 years agofate: flac: Only run tests requiring samples when samples are available
Diego Biurrun [Tue, 21 Aug 2012 22:45:28 +0000 (00:45 +0200)]
fate: flac: Only run tests requiring samples when samples are available

11 years agodirac: use meaningful return values
Jordi Ortiz [Tue, 21 Aug 2012 13:09:40 +0000 (15:09 +0200)]
dirac: use meaningful return values

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
11 years agoflacdec: simplify sample buffer handling
Mans Rullgard [Mon, 2 Jul 2012 00:59:04 +0000 (01:59 +0100)]
flacdec: simplify sample buffer handling

Pass pointer to sample buffer instead of channel number to various
functions called from decode_subframe().  Also simplify a few
expressions within this function.

11 years agoflacdec: simplify loop in decode_residuals()
Mans Rullgard [Mon, 2 Jul 2012 21:39:34 +0000 (22:39 +0100)]
flacdec: simplify loop in decode_residuals()

11 years agofate: make Ut Video encoder tests use bitexact swscale flags
Jan Ekström [Mon, 20 Aug 2012 18:16:42 +0000 (21:16 +0300)]
fate: make Ut Video encoder tests use bitexact swscale flags

The failures on various architectures and compilers on the RGB(A)
tests seem to have been because of one-off YCbCr->RGB conversion
results. This should make the conversion results match on most if
not all code paths.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years agobuild: amrwb: Drop redundant lsp dependency declaration
Diego Biurrun [Mon, 13 Aug 2012 23:51:15 +0000 (01:51 +0200)]
build: amrwb: Drop redundant lsp dependency declaration

11 years agofate: fix utvideoenc tests
Mans Rullgard [Mon, 20 Aug 2012 13:58:02 +0000 (14:58 +0100)]
fate: fix utvideoenc tests

For some reason, the prerequisites have to be specified like this.
Make works in mysterious ways.

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agofate: Add FATE tests for the Ut Video encoder
Jan Ekström [Sun, 19 Aug 2012 17:07:13 +0000 (20:07 +0300)]
fate: Add FATE tests for the Ut Video encoder

Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years agolavc: add Ut Video encoder
Jan Ekström [Mon, 20 Aug 2012 09:15:34 +0000 (12:15 +0300)]
lavc: add Ut Video encoder

Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years agompegvideo_enc: remove stray duplicate line from 7f9aaa4
Anton Khirnov [Sun, 19 Aug 2012 17:28:52 +0000 (19:28 +0200)]
mpegvideo_enc: remove stray duplicate line from 7f9aaa4

11 years agoswscale: x86: fix #endif comments in rgb2rgb template file
Giorgio Vazzana [Thu, 16 Aug 2012 12:35:41 +0000 (14:35 +0200)]
swscale: x86: fix #endif comments in rgb2rgb template file

Signed-off-by: Diego Biurrun <diego@biurrun.de>
11 years agoavconv: mark more options as expert.
Anton Khirnov [Wed, 15 Aug 2012 08:33:36 +0000 (10:33 +0200)]
avconv: mark more options as expert.

11 years agoavconv: split printing "main options" into global and per-file.
Anton Khirnov [Wed, 15 Aug 2012 08:31:46 +0000 (10:31 +0200)]
avconv: split printing "main options" into global and per-file.

11 years agoavconv: refactor help printing.
Anton Khirnov [Tue, 14 Aug 2012 06:56:32 +0000 (08:56 +0200)]
avconv: refactor help printing.

By default don't dump every single option on the user, but print only
the basic options.

Add -h long/full to print more options.

11 years agoavconv: print info/capabilities options in a separate help group.
Anton Khirnov [Tue, 14 Aug 2012 06:21:42 +0000 (08:21 +0200)]
avconv: print info/capabilities options in a separate help group.

11 years agoavtools: add -h demuxer/muxer
Anton Khirnov [Tue, 14 Aug 2012 05:57:56 +0000 (07:57 +0200)]
avtools: add -h demuxer/muxer

11 years agocmdutils: extend -h to allow printing codec details.
Anton Khirnov [Mon, 13 Aug 2012 18:06:25 +0000 (20:06 +0200)]
cmdutils: extend -h to allow printing codec details.

11 years agocmdutils: change semantics of show_help_options() and document it.
Anton Khirnov [Sat, 11 Aug 2012 17:45:30 +0000 (19:45 +0200)]
cmdutils: change semantics of show_help_options() and document it.

Currently it takes a mask and value, such that options for which
(flags & mask) == value.

Change it to take required flags and forbidden flags instead. This is
shorter and simpler to understand.

11 years agoavtools: move some newlines to show_help_options().
Anton Khirnov [Sat, 11 Aug 2012 17:33:27 +0000 (19:33 +0200)]
avtools: move some newlines to show_help_options().

Don't require every caller to supply them.

11 years agoavconv: deprecate -isync.
Anton Khirnov [Sat, 11 Aug 2012 17:19:53 +0000 (19:19 +0200)]
avconv: deprecate -isync.

This option does not do anything.

Also remove OPT_GRAB, since -isync is the last option using it.

11 years agoavconv: reformat the options table.
Anton Khirnov [Sat, 11 Aug 2012 15:00:30 +0000 (17:00 +0200)]
avconv: reformat the options table.

11 years agoavconv: get rid of ugly casts in the options table.
Anton Khirnov [Sat, 11 Aug 2012 14:30:26 +0000 (16:30 +0200)]
avconv: get rid of ugly casts in the options table.

11 years agoavconv: try to match codecs by codec descriptor name as a last resort.
Anton Khirnov [Sat, 11 Aug 2012 13:40:12 +0000 (15:40 +0200)]
avconv: try to match codecs by codec descriptor name as a last resort.

This allows e.g. -c:v h264 to select the libx264 encoder.

11 years agoavtools: fix show_foo() signatures.
Anton Khirnov [Sat, 11 Aug 2012 14:13:54 +0000 (16:13 +0200)]
avtools: fix show_foo() signatures.

show_foo() functions are declared as void show_foo(void), but called as
int show_foo(const char*, const char*).

11 years agovorbisdec: remove some pointless comments
Mans Rullgard [Sat, 18 Aug 2012 13:30:11 +0000 (14:30 +0100)]
vorbisdec: remove some pointless comments

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agoavprobe: add const to AVCodec pointer
Mans Rullgard [Sat, 18 Aug 2012 12:22:57 +0000 (13:22 +0100)]
avprobe: add const to AVCodec pointer

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agolibavformat: add const to AVCodec pointers
Mans Rullgard [Sat, 18 Aug 2012 12:22:38 +0000 (13:22 +0100)]
libavformat: add const to AVCodec pointers

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agopthread: add const to AVCodec pointers
Mans Rullgard [Sat, 18 Aug 2012 12:20:09 +0000 (13:20 +0100)]
pthread: add const to AVCodec pointers

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agompegvideo_enc: don't use deprecated avcodec_encode_video().
Anton Khirnov [Wed, 15 Aug 2012 07:35:18 +0000 (09:35 +0200)]
mpegvideo_enc: don't use deprecated avcodec_encode_video().

11 years agocmdutils: refactor -codecs option.
Anton Khirnov [Sat, 11 Aug 2012 13:23:22 +0000 (15:23 +0200)]
cmdutils: refactor -codecs option.

Make it print a list of AVCodecDescriptors.

Add new -decoders and -encoders options that print lists of decoders and
encoders respectively.

11 years agoavconv: make -shortest a per-output file option.
Anton Khirnov [Sat, 11 Aug 2012 09:50:32 +0000 (11:50 +0200)]
avconv: make -shortest a per-output file option.

11 years agolavc: add avcodec_descriptor_get_by_name().
Anton Khirnov [Sat, 11 Aug 2012 13:32:27 +0000 (15:32 +0200)]
lavc: add avcodec_descriptor_get_by_name().

11 years agolavc: add const to AVCodec* function parameters.
Anton Khirnov [Sat, 11 Aug 2012 12:50:36 +0000 (14:50 +0200)]
lavc: add const to AVCodec* function parameters.

11 years agoswf(dec): replace CODEC_ID with AV_CODEC_ID
Anton Khirnov [Wed, 15 Aug 2012 07:14:35 +0000 (09:14 +0200)]
swf(dec): replace CODEC_ID with AV_CODEC_ID

11 years agodvenc: don't use deprecated AVCODEC_MAX_AUDIO_FRAME_SIZE
Anton Khirnov [Wed, 15 Aug 2012 07:11:31 +0000 (09:11 +0200)]
dvenc: don't use deprecated AVCODEC_MAX_AUDIO_FRAME_SIZE

11 years agortmpdh: Do not generate the same private key every time when using libnettle
Samuel Pitoiset [Thu, 16 Aug 2012 20:27:15 +0000 (22:27 +0200)]
rtmpdh: Do not generate the same private key every time when using libnettle

Replace mpz_random by mpz_urandomb with a random state initialization in
order to improve the randomness.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agortp: remove ff_rtp_get_rtcp_file_handle().
Jordi Ortiz [Fri, 17 Aug 2012 16:41:26 +0000 (18:41 +0200)]
rtp: remove ff_rtp_get_rtcp_file_handle().

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agortsp.c: use ffurl_get_multi_file_handle() instead of ff_rtp_get_rtcp_file_handle()
Jordi Ortiz [Fri, 17 Aug 2012 18:06:27 +0000 (20:06 +0200)]
rtsp.c: use ffurl_get_multi_file_handle() instead of ff_rtp_get_rtcp_file_handle()

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoavio: add (ff)url_get_multi_file_handle() for getting more than one fd
Jordi Ortiz [Fri, 17 Aug 2012 16:38:59 +0000 (18:38 +0200)]
avio: add (ff)url_get_multi_file_handle() for getting more than one fd

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoh264: vdpau: fix crash with unsupported colorspace
Uoti Urpala [Tue, 7 Aug 2012 11:48:06 +0000 (14:48 +0300)]
h264: vdpau: fix crash with unsupported colorspace

The h264_vdpau decoder crashed if output colorspace was not 8-bit 420.
Add a check to error out instead (current hardware does not support
other colorspaces, so successful decoding is not possible).

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoamrwbdec: Decode the fr_quality bit properly
Martin Storsjö [Fri, 17 Aug 2012 11:53:52 +0000 (14:53 +0300)]
amrwbdec: Decode the fr_quality bit properly

The way this bit is decoded was accidentally flipped in b70feb405,
leading to warnings "Encountered a bad or corrupted frame" for each
decoded frame.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agolibvpxenc: use the default bitrate if not set
Luca Barbato [Thu, 16 Aug 2012 18:00:53 +0000 (20:00 +0200)]
libvpxenc: use the default bitrate if not set

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
11 years agoutvideo: Rename utvideo.c to utvideodec.c
Jan Ekström [Fri, 17 Aug 2012 10:33:52 +0000 (13:33 +0300)]
utvideo: Rename utvideo.c to utvideodec.c

Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
11 years agodoc: Fix syntax errors in sample Emacs config
Jordi Ortiz [Wed, 15 Aug 2012 15:58:01 +0000 (17:58 +0200)]
doc: Fix syntax errors in sample Emacs config

Signed-off-by: Diego Biurrun <diego@biurrun.de>
11 years agomjpegdec: more meaningful return values
Luca Barbato [Thu, 16 Aug 2012 21:24:15 +0000 (23:24 +0200)]
mjpegdec: more meaningful return values

11 years agoconfigure: clean up Altivec detection
Mans Rullgard [Wed, 15 Aug 2012 23:10:33 +0000 (00:10 +0100)]
configure: clean up Altivec detection

There used to be one test for Altivec intrinsics support and a
separate test to determine which of two possible syntaxes to use
for vector literals.  Since 2008, we only support the more common
of these so the split test no longer makes sense.

This combines the tests into one and also changes the hard error on
failure to a warning.  The test can reasonably fail if no --cpu flag
is provided (or is provided with an unknown CPU) and the compiler
default target does not support Altivec.  Aborting in this case is
probably over-reacting.

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agogetopt: Remove an unnecessary define
Martin Storsjö [Thu, 16 Aug 2012 19:14:52 +0000 (22:14 +0300)]
getopt: Remove an unnecessary define

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agortmp: Use int instead of ssize_t
Martin Storsjö [Thu, 16 Aug 2012 19:11:13 +0000 (22:11 +0300)]
rtmp: Use int instead of ssize_t

Not all compilers support ssize_t (MSVC doesn't), and none of these
variables need to be larger than 32 bit.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agogetopt: Add missing includes
Martin Storsjö [Thu, 16 Aug 2012 12:04:27 +0000 (15:04 +0300)]
getopt: Add missing includes

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agortmp: Add support for receiving incoming streams
Jordi Ortiz [Thu, 16 Aug 2012 14:04:48 +0000 (16:04 +0200)]
rtmp: Add support for receiving incoming streams

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoAdd missing includes for code relying on external libraries
Martin Storsjö [Thu, 16 Aug 2012 11:24:26 +0000 (14:24 +0300)]
Add missing includes for code relying on external libraries

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoFix even more missing includes after the common.h removal
Martin Storsjö [Thu, 16 Aug 2012 11:02:24 +0000 (14:02 +0300)]
Fix even more missing includes after the common.h removal

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agobuild: Factor out rangecoder dependencies to CONFIG_RANGECODER
Diego Biurrun [Mon, 13 Aug 2012 17:16:06 +0000 (19:16 +0200)]
build: Factor out rangecoder dependencies to CONFIG_RANGECODER

A new hidden config variable is added for the codecs that depend on
the rangecoder parts.

11 years agobuild: Factor out error resilience dependencies to CONFIG_ERROR_RESILIENCE
Diego Biurrun [Mon, 13 Aug 2012 17:13:32 +0000 (19:13 +0200)]
build: Factor out error resilience dependencies to CONFIG_ERROR_RESILIENCE

A new hidden config variable is added for the codecs that depend on
the error resilience parts.

11 years agox86: avcodec: Consistently name all init files
Diego Biurrun [Sat, 11 Aug 2012 21:07:27 +0000 (23:07 +0200)]
x86: avcodec: Consistently name all init files

11 years agoAdd more missing includes after removing the implicit common.h
Martin Storsjö [Thu, 16 Aug 2012 07:22:31 +0000 (10:22 +0300)]
Add more missing includes after removing the implicit common.h

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoAdd some more missing includes after removing the implicit common.h
Martin Storsjö [Wed, 15 Aug 2012 20:27:52 +0000 (23:27 +0300)]
Add some more missing includes after removing the implicit common.h

Signed-off-by: Martin Storsjö <martin@martin.st>