platform/upstream/libav.git
11 years agopcmdec: use planar sample format for pcm_s16le_planar
Justin Ruggles [Tue, 28 Aug 2012 15:12:40 +0000 (11:12 -0400)]
pcmdec: use planar sample format for pcm_s16le_planar

11 years agovorbisdec: use float planar sample format
Justin Ruggles [Wed, 29 Aug 2012 02:43:05 +0000 (22:43 -0400)]
vorbisdec: use float planar sample format

12 years agox86: h264_intrapred: Fix C function names in comments
Diego Biurrun [Wed, 14 Nov 2012 00:47:11 +0000 (01:47 +0100)]
x86: h264_intrapred: Fix C function names in comments

Function names changed after switching to declaration with
PRED4x4/8x8/8x8L/16x16 macros in the C code.

12 years agox86: SPLATD: port to cpuflags
Diego Biurrun [Sun, 15 Jul 2012 16:33:59 +0000 (18:33 +0200)]
x86: SPLATD: port to cpuflags

12 years agoPGS subtitles: Set AVSubtitle pts value
John Stebbins [Fri, 2 Nov 2012 16:30:39 +0000 (09:30 -0700)]
PGS subtitles: Set AVSubtitle pts value

pts should be that of the packet containing the presentation segment.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years agoconfigure: Refactor CPPFLAGS settings for glibc/uclibc
Diego Biurrun [Sat, 13 Oct 2012 17:21:34 +0000 (18:21 +0100)]
configure: Refactor CPPFLAGS settings for glibc/uclibc

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agoconfigure: add basic support for ARM AArch64
Mans Rullgard [Fri, 16 Nov 2012 21:02:53 +0000 (21:02 +0000)]
configure: add basic support for ARM AArch64

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agobuild: set -U__STRICT_ANSI__ for newlib
Mans Rullgard [Fri, 16 Nov 2012 21:02:15 +0000 (21:02 +0000)]
build: set -U__STRICT_ANSI__ for newlib

This is (erroneously) required to enable various things in the
newlib headers.  As cygwin uses newlib, it is covered by this.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agox86: lavr: fix stack allocation for 7 and 8 channel downmixing on x86-32
Ronald S. Bultje [Mon, 29 Oct 2012 20:18:04 +0000 (16:18 -0400)]
x86: lavr: fix stack allocation for 7 and 8 channel downmixing on x86-32

Fixes crashes on Win32 and stack overruns on x86-32 in general.

12 years agolavr: fix the decision for writing directly to the output buffer
Justin Ruggles [Thu, 1 Nov 2012 14:13:51 +0000 (10:13 -0400)]
lavr: fix the decision for writing directly to the output buffer

If there are any samples remaining in the output fifo from previous conversion
calls, we have to output those samples first instead of doing direct output
of the current samples.

12 years agoparisc: work around bug in gcc 4.3 and later
Mans Rullgard [Wed, 14 Nov 2012 15:56:46 +0000 (15:56 +0000)]
parisc: work around bug in gcc 4.3 and later

A bug in tail call optimisation in gcc 4.3 and later on parisc causes
numerous tests to fail.  Disabling this optimisation gives a working
build.  See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55023

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agoFATE: add a bink version 'b' test
Anton Khirnov [Thu, 15 Nov 2012 08:56:54 +0000 (09:56 +0100)]
FATE: add a bink version 'b' test

12 years agoFATE: add a bink version 'i' test
Anton Khirnov [Thu, 15 Nov 2012 08:56:54 +0000 (09:56 +0100)]
FATE: add a bink version 'i' test

12 years agolibswscale: remove unnecessary direct #if LIBSWSCALE_VERSION_MAJOR
Janne Grunau [Fri, 16 Nov 2012 14:00:49 +0000 (15:00 +0100)]
libswscale: remove unnecessary direct #if LIBSWSCALE_VERSION_MAJOR

SWS_CPU_CAPS are deprecated and slated to removed with libswscale major
version 3. No need to provide a SWS_CPU_CAPS_MMX2 as backward
compatibility define under the same explicit condition.

12 years agocpu.h: define AV_CPU_FLAG_MMX2 for libavutil major 52
Janne Grunau [Fri, 16 Nov 2012 13:55:08 +0000 (14:55 +0100)]
cpu.h: define AV_CPU_FLAG_MMX2 for libavutil major 52

12 years agoh264: Fix parameters to ff_er_add_slice() call
Janne Grunau [Thu, 15 Nov 2012 15:21:41 +0000 (16:21 +0100)]
h264: Fix parameters to ff_er_add_slice() call

s->mb_x is reset to zero a couple of lines above. It does not make
sense to call ff_er_add_slice() with 0 as endx when the end of the
macroblock row was reached. Fixes unnecessary and counterproductive
error resilience in https://bugzilla.libav.org/show_bug.cgi?id=394.

CC: libav-stable@libav.org
12 years agoh264: always check ref_count for validity
Janne Grunau [Thu, 15 Nov 2012 21:03:58 +0000 (22:03 +0100)]
h264: always check ref_count for validity

Fixes a crash with zuffed files.

12 years agox86: dsputil: port to cpuflags
Diego Biurrun [Sun, 15 Jul 2012 13:45:11 +0000 (15:45 +0200)]
x86: dsputil: port to cpuflags

12 years agocrc: av_crc() parameter names should match between .c, .h and doxygen
Diego Biurrun [Wed, 14 Nov 2012 00:40:25 +0000 (01:40 +0100)]
crc: av_crc() parameter names should match between .c, .h and doxygen

12 years agoavserver: replace av_read_packet with av_read_frame
Janne Grunau [Thu, 25 Oct 2012 14:19:16 +0000 (16:19 +0200)]
avserver: replace av_read_packet with av_read_frame

12 years agoavserver: fix constness casting warnings
Janne Grunau [Thu, 25 Oct 2012 13:55:05 +0000 (15:55 +0200)]
avserver: fix constness casting warnings

Use a different char* for extracting info string from the URL. The
other pointer can be made const then which elimates the need for a
cast and fixes the following warnings:
warning: to be safe all intermediate pointers in cast from ‘char **’ to
‘const char **’ must be ‘const’ qualified [-Wcast-qual]

12 years agoAPIChanges: add entry for av_read_packet deprecation
Janne Grunau [Thu, 25 Oct 2012 14:26:06 +0000 (16:26 +0200)]
APIChanges: add entry for av_read_packet deprecation

12 years agomxfdec: fix typo in mxf_read_seek()
Janne Grunau [Fri, 26 Oct 2012 18:01:43 +0000 (20:01 +0200)]
mxfdec: fix typo in mxf_read_seek()

Check the number of index tables before using byte offset based seeking
instead of the index_tables pointer.

Found by Måns Rullgård <mans@mansr.com>.

12 years agoavserver: use freopen to redirect stdin/out/err to /dev/null
Janne Grunau [Thu, 25 Oct 2012 12:54:48 +0000 (14:54 +0200)]
avserver: use freopen to redirect stdin/out/err to /dev/null

12 years agoavserver: remove daemon mode
Mans Rullgard [Wed, 25 Apr 2012 12:08:54 +0000 (12:08 +0000)]
avserver: remove daemon mode

This code spews a multitude of warnings with glibc (unchecked
return values), some of them possibly warranted.  Furthermore,
the deamonisation is not suitable for use with typical startup
scripts as it does not provide the PID of the daemon in any way.
Users wishing to run avserver as a daemon can still do so using
start-stop-daemon or equivalent tools.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
12 years agoconfigure: Check for -Werror parameters on clang
Martin Storsjö [Tue, 13 Nov 2012 17:01:51 +0000 (19:01 +0200)]
configure: Check for -Werror parameters on clang

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agodoxygen: remove obsolete options from Doxyfile
Janne Grunau [Sat, 27 Oct 2012 22:43:12 +0000 (00:43 +0200)]
doxygen: remove obsolete options from Doxyfile

The options USE_INLINE_TREES, SHOW_DIRECTORIES and HTML_ALIGN_MEMBERS
became obsolete with doxygen 1.8.1 (releaded 2012-05-19). The generated
outpu for older doxygen versions should not change since they were set
to the default value.

12 years agoconfigure: Add option to disable all command line programs
Diego Biurrun [Sat, 10 Nov 2012 17:10:59 +0000 (18:10 +0100)]
configure: Add option to disable all command line programs

12 years agobgmc: Fix av_malloc checks in ff_bgmc_init()
Xi Wang [Wed, 14 Nov 2012 18:45:24 +0000 (13:45 -0500)]
bgmc: Fix av_malloc checks in ff_bgmc_init()

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years agortp: set the payload type as stream id
Luca Barbato [Sun, 11 Nov 2012 19:44:28 +0000 (20:44 +0100)]
rtp: set the payload type as stream id

Support multiple video/audio streams with different format in the
same session.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years agoavformat: clarify stream id for muxing
Luca Barbato [Sat, 10 Nov 2012 15:20:30 +0000 (16:20 +0100)]
avformat: clarify stream id for muxing

12 years agofate: Add dependencies for aac, alac, amrnb, amrwb, atrac tests
Diego Biurrun [Fri, 19 Oct 2012 23:12:18 +0000 (01:12 +0200)]
fate: Add dependencies for aac, alac, amrnb, amrwb, atrac tests

12 years agoppc: do not pass redundant compiler flags
Mans Rullgard [Wed, 14 Nov 2012 00:07:13 +0000 (00:07 +0000)]
ppc: do not pass redundant compiler flags

The -mpowerpc64 and -mpowerpc-gfxopt flags are implicitly set by
-mcpu as needed.  Passing them explicitly is redundant and can
conflict with user-supplied flags.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agoavutil: change GET_UTF8 to not use av_log2()
Mans Rullgard [Tue, 13 Nov 2012 15:49:39 +0000 (15:49 +0000)]
avutil: change GET_UTF8 to not use av_log2()

This removes an inter-library dependency on ff_log2_tab causing
linking errors in some configurations.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agosegment: fix NULL pointer dereference in seg_write_header()
Xi Wang [Wed, 14 Nov 2012 07:52:32 +0000 (02:52 -0500)]
segment: fix NULL pointer dereference in seg_write_header()

Since the pointer `oc' is NULL, oc->oformat->name will cause a null
pointer dereference.  This patch changes it to seg->oformat->name.

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agox86: mmx2 ---> mmxext in asm constructs
Diego Biurrun [Mon, 9 Jul 2012 22:04:18 +0000 (00:04 +0200)]
x86: mmx2 ---> mmxext in asm constructs

12 years agoDrop broken and unused CABAC test program.
Diego Biurrun [Fri, 5 Oct 2012 10:12:52 +0000 (12:12 +0200)]
Drop broken and unused CABAC test program.

12 years agox86: h264_weight_10bit: port to cpuflags
Diego Biurrun [Sun, 15 Jul 2012 13:44:39 +0000 (15:44 +0200)]
x86: h264_weight_10bit: port to cpuflags

12 years agolibtheoraenc: add missing pixdesc.h header
Luca Barbato [Tue, 13 Nov 2012 16:42:13 +0000 (17:42 +0100)]
libtheoraenc: add missing pixdesc.h header

Was left out from c1a02e884ac785033baab356a5437adf057a4189.

12 years agoavcodec: remove ff_is_hwaccel_pix_fmt
Luca Barbato [Mon, 12 Nov 2012 00:25:44 +0000 (01:25 +0100)]
avcodec: remove ff_is_hwaccel_pix_fmt

It is used only in one place and is unlikely it would be needed
elsewhere.

12 years agopixdesc: add av_pix_fmt_get_chroma_sub_sample
Luca Barbato [Mon, 12 Nov 2012 00:25:43 +0000 (01:25 +0100)]
pixdesc: add av_pix_fmt_get_chroma_sub_sample

Deprecate avcodec_get_chroma_sub_sample.

12 years agohlsenc: stand alone hls segmenter
Luca Barbato [Fri, 26 Oct 2012 14:36:56 +0000 (16:36 +0200)]
hlsenc: stand alone hls segmenter

Simplifies usage but has higher latency.

12 years agoyop: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 22:59:00 +0000 (18:59 -0400)]
yop: set channel layout

12 years agowtv: set channel layout for mpeg audio
Justin Ruggles [Sat, 7 Apr 2012 22:55:43 +0000 (18:55 -0400)]
wtv: set channel layout for mpeg audio

12 years agowestwood_aud: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 22:50:41 +0000 (18:50 -0400)]
westwood_aud: set channel layout

12 years agowc3movie: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 22:49:09 +0000 (18:49 -0400)]
wc3movie: set channel layout

12 years agotmv: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 22:45:49 +0000 (18:45 -0400)]
tmv: set channel layout

12 years agotiertexseq: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 22:44:20 +0000 (18:44 -0400)]
tiertexseq: set channel layout

12 years agoswfdec: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 22:42:26 +0000 (18:42 -0400)]
swfdec: set channel layout

12 years agosol: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 22:38:29 +0000 (18:38 -0400)]
sol: set channel layout

12 years agosmacker: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 22:36:49 +0000 (18:36 -0400)]
smacker: set channel layout

12 years agosiff: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 22:36:08 +0000 (18:36 -0400)]
siff: set channel layout

12 years agosierravmd: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 22:32:13 +0000 (18:32 -0400)]
sierravmd: set channel layout

12 years agortpdec_amr: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 22:24:45 +0000 (18:24 -0400)]
rtpdec_amr: set channel layout

12 years agorsodec: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 22:18:37 +0000 (18:18 -0400)]
rsodec: set channel layout

12 years agormdec: set channel layout for RA version 3
Justin Ruggles [Sat, 7 Apr 2012 22:01:27 +0000 (18:01 -0400)]
rmdec: set channel layout for RA version 3

12 years agoqcp: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 21:57:25 +0000 (17:57 -0400)]
qcp: set channel layout

12 years agopsxstr: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 21:56:19 +0000 (17:56 -0400)]
psxstr: set channel layout

12 years agoomadec: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 21:53:39 +0000 (17:53 -0400)]
omadec: set channel layout

12 years agooggparsespeex: validate channel count and set channel layout
Justin Ruggles [Sat, 7 Apr 2012 21:39:30 +0000 (17:39 -0400)]
oggparsespeex: validate channel count and set channel layout

12 years agonuv: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 21:35:20 +0000 (17:35 -0400)]
nuv: set channel layout

12 years agomxg: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 21:22:05 +0000 (17:22 -0400)]
mxg: set channel layout

12 years agomvi: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 21:17:19 +0000 (17:17 -0400)]
mvi: set channel layout

12 years agompc7: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 21:03:19 +0000 (17:03 -0400)]
mpc7: set channel layout

12 years agommf: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 20:56:48 +0000 (16:56 -0400)]
mmf: set channel layout

12 years agomm: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 20:52:57 +0000 (16:52 -0400)]
mm: set channel layout

12 years agojvdec: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 20:47:15 +0000 (16:47 -0400)]
jvdec: set channel layout

12 years agoiss: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 20:45:48 +0000 (16:45 -0400)]
iss: set channel layout

12 years agoipmovie: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 20:44:46 +0000 (16:44 -0400)]
ipmovie: set channel layout

12 years agoiff: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 18:05:45 +0000 (14:05 -0400)]
iff: set channel layout

12 years agoidroqdec: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 18:03:43 +0000 (14:03 -0400)]
idroqdec: set channel layout

12 years agogxfdec: set channel layout when applicable
Justin Ruggles [Sat, 7 Apr 2012 18:00:04 +0000 (14:00 -0400)]
gxfdec: set channel layout when applicable

12 years agogsmdec: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 17:51:42 +0000 (13:51 -0400)]
gsmdec: set channel layout

12 years agoflvdec: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 17:31:40 +0000 (13:31 -0400)]
flvdec: set channel layout

12 years agodv: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 16:59:32 +0000 (12:59 -0400)]
dv: set channel layout

12 years agodsicin: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 16:56:51 +0000 (12:56 -0400)]
dsicin: set channel layout

12 years agodaud: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 16:55:12 +0000 (12:55 -0400)]
daud: set channel layout

Update FATE reference due to WAVE channel mask now being set correctly.

12 years agocdxl: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 16:49:11 +0000 (12:49 -0400)]
cdxl: set channel layout

12 years agobmv: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 16:12:35 +0000 (12:12 -0400)]
bmv: set channel layout

12 years agobink: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 16:10:46 +0000 (12:10 -0400)]
bink: set channel layout

12 years agobfi: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 16:06:41 +0000 (12:06 -0400)]
bfi: set channel layout

12 years agobethsoftvid: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 16:05:36 +0000 (12:05 -0400)]
bethsoftvid: set channel layout

12 years agoapc: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 15:25:52 +0000 (11:25 -0400)]
apc: set channel layout

12 years agoamr: set channel_layout
Justin Ruggles [Sat, 7 Apr 2012 15:07:16 +0000 (11:07 -0400)]
amr: set channel_layout

12 years agoppc: replace pointer casting with AV_COPY32
Mans Rullgard [Sat, 10 Nov 2012 13:21:52 +0000 (13:21 +0000)]
ppc: replace pointer casting with AV_COPY32

This removes warnings about strict aliasing violations.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agoppc: fix some unused variable warnings
Mans Rullgard [Sat, 10 Nov 2012 13:16:29 +0000 (13:16 +0000)]
ppc: fix some unused variable warnings

The third argument of OP_U8_ALTIVEC is evaluated at most once so
there is no need for a potentially unused temporary variable.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agoconfigure: remove support for -n flag in print_enabled()
Mans Rullgard [Sat, 27 Oct 2012 18:11:04 +0000 (19:11 +0100)]
configure: remove support for -n flag in print_enabled()

This flag is no longer used.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agobinkaudio: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 16:10:59 +0000 (12:10 -0400)]
binkaudio: set channel layout

12 years agobuild: Drop AVX assembly ifdefs
Diego Biurrun [Fri, 19 Oct 2012 17:04:40 +0000 (19:04 +0200)]
build: Drop AVX assembly ifdefs

An assembler able to cope with AVX instructions is now required.

12 years agox86: Require an assembler able to cope with AVX instructions
Diego Biurrun [Fri, 28 Sep 2012 17:36:53 +0000 (19:36 +0200)]
x86: Require an assembler able to cope with AVX instructions

All modern assemblers have this capability.  Older NASM versions
that lack the capability produce code that crashes at runtime,
so it's better to error out during the build process instead.

CC: libav-stable@libav.org
12 years agodoc: git-howto: Leave reviewers time to react before pushing patches
Diego Biurrun [Thu, 25 Oct 2012 16:33:38 +0000 (18:33 +0200)]
doc: git-howto: Leave reviewers time to react before pushing patches

12 years agoInclude libavutil/channel_layout.h instead of libavutil/audioconvert.h
Justin Ruggles [Sat, 10 Nov 2012 15:00:00 +0000 (10:00 -0500)]
Include libavutil/channel_layout.h instead of libavutil/audioconvert.h

Also reorder some other #include when applicable.

12 years agolavu: rename audioconvert.* to channel_layout.* and deprecate audioconvert.h
Justin Ruggles [Sat, 10 Nov 2012 14:03:17 +0000 (09:03 -0500)]
lavu: rename audioconvert.* to channel_layout.* and deprecate audioconvert.h

12 years agomss2: prevent potential uninitialized reads
Alberto Delmás [Sun, 11 Nov 2012 08:47:39 +0000 (09:47 +0100)]
mss2: prevent potential uninitialized reads

The alternative to zeroing on init is setting the corrupted flag in
all cases where pal_pic is not fully written, at the cost of added
complexity.

Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
12 years agomss2: reindent after last commit
Kostya Shishkov [Sun, 11 Nov 2012 14:00:38 +0000 (15:00 +0100)]
mss2: reindent after last commit

12 years agomss2: fix handling of unmasked implicit WMV9 rectangles
Alberto Delmás [Sun, 11 Nov 2012 08:23:06 +0000 (09:23 +0100)]
mss2: fix handling of unmasked implicit WMV9 rectangles

Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
12 years agoconfigure: add lavu dependency to lavr/lavfi .pc files
Anton Khirnov [Sat, 3 Nov 2012 07:14:11 +0000 (08:14 +0100)]
configure: add lavu dependency to lavr/lavfi .pc files

12 years agox86inc: Set program_name outside of x86inc.asm
Diego Biurrun [Tue, 30 Oct 2012 02:21:48 +0000 (03:21 +0100)]
x86inc: Set program_name outside of x86inc.asm

This reduces the local difference to the x264 upstream version.

12 years agox86: h264_qpel_10bit: drop unused parameter from MC10/MC20/MC30 macros
Diego Biurrun [Sat, 28 Jul 2012 02:02:09 +0000 (04:02 +0200)]
x86: h264_qpel_10bit: drop unused parameter from MC10/MC20/MC30 macros

12 years agox86: PALIGNR: port to cpuflags
Diego Biurrun [Sat, 7 Jul 2012 23:30:30 +0000 (01:30 +0200)]
x86: PALIGNR: port to cpuflags