1543 Commits

Author SHA1 Message Date
Diego Biurrun
3f785a538b configure: Make warnings from -Wreturn-type fatal errors
These warnings have no false positives and point to serious bugs.
(cherry picked from commit 99853cb8d4237b810b2fffb4a34f66fd0064ef72)

Conflicts:

	configure

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-02-19 00:56:54 +01:00
Ronald S. Bultje
371e221d63 dxva2: include dxva.h if found
Apparently, some build environments require dxva.h even for dxva2,
while others lack this header entirely.  Including it conditionally
allows building in both cases.

Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit fa84506177f0246b30d4ea6a99ee5d419f3e4550)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-09-13 04:41:59 +02:00
Michael Niedermayer
598eb973a7 Merge remote-tracking branch 'qatar/release/0.6' into release/0.6
* qatar/release/0.6: (32 commits)
  Bump version number for 0.6.6 release.
  tqi: Pass errors from the MB decoder
  ea: check chunk_size for validity.
  png: check bit depth for PAL8/Y400A pixel formats.
  dxva2: define required feature selection macros
  mingw32: merge checks for mingw-w64 and mingw32-runtime >= 3.15 into one
  mingw32: properly check if vfw capture is supported by the system headers
  configure: properly check for mingw-w64 through installed headers. mingw-w64 can also target 32-bit code.
  qdm2: clip array indices returned by qdm2_get_vlc().
  kmvc: Check palsize.
  shorten: Use separate pointers for the allocated memory for decoded samples.
  shorten: check for realloc failure
  shorten: Fix out of bound writes in fix_bitshift()
  shorten: Prevent block size from increasing
  shorten: remove VLA and check for buffer overflow
  adpcm: ADPCM Electronic Arts has always two channels
  h264: Add check for invalid chroma_format_idc
  aacsbr: prevent out of bounds memcpy().
  dpcm: ignore extra unpaired bytes in stereo streams.
  vqavideo: return error if image size is not a multiple of block size
  ...

Conflicts:
	libavcodec/atrac3.c
	libavcodec/h264_ps.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2012-06-04 12:38:11 +02:00
Ramiro Polla
77630b68e5 mingw32: merge checks for mingw-w64 and mingw32-runtime >= 3.15 into one
Originally committed as revision 24204 to svn://svn.ffmpeg.org/ffmpeg/trunk
(cherry picked from commit e26011d0f495de1148b8014995cbe923611b6b76)
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2012-06-02 19:25:12 -04:00
Ramiro Polla
732dbc0f03 mingw32: properly check if vfw capture is supported by the system headers
Remove check for an specific w32api version, checking instead if vfw.h
supports vfw capture. The defines in w32api 3.12 were wrong, so this must be
accounted for in the check.

Originally committed as revision 24203 to svn://svn.ffmpeg.org/ffmpeg/trunk
(cherry picked from commit ec1ee802a2e1cb3317bd44851cc28f95b5916051)
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>

Conflicts:

	configure
2012-06-02 19:25:12 -04:00
Ramiro Polla
68d2c6e872 configure: properly check for mingw-w64 through installed headers. mingw-w64 can also target 32-bit code.
Originally committed as revision 24156 to svn://svn.ffmpeg.org/ffmpeg/trunk
(cherry picked from commit 0a4307d6307516d333ce2cde2a2ffa0f50bc176c)
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2012-06-02 19:25:12 -04:00
Michael Niedermayer
603a282f8f Merge remote-tracking branch 'qatar/release/0.6' into release/0.6
* qatar/release/0.6:
  update version
  Release notes and changelog for 0.6.3
  Fix memory (re)allocation in matroskadec.c, related to MSVR-11-0080.
  cavs: fix some crashes with invalid bitstreams
  libvo-aacenc: Sync up with 0.7.2
  Fix MMX rgb24 to yuv conversion with gcc 4.6
  oggdec: prevent heap corruption.
  Fix ff_imdct_calc_sse() on gcc-4.6
  backport libvo-aacenc wrapper for aac encoding

Conflicts:
	Changelog
	VERSION

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2011-11-06 01:50:29 +01:00
Reinhard Tartler
2ad6e14457 backport libvo-aacenc wrapper for aac encoding 2011-05-13 12:43:40 +02:00
Michael Niedermayer
15cfc6c97d Merge remote-tracking branch 'newdev/release/0.6' into release/0.6
* newdev/release/0.6:
  Support writing 2d float arrays.
  Add missing dependencies for the AAC-HE backport for hardcoded tables
  configure: Add the -D parameter to the dlltool command
  Set the correct target for mingw64 dlltool
  configure: use dlltools instead of lib.exe
  release notes and changelog for 0.6.2

Conflicts:
	Changelog

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2011-03-24 02:22:00 +01:00
Martin Storsjö
52f9b632b5 configure: Add the -D parameter to the dlltool command
This is required for the generated .lib file to actually
be usable by MSVC.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
(cherry picked from commit 77e41e047dc487e318a0a47e02cfa99d25459b8a)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
2011-03-22 12:42:56 +01:00
Luca Barbato
79e0cbae33 Set the correct target for mingw64 dlltool
That fixes .lib creation for the win64 target.
(cherry picked from commit 417516f63f8a9ee214ee9fa6fcb483962ea0f096)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
2011-03-22 12:42:55 +01:00
Luca Barbato
7fc5bffb54 configure: use dlltools instead of lib.exe
This way building ffmpeg on mingw won't require windows specific tools
(cherry picked from commit ec10a9ab461b26b96eff7bbbb8623f42d8ee04ad)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
2011-03-22 12:42:55 +01:00
Reinhard Tartler
ba1927dda9 partially rename FFmpeg to Libav
update mailing list references and irc channels in configure
(cherry picked from commit 070c5d0f3530c16c92b81f3f0de2943410367c00)
2011-03-18 18:34:49 +01:00
Reinhard Tartler
d7e98ea6ac configure: fix symver detection with icc 10
Apparently the compiler sometimes bypasses the normal assembler, in
which case the asm label variant works.  If the file contains any
inline asm, this bypassing is not done, and the assembler chokes on
invalid syntax.  Inserting a dummy asm() statement in the test when
the compiler supports it makes sure no shortcuts are taken and the
test fails as it should.

backport r23616 by mru


Originally committed as revision 23618 to svn://svn.ffmpeg.org/ffmpeg/branches/0.6
2010-06-15 19:44:30 +00:00
Reinhard Tartler
522f1861ca Add compatibility wrappers for functions moved from lavf to lavc
When symbol versioning is enabled, moving symbols from one library to
another breaks binary compatibility.  This adds wrappers with the old
version tag for the av_*packet functions recently moved to lavc.

backport r23611 by mru


Originally committed as revision 23613 to svn://svn.ffmpeg.org/ffmpeg/branches/0.6
2010-06-15 13:31:27 +00:00
Reinhard Tartler
44f91788a5 revert r23610, better patch is pending
Originally committed as revision 23612 to svn://svn.ffmpeg.org/ffmpeg/branches/0.6
2010-06-15 13:29:20 +00:00
Reinhard Tartler
03b47bb8d7 add symver hacks for gnu linkers
this patch restores binary compatibility for the av_*_packet symbols that have
been moved from libavformat to libavcodec.  This patch works for gnu toolchains
only; support for ARM RCVT will be handed in for a later point release as soon
as the patch is ready and approved by the ARM maintainer(s).


Originally committed as revision 23610 to svn://svn.ffmpeg.org/ffmpeg/branches/0.6
2010-06-15 12:29:19 +00:00
Reinhard Tartler
3229bf8573 librtmp may link to different ssl implementations
Make sure we link using the right libs by using pkg-config



backport r23511 by lu_zero


Originally committed as revision 23550 to svn://svn.ffmpeg.org/ffmpeg/branches/0.6
2010-06-09 15:55:02 +00:00
Reinhard Tartler
eb4b8b96fc libvpx now has an (L)GPL-compatible license.
backport r23482 by diego


Originally committed as revision 23487 to svn://svn.ffmpeg.org/ffmpeg/branches/0.6
2010-06-05 13:58:13 +00:00
James Zern
c3cd8890fe VP8 encoding via libvpx.
Patch by James Zern, Google, Inc.


backport r23449 by cehoyos


Originally committed as revision 23455 to svn://svn.ffmpeg.org/ffmpeg/branches/0.6
2010-06-03 21:36:38 +00:00
Diego Biurrun
661092004f Require --enable-nonfree flag for libvpx.
The license of libvpx is incompatible with the (L)GPL.  As long as this is
the case, the only way to use it is by marking the result as nonfree.

backport r23371 by diego


Originally committed as revision 23390 to svn://svn.ffmpeg.org/ffmpeg/branches/0.6
2010-05-30 22:25:40 +00:00
James Zern
8261cce1f0 VP8 decoding via libvpx
Patch by James Zern for Google, Inc., jzern google com

backportd r23191,23303,23307-23308 by conrad, cehoyos and mstorsjo

Originally committed as revision 23374 to svn://svn.ffmpeg.org/ffmpeg/branches/0.6
2010-05-29 14:03:03 +00:00
Janne Grunau
a70e7cc928 Add -ldl to libfaadbin_extralibs instead of libfaadbin_decoder_extralibs.
The latter does not exist and thus compilation fails.
patch by Janne Grunau, janne-ffmpeg jannau.net


backport r23087 by diego


Originally committed as revision 23217 to svn://svn.ffmpeg.org/ffmpeg/branches/0.6
2010-05-21 18:25:46 +00:00
Reinhard Tartler
dc04fb36d7 Remove hardcoded-tables hack for IA-64: with latest binutils that now actually
causes linking errors instead of avoiding them.


backport r23058 by reimar


Originally committed as revision 23188 to svn://svn.ffmpeg.org/ffmpeg/branches/0.6
2010-05-19 13:30:30 +00:00
Måns Rullgård
b05394a081 configure: allow compiler-specific flags for --disable-optimizations
ICC needs at least -O1 to link so add this when optimisations are
otherwise disabled.

Originally committed as revision 23013 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-03 15:14:55 +00:00
Carl Eugen Hoyos
121d78d00c Allow to set archiver tool ar.
Originally committed as revision 23010 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-02 18:59:15 +00:00
Måns Rullgård
3bfd582c96 Set ARCH=c with --disable-asm, fix build
Originally committed as revision 22967 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-26 20:30:02 +00:00
Ronald S. Bultje
005ad8a0de Make WMAVoice decoder depend on DCT/RDFT
Originally committed as revision 22955 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-23 16:41:55 +00:00
Måns Rullgård
07876e25c8 Workaround for missing llrintf()
Originally committed as revision 22954 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-23 16:28:10 +00:00
Måns Rullgård
60877ad941 Revert "Fix libx264 configure check to use pkg-config if available."
There are problems using pkg-config, and a better solution is being
worked on.

Originally committed as revision 22914 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-19 19:37:31 +00:00
Jason Garrett-Glaser
73f3f30de5 Fix libx264 configure check to use pkg-config if available.
Originally committed as revision 22913 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-19 19:34:37 +00:00
Måns Rullgård
8469ae22a8 configure: simplify $COMPONENT_LIST handling
This lets check_deps set the generic CONFIG_ENCODERS and friends using
an _if_any construct.

Originally committed as revision 22911 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-19 12:49:56 +00:00
Måns Rullgård
0afab17ef9 configure: simplify vaapi dependencies
Originally committed as revision 22910 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-19 12:49:53 +00:00
Måns Rullgård
c89c96e989 configure: simplify vdpau dependencies
Originally committed as revision 22909 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-19 12:49:51 +00:00
Alexander Strange
13cb218724 configure: restore -mdynamic-no-pic on darwin (missing since r20497)
Darwin compilers default to PIC on, so -mdynamic-no-pic (which disables it
again) needs to be added to cflags before enable pic is checked.

Fixes compilation without --enable-shared at least the 10.6 system compiler
for x86-32.
Fixes speed regression on all darwin arches except x86-64.

Originally committed as revision 22730 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-30 16:28:00 +00:00
Howard Chu
0f943ce663 Implement support to RTMP, RTMPT, RTMPE, RTMPTE, RTMPS protocols via
librtmp.

Patch by Howard Chu <hyc * highlandsun * com>.

Originally committed as revision 22710 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-28 13:39:36 +00:00
Stefano Sabatini
87958234f9 Implement av_strerror().
Originally committed as revision 22684 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-25 22:46:35 +00:00
Måns Rullgård
43f60eba19 Move arch-specific makefile parts into $arch/Makefile
Originally committed as revision 22569 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-16 21:22:59 +00:00
Måns Rullgård
e0e335a023 configure: do not use $_
Both bash and ksh abuse this variable even in POSIX mode, leading
to unpleasant surprises.

Originally committed as revision 22568 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-16 21:22:54 +00:00
Måns Rullgård
4693b031a3 Move H264 dsputil functions into their own struct
This moves the H264-specific functions from DSPContext to the new
H264DSPContext.  The code is made conditional on CONFIG_H264DSP
which is set by the codecs requiring it.

The qpel and chroma MC functions are not moved as these are used by
non-h264 code.

Originally committed as revision 22565 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-16 01:17:00 +00:00
Måns Rullgård
2fad097788 Add FATE tests
This adds a "fate" make target which runs the full FATE test suite.
Individual tests can be run with "make fate-$testname".

The location of the FATE test samples must be specified with the
--samples=PATH option to configure.

The tests/fate-update.sh script regenerates the references files and
test list from the online FATE database.  These are checked in since
generating them requires non-standard tools.

Originally committed as revision 22552 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-15 19:23:24 +00:00
Martin Storsjö
0298cc04bd Add dependencies used by the RDT and ASF/RTP code
Originally committed as revision 22538 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-15 08:35:07 +00:00
Måns Rullgård
05aec7bb87 Separate DWT from snow and dsputil
This moves the DWT functions from snow.c and dsputil.c to a file of
their own.  A new struct, DWTContext, holds the function pointers
previously part of DSPContext.

Originally committed as revision 22522 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-14 17:50:12 +00:00
Diego Biurrun
2138dc99fc Add _XOPEN_SOURCE=600 to CPPFLAGS on NetBSD.
This make NetBSD compile out of the box at the cost of a hack, but a
locally contained one that is preferable to the one used in the wild.
Currently the NetBSD FATE box adds -D_NETBSD_SOURCE to CPPFLAGS to work
around broken system headers. Since it is unlikely for NetBSD to fix their
headers, it is better to use a standard flag instead of a system-specific one.

As a sideeffect, this allows getting rid of a local _NETBSD_SOURCE definition.

Originally committed as revision 22486 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-12 17:28:02 +00:00
Ramiro Polla
bb55e3a33d Document --disable-everything in configure --help.
Originally committed as revision 22481 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-12 13:03:40 +00:00
Måns Rullgård
3952471da5 configure: remove stray semicolon
Originally committed as revision 22445 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-11 00:42:13 +00:00
Måns Rullgård
54a2ae3728 configure: use map() function in a couple of places
Originally committed as revision 22444 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-11 00:39:06 +00:00
Måns Rullgård
36e2dea032 configure: add --disable-everything option
This disables all codecs, formats, etc.  It saves some typing when
only a few components are desired.

Originally committed as revision 22443 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-11 00:39:02 +00:00
Måns Rullgård
47b1860eef configure: allow mips64el and powerpc64 as values for --arch
Originally committed as revision 22439 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-10 22:24:39 +00:00
Måns Rullgård
9a894c48ae undef av_always_inline before redefining
Fixes numerous warnings with --enable-small or --disable-optimizations.

Originally committed as revision 22430 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-10 12:29:44 +00:00