platform/upstream/libav.git
11 years agobmv: get a new frame on every decode_frame(), so we can use direct rendering
Kostya Shishkov [Thu, 18 Oct 2012 09:08:01 +0000 (11:08 +0200)]
bmv: get a new frame on every decode_frame(), so we can use direct rendering

11 years agoconfigure: fix libcdio check
Mans Rullgard [Thu, 18 Oct 2012 21:38:12 +0000 (22:38 +0100)]
configure: fix libcdio check

The compiler/linker flags passed to check_lib2 should not be quoted.

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agortsp: Allow setting the reordering buffer size via an AVOption
Martin Storsjö [Wed, 17 Oct 2012 12:46:30 +0000 (15:46 +0300)]
rtsp: Allow setting the reordering buffer size via an AVOption

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agortsp: Vertically align a constant definition
Martin Storsjö [Wed, 17 Oct 2012 12:24:46 +0000 (15:24 +0300)]
rtsp: Vertically align a constant definition

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agortp: Update the check for distinguishing between RTP and RTCP
Martin Storsjö [Tue, 16 Oct 2012 22:45:39 +0000 (01:45 +0300)]
rtp: Update the check for distinguishing between RTP and RTCP

Also add enums for more RTCP packet types, according to the IANA
list of registered types.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoaac: fix build with hardcoded tables
Mans Rullgard [Thu, 18 Oct 2012 14:32:11 +0000 (15:32 +0100)]
aac: fix build with hardcoded tables

aac_tablegen.h includes aac.h for the POW_SF2_ZERO definition, but
this also pulls in a raft of other headers, some of which are not
safe to use in code built with the host compiler.

Moving POW_SF2_ZERO to aac_tablegen_decl.h, where the declaration
of the array it relates to already resides, fixes the problems.

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agofate: dependencies for screen codec tests
Diego Biurrun [Thu, 18 Oct 2012 15:48:14 +0000 (17:48 +0200)]
fate: dependencies for screen codec tests

11 years agoriff: Move functions around to be covered by appropriate #ifdefs
Diego Biurrun [Wed, 17 Oct 2012 19:32:13 +0000 (21:32 +0200)]
riff: Move functions around to be covered by appropriate #ifdefs

This fixes compilation with --disable-muxers.

11 years agoavformat: Fix references to the removed function av_write_header in comments
Martin Storsjö [Wed, 17 Oct 2012 19:45:23 +0000 (22:45 +0300)]
avformat: Fix references to the removed function av_write_header in comments

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agochangelog: Mention the MSVC DLL support
Martin Storsjö [Thu, 18 Oct 2012 12:06:49 +0000 (15:06 +0300)]
changelog: Mention the MSVC DLL support

Also retroactively add a changelog entry to the 9beta1 list
for general MSVC support, which was present there already.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agofate: add dependencies for misc microsoft codecs
Mans Rullgard [Thu, 18 Oct 2012 02:19:41 +0000 (03:19 +0100)]
fate: add dependencies for misc microsoft codecs

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agofate-twinvq: add dependencies
Mans Rullgard [Thu, 18 Oct 2012 02:16:35 +0000 (03:16 +0100)]
fate-twinvq: add dependencies

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agofate-mpc: add dependencies
Mans Rullgard [Thu, 18 Oct 2012 02:16:04 +0000 (03:16 +0100)]
fate-mpc: add dependencies

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agofate-indeo: add dependencies
Mans Rullgard [Thu, 18 Oct 2012 02:15:26 +0000 (03:15 +0100)]
fate-indeo: add dependencies

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agofate-als: add dependencies
Mans Rullgard [Thu, 18 Oct 2012 02:15:12 +0000 (03:15 +0100)]
fate-als: add dependencies

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agofate: dependencies for demux tests
Mans Rullgard [Thu, 18 Oct 2012 01:25:58 +0000 (02:25 +0100)]
fate: dependencies for demux tests

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agofate: add a dependency helper macro
Mans Rullgard [Thu, 18 Oct 2012 02:12:54 +0000 (03:12 +0100)]
fate: add a dependency helper macro

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agoAdd support for building shared libraries with MSVC
Martin Storsjö [Thu, 18 Oct 2012 08:53:19 +0000 (11:53 +0300)]
Add support for building shared libraries with MSVC

This requires the makedef perl script by Derek, from the
c89-to-c99 repo. That scripts produces a .def file, listing
the symbols to be exported, based on the gcc version scripts
and the built object files.

To properly load non-function symbols from DLL files, the
data symbol declarations need to have the attribute
__declspec(dllimport) when building the calling code. (On mingw,
the linker can fix this up automatically, which is why it has not
been an issue so far. If this attribute is omitted, linking
actually succeeds, but reads from the table will not produce the
desired results at runtime.)

MSVC seems to manage to link DLLs (and run properly) even if
this attribute is present while building the library itself
(which normally isn't recommended) - other object files in the
same library manage to link to the symbol (with a small warning
at link time, like "warning LNK4049: locally defined symbol
_avpriv_mpa_bitrate_tab imported" - it doesn't seem to be possible
to squelch this warning), and the definition of the tables
themselves produce a warning that can be squelched ("warning C4273:
'avpriv_mpa_bitrate_tab' : inconsistent dll linkage, see previous
definition of 'avpriv_mpa_bitrate_tab').

In this setup, mingw isn't able to link object files that refer to
data symbols with __declspec(dllimport) without those symbols
actually being linked via a DLL (linking avcodec.dll ends up with
errors like "undefined reference to `__imp__avpriv_mpa_freq_tab'").
The dllimport declspec isn't needed at all in mingw, so we simply
choose not to declare it for other compilers than MSVC that requires
it. (If ICL support later requires it, the condition can be extended
later to include both of them.)

This also implies that code that is built to link to a certain
library as a DLL can't link to the same library as a static library.
Therefore, we only allow building either static or shared but not
both at the same time. (That is, static libraries as such can be,
and actually are, built - this is used for linking the test tools to
internal symbols in the libraries - but e.g. libavformat built to
link to libavcodec as a DLL cannot link statically to libavcodec.)

Also, linking to DLLs is slightly different from linking to shared
libraries on other platforms. DLLs use a thing called import
libraries, which is basically a stub library allowing the linker
to know which symbols exist in the DLL and what name the DLL will
have at runtime.

In mingw/gcc, the import library is usually named libfoo.dll.a,
which goes next to a static library named libfoo.a. This allows
gcc to pick the dynamic one, if available, from the normal -lfoo
switches, just as it does for libfoo.a vs libfoo.so on Unix. On
MSVC however, you need to literally specify the name of the import
library instead of the static library.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoavcodec: Rename avpriv_frame_rate_tab to ff_mpeg12_frame_rate_tab
Martin Storsjö [Thu, 18 Oct 2012 07:30:03 +0000 (10:30 +0300)]
avcodec: Rename avpriv_frame_rate_tab to ff_mpeg12_frame_rate_tab

This table doesn't need to be shared with libavformat any longer.
Add mpeg12 to the name to make it less ambiguous, while renaming it.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agogxf: Add a local copy of the relevant parts of the frame rate table
Martin Storsjö [Thu, 18 Oct 2012 07:23:12 +0000 (10:23 +0300)]
gxf: Add a local copy of the relevant parts of the frame rate table

This avoids having to share this table across the library
boundaries.

This shared table used to be problematic, if always declaring
all exported data symbols with the dllimport attribute (even
while building that same library), since it needs to be a
link-time constant when it is used in AVCodec declarations
(in mpeg12enc.c).

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoconfigure: Split out msvc as a separate target OS
Martin Storsjö [Sat, 13 Oct 2012 12:57:56 +0000 (15:57 +0300)]
configure: Split out msvc as a separate target OS

The name mingw32 as target OS is both misleading, and very little
of the target OS specific settings actually match.

Since the target OS default is set based on uname, the default
(which on MSYS is set to mingw) is overridden by --toolchain=msvc.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoaviobuf: Remove a senseless ifdef in avio_seek
Martin Storsjö [Wed, 17 Oct 2012 20:00:54 +0000 (23:00 +0300)]
aviobuf: Remove a senseless ifdef in avio_seek

This seemed to assume that one never used writing avio unless
muxers or networking was enabled.

This ifdef is a remnant since 8fa641f8.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agomips64: mark hi/lo registers clobbered in MAC64/MLS64 macros
Mans Rullgard [Wed, 17 Oct 2012 18:45:54 +0000 (19:45 +0100)]
mips64: mark hi/lo registers clobbered in MAC64/MLS64 macros

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agofate: list lavfi tests in a makefile
Mans Rullgard [Tue, 16 Oct 2012 13:35:05 +0000 (14:35 +0100)]
fate: list lavfi tests in a makefile

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agofate: dependencies for seek tests
Mans Rullgard [Tue, 16 Oct 2012 13:20:57 +0000 (14:20 +0100)]
fate: dependencies for seek tests

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agofate: handle lavf test dependencies entirely in make
Mans Rullgard [Tue, 16 Oct 2012 13:06:41 +0000 (14:06 +0100)]
fate: handle lavf test dependencies entirely in make

This makes the lavf tests depend on all codecs and formats they use.

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agofate: dependencies for acodec tests
Mans Rullgard [Tue, 16 Oct 2012 02:14:59 +0000 (03:14 +0100)]
fate: dependencies for acodec tests

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agofate: dependencies for vsynth tests
Mans Rullgard [Tue, 16 Oct 2012 13:37:16 +0000 (14:37 +0100)]
fate: dependencies for vsynth tests

This makes the vsynth tests run only if the required codecs and
formats are enabled.

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agofate: add macros useful for conditionally enabling things
Mans Rullgard [Tue, 16 Oct 2012 13:38:44 +0000 (14:38 +0100)]
fate: add macros useful for conditionally enabling things

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agolibmp3lame: resize the output buffer if needed
Justin Ruggles [Tue, 16 Oct 2012 18:07:04 +0000 (14:07 -0400)]
libmp3lame: resize the output buffer if needed

The LAME API documentation for the required buffer size refers to the size for
a single encode call. However, we store multiple frames in the same output
buffer but only read 1 frame at a time out of it. As a result, the buffer size
given in lame_encode_buffer() is actually smaller than what it should be.
Since we do not know how many frames it will end up buffering, it is best to
just reallocate if needed.

11 years agoconfigure: Add support for Tilera processors
Derek Buitenhuis [Tue, 16 Oct 2012 18:21:06 +0000 (18:21 +0000)]
configure: Add support for Tilera processors

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
11 years agowavdec: check size before reading the data, not after.
Anton Khirnov [Tue, 16 Oct 2012 08:37:29 +0000 (10:37 +0200)]
wavdec: check size before reading the data, not after.

11 years agowav: do not fail on empty INFO tags
Anton Khirnov [Tue, 16 Oct 2012 08:33:52 +0000 (10:33 +0200)]
wav: do not fail on empty INFO tags

Fixes Bug 379

CC: libav-stable@libav.org
11 years agolavf: split wav muxer and demuxer into separate files.
Anton Khirnov [Tue, 16 Oct 2012 08:23:29 +0000 (10:23 +0200)]
lavf: split wav muxer and demuxer into separate files.

11 years agowav muxer: write metadata
Victor Vasiliev [Tue, 16 Oct 2012 08:10:16 +0000 (10:10 +0200)]
wav muxer: write metadata

Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years agoriff: do not write empty INFO tags
Victor Vasiliev [Tue, 16 Oct 2012 08:31:22 +0000 (10:31 +0200)]
riff: do not write empty INFO tags

Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years agolavf: move RIFF INFO tag writing from avienc to riff
Victor Vasiliev [Fri, 25 Nov 2011 19:29:12 +0000 (23:29 +0400)]
lavf: move RIFF INFO tag writing from avienc to riff

It will be useful in the wav muxer.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years agoavconv: fix disabling auto mappings with -map_metadata
Anton Khirnov [Tue, 16 Oct 2012 07:53:39 +0000 (09:53 +0200)]
avconv: fix disabling auto mappings with -map_metadata

CC: libav-stable@libav.org
11 years agoavcodec_encode_audio(): fix invalid free
Rafaël Carré [Mon, 15 Oct 2012 16:41:55 +0000 (18:41 +0200)]
avcodec_encode_audio(): fix invalid free

Since 2bc0de385, AVFrame needs to be initialized
before calling avcodec_get_frame_defaults().

Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years agopcm-mpeg: correct bitrate calculation
Christian Schmidt [Tue, 16 Oct 2012 13:40:58 +0000 (15:40 +0200)]
pcm-mpeg: correct bitrate calculation

Bitrate calculation is off since the bluray spec always specifies
an even number of coded channels. This was honored in the decoder,
but not for bitrate calculation.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
11 years agoffv1: K&R formatting cosmetics
Luca Barbato [Thu, 11 Oct 2012 16:55:53 +0000 (18:55 +0200)]
ffv1: K&R formatting cosmetics

Signed-off-by: Diego Biurrun <diego@biurrun.de>
11 years agofate: Add rangecoder test
Diego Biurrun [Fri, 5 Oct 2012 17:02:42 +0000 (19:02 +0200)]
fate: Add rangecoder test

11 years agonetwork: #include stdint.h in network.h
Mans Rullgard [Sat, 13 Oct 2012 21:57:23 +0000 (22:57 +0100)]
network: #include stdint.h in network.h

This header uses various types provided by stdint.h without
explicitly including it.

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agonut: export codec_tag provided by rawvideo
Luca Barbato [Sat, 13 Oct 2012 17:10:57 +0000 (19:10 +0200)]
nut: export codec_tag provided by rawvideo

Raw audio does not provide valid audio tags while rawvideo does.
The fate refs have to be updated because it undoes the previous tag
change.

11 years agoavserver: move avserver-specific code from ffmdec.c to avserver.c
Mans Rullgard [Mon, 15 Oct 2012 21:24:41 +0000 (22:24 +0100)]
avserver: move avserver-specific code from ffmdec.c to avserver.c

This way avserver only depends on the data structures of the ffm
demuxer, which it already does, and not also on private functions
being exported by the library.

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agobuild: simplify linking tools with cmdutils.o
Mans Rullgard [Mon, 15 Oct 2012 02:59:16 +0000 (03:59 +0100)]
build: simplify linking tools with cmdutils.o

This avoids repeating cmdutils.o in both the prerequisites and
the link command.

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agotiny_psnr: fix range calculation for sample size of 32 bits
Mans Rullgard [Sun, 14 Oct 2012 23:21:53 +0000 (00:21 +0100)]
tiny_psnr: fix range calculation for sample size of 32 bits

For a sample size of 32 bits, the shift would overflow producing
undefined results.  Incidentally, in the only test currently using
32-bit samples, the output matches the reference exactly on most
systems meaning the bad 'max' value is never used.

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agotiny_psnr: check for specified sample size less than 1
Mans Rullgard [Sun, 14 Oct 2012 23:11:44 +0000 (00:11 +0100)]
tiny_psnr: check for specified sample size less than 1

A zero or negative sample size is impossible and should be
reported as an error.

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agofate: improve md5sum utility selection
Mans Rullgard [Sun, 14 Oct 2012 14:49:25 +0000 (15:49 +0100)]
fate: improve md5sum utility selection

The 'md5sum' command is used with the -b flag so the presence test
must also use this flag.

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agorangecoder-test: Drop timer output that clutters stderr
Diego Biurrun [Fri, 5 Oct 2012 16:53:12 +0000 (18:53 +0200)]
rangecoder-test: Drop timer output that clutters stderr

11 years agorangecoder-test: Return in case of an error
Diego Biurrun [Fri, 12 Oct 2012 19:14:56 +0000 (21:14 +0200)]
rangecoder-test: Return in case of an error

11 years agobuild: simplify enabling of compat objects
Mans Rullgard [Sun, 14 Oct 2012 16:56:00 +0000 (17:56 +0100)]
build: simplify enabling of compat objects

Add a configure function to pull in a compat object and set up
redirects in one operation.  This avoids duplicating conditions
across configure and makefiles.

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agoconfigure: simplify argument handling in check_ld
Mans Rullgard [Sun, 14 Oct 2012 00:35:56 +0000 (01:35 +0100)]
configure: simplify argument handling in check_ld

Use the existing filter functions instead of open-coding the
separation of general flags and libraries.

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agoconfigure: simplify get_version() function
Mans Rullgard [Sat, 13 Oct 2012 21:56:25 +0000 (22:56 +0100)]
configure: simplify get_version() function

awk alone can do this, no need for grep.

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agobuild: support asan and tsan toolchain shortcuts
Luca Barbato [Sun, 14 Oct 2012 05:54:22 +0000 (07:54 +0200)]
build: support asan and tsan toolchain shortcuts

11 years agormdec: Move SIPR code shared with Matroska demuxer to a separate file
Diego Biurrun [Sun, 14 Oct 2012 21:41:12 +0000 (23:41 +0200)]
rmdec: Move SIPR code shared with Matroska demuxer to a separate file

11 years agoswscale: try to use mmap only if available
Mans Rullgard [Sat, 13 Oct 2012 16:00:16 +0000 (16:00 +0000)]
swscale: try to use mmap only if available

Some systems, e.g. Minix, have sys/mman.h defining MAP_ANONYMOUS without
providing (working) mmap and friends.  The mmx filter generation code
checks only for MAP_ANONYMOUS, not for availability of mmap itself which
leads to build errors on aforementioned systems.

This changes the conditional compilation to use mmap only if all the
required functions are available.

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agoconfigure: check for mprotect
Mans Rullgard [Sat, 13 Oct 2012 02:40:48 +0000 (02:40 +0000)]
configure: check for mprotect

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agowmapro: use planar sample format
Justin Ruggles [Wed, 29 Aug 2012 02:49:17 +0000 (22:49 -0400)]
wmapro: use planar sample format

11 years agowmalossless: output in planar sample format
Justin Ruggles [Sat, 25 Aug 2012 23:09:40 +0000 (19:09 -0400)]
wmalossless: output in planar sample format

11 years agowmadec: use float planar sample format output
Justin Ruggles [Wed, 29 Aug 2012 03:12:49 +0000 (23:12 -0400)]
wmadec: use float planar sample format output

11 years agoshorten: use planar sample format
Justin Ruggles [Tue, 28 Aug 2012 18:02:41 +0000 (14:02 -0400)]
shorten: use planar sample format

11 years agolavc: update documentation for AVFrame.extended_data
Justin Ruggles [Sun, 14 Oct 2012 18:31:47 +0000 (14:31 -0400)]
lavc: update documentation for AVFrame.extended_data

11 years agoavutil: Do not make ff_ symbols globally visible.
Diego Biurrun [Thu, 4 Oct 2012 17:20:03 +0000 (19:20 +0200)]
avutil: Do not make ff_ symbols globally visible.

11 years agoavutil: Rename ff_set_systematic_pal2() ---> avpriv_set_systematic_pal2()
Diego Biurrun [Thu, 4 Oct 2012 19:15:51 +0000 (21:15 +0200)]
avutil: Rename ff_set_systematic_pal2() ---> avpriv_set_systematic_pal2()

Functions used across libraries should have avpriv_ and not ff_ prefixes.

11 years agobuild: tms470: work around glibc math.h problems
Mans Rullgard [Sat, 13 Oct 2012 02:16:13 +0000 (03:16 +0100)]
build: tms470: work around glibc math.h problems

The glibc definitions of INFINITY and NAN do not work with the
tms470 compiler, nor do our usual fallbacks.

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agoconfigure: improve tms470 compiler usage with glibc
Mans Rullgard [Sat, 13 Oct 2012 01:28:41 +0000 (02:28 +0100)]
configure: improve tms470 compiler usage with glibc

Apply flags to work around glibc quirks only if glibc is detected,
and add a few more such flags.

Do not mess with as/ld settings in probe_cc.  This is not the
proper place.

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agoconfigure: tms470: add mapping for -mfpu=vfpv3-d16 flag
Mans Rullgard [Sat, 13 Oct 2012 00:34:42 +0000 (01:34 +0100)]
configure: tms470: add mapping for -mfpu=vfpv3-d16 flag

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agoconfigure: recognise Minix as OS
Mans Rullgard [Fri, 12 Oct 2012 21:42:27 +0000 (21:42 +0000)]
configure: recognise Minix as OS

No special setup is required for Minix.

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agoconfigure: work around bug in ash shell
Mans Rullgard [Fri, 12 Oct 2012 21:40:07 +0000 (21:40 +0000)]
configure: work around bug in ash shell

The ash 'test' builtin misbehaves if the first operand of a binary
operator looks like a unary operator.

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agoeval-test: make table static const
Mans Rullgard [Fri, 12 Oct 2012 18:35:11 +0000 (19:35 +0100)]
eval-test: make table static const

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agolavr: handle clipping in the float to s32 conversion
Justin Ruggles [Fri, 12 Oct 2012 19:46:53 +0000 (15:46 -0400)]
lavr: handle clipping in the float to s32 conversion

We cannot clip to INT_MAX because that value cannot be exactly
represented by a float value and ends up overflowing during conversion
anyway. We need to use a slightly smaller float value, which ends up
with slightly inaccurate results for samples which clip or nearly clip,
but it is close enough. Using doubles as intermediates in the conversion
would be more accurate, but it takes about twice as much time.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
11 years agonut: support pcm codecs not mapped in avi
Luca Barbato [Fri, 12 Oct 2012 15:29:43 +0000 (17:29 +0200)]
nut: support pcm codecs not mapped in avi

The native tags will be used when available.

11 years agonut: prioritize native tags
Luca Barbato [Fri, 12 Oct 2012 13:49:36 +0000 (15:49 +0200)]
nut: prioritize native tags

Use native tags instead of avi ones, simplifies a lot raw video codecs
handling.

11 years agovc1: Use codec ID from AVCodecContext while parsing frame header
Mashiat Sarker Shakkhar [Thu, 11 Oct 2012 17:13:56 +0000 (13:13 -0400)]
vc1: Use codec ID from AVCodecContext while parsing frame header

This fixes a segfault with samples that I have (both of them MPEG-TS). Looks like
avctx->codec is not being set during parsing.

Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
11 years agoavplay: support mid-stream sample rate changes
Justin Ruggles [Sun, 30 Sep 2012 22:18:00 +0000 (18:18 -0400)]
avplay: support mid-stream sample rate changes

Resample to the rate that was configured in SDL.

11 years agoavplay: use audio parameters from the decoded frame instead of AVCodecContext
Justin Ruggles [Mon, 8 Oct 2012 03:55:32 +0000 (23:55 -0400)]
avplay: use audio parameters from the decoded frame instead of AVCodecContext

11 years agodca: allocate a secondary buffer for extra channels when downmixing
Justin Ruggles [Thu, 11 Oct 2012 18:21:56 +0000 (14:21 -0400)]
dca: allocate a secondary buffer for extra channels when downmixing

The output AVFrame buffer only has data for the downmix channels.
Fixes a segfault when decoding dca with request_channels == 2.

11 years agoconfigure: use utilities from /usr/xpg4/bin if it exists
Mans Rullgard [Fri, 7 Sep 2012 11:50:43 +0000 (12:50 +0100)]
configure: use utilities from /usr/xpg4/bin if it exists

Solaris defaults to non-standard utilities (grep, sed, ...) with
proper ones being in /usr/xpg4/bin.  Prefixing PATH with this
directory when it exists ensures we get correct variants.

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agoavstring-test: fix memory leaks
Mans Rullgard [Fri, 12 Oct 2012 21:20:09 +0000 (22:20 +0100)]
avstring-test: fix memory leaks

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agortpdec_xiph: fix function return type
Mans Rullgard [Thu, 11 Oct 2012 20:59:12 +0000 (21:59 +0100)]
rtpdec_xiph: fix function return type

parse_packed_headers() returns either zero or a negative error code
so its return type must be signed.

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agosmjpeg: fix type of 'ret' variable in smjpeg_read_packet()
Mans Rullgard [Thu, 11 Oct 2012 20:53:22 +0000 (21:53 +0100)]
smjpeg: fix type of 'ret' variable in smjpeg_read_packet()

The 'ret' variable is used for negative error codes so it should
be a signed type.

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agompegvideo: remove write-only variable
Mans Rullgard [Thu, 11 Oct 2012 20:51:41 +0000 (21:51 +0100)]
mpegvideo: remove write-only variable

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agoUse proper return values in case of missing features
Diego Biurrun [Mon, 8 Oct 2012 22:41:34 +0000 (00:41 +0200)]
Use proper return values in case of missing features

11 years agofate: add avstring test
Diego Biurrun [Sun, 30 Oct 2011 21:02:10 +0000 (22:02 +0100)]
fate: add avstring test

11 years agorangecoder-test: Set error message log level to error, instead of debug
Diego Biurrun [Fri, 5 Oct 2012 17:05:48 +0000 (19:05 +0200)]
rangecoder-test: Set error message log level to error, instead of debug

11 years agorangecoder: K&R formatting cosmetics
Diego Biurrun [Fri, 5 Oct 2012 17:05:00 +0000 (19:05 +0200)]
rangecoder: K&R formatting cosmetics

11 years agoavcodec: Remove broken MMI optimizations
Diego Biurrun [Thu, 11 Oct 2012 14:48:27 +0000 (16:48 +0200)]
avcodec: Remove broken MMI optimizations

The code fails to compile and is broken beyond repair.

11 years agoRemove libmpeg2 #define remnants
Diego Biurrun [Thu, 11 Oct 2012 14:35:48 +0000 (16:35 +0200)]
Remove libmpeg2 #define remnants

11 years agoDe-doxygenize some top-level files
Diego Biurrun [Fri, 24 Aug 2012 11:31:50 +0000 (13:31 +0200)]
De-doxygenize some top-level files

11 years agoMove av_reverse table to libavcodec
Diego Biurrun [Thu, 11 Oct 2012 16:50:30 +0000 (18:50 +0200)]
Move av_reverse table to libavcodec

It is only used in that library.

11 years agoavutil: Duplicate ff_log2_tab instead of sharing it across libs
Diego Biurrun [Thu, 4 Oct 2012 19:12:32 +0000 (21:12 +0200)]
avutil: Duplicate ff_log2_tab instead of sharing it across libs

The table is so small that the space gain is not worth the
performance overhead of cross-library access.

11 years agoavfilter: call x86 init functions under if (ARCH_X86), not if (HAVE_MMX)
Diego Biurrun [Wed, 29 Aug 2012 17:37:14 +0000 (19:37 +0200)]
avfilter: call x86 init functions under if (ARCH_X86), not if (HAVE_MMX)

11 years agortspdec: Set the default port for listen mode, if none is specified
Martin Storsjö [Fri, 12 Oct 2012 08:10:09 +0000 (11:10 +0300)]
rtspdec: Set the default port for listen mode, if none is specified

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agotscc2: Fix an out of array access
Michael Niedermayer [Fri, 12 Oct 2012 00:26:50 +0000 (02:26 +0200)]
tscc2: Fix an out of array access

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agortmpproto: Fix an out of array write
Michael Niedermayer [Fri, 12 Oct 2012 00:06:51 +0000 (02:06 +0200)]
rtmpproto: Fix an out of array write

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agortspdec: Fix use of uninitialized byte
Michael Niedermayer [Thu, 11 Oct 2012 21:57:08 +0000 (23:57 +0200)]
rtspdec: Fix use of uninitialized byte

ffurl_read_complete can return 0 as well as negative error codes.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agovp8: reset loopfilter delta values at keyframes.
Sami Pietila [Fri, 12 Oct 2012 14:12:49 +0000 (07:12 -0700)]
vp8: reset loopfilter delta values at keyframes.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
11 years agoavutil: add yuva422p and yuva444p formats
Luca Barbato [Mon, 1 Oct 2012 02:18:02 +0000 (04:18 +0200)]
avutil: add yuva422p and yuva444p formats

11 years agolavu,lavd: do not use av_pix_fmt_descriptors directly.
Anton Khirnov [Sat, 6 Oct 2012 11:29:37 +0000 (13:29 +0200)]
lavu,lavd: do not use av_pix_fmt_descriptors directly.