Justin Ruggles [Sun, 14 Oct 2012 04:12:55 +0000 (00:12 -0400)]
aacdec: use float planar sample format for output
Justin Ruggles [Sun, 25 Nov 2012 16:37:14 +0000 (11:37 -0500)]
lavc: clarify get_buffer() documentation
This is needed for the AAC decoder, which may need to call get_buffer()
more than once if the channel configuration changes.
Justin Ruggles [Mon, 27 Aug 2012 22:17:33 +0000 (18:17 -0400)]
mpegaudiodec: use planar sample format for output unless packed is requested
Justin Ruggles [Sun, 25 Nov 2012 21:11:57 +0000 (16:11 -0500)]
x86: h264 qpel: use the correct number of utilized xmm regs in cglobal
Fixes xmm register clobbering on win64.
Janne Grunau [Fri, 26 Oct 2012 18:26:29 +0000 (20:26 +0200)]
remove #defines to prevent use of discouraged external functions
Preventing the use of discouraged or 'insecure' external functions
through defines in an internal header is not a good solution. The
header is not guaranteed to be included universally which makes
overlooking bad use of said functions during review more likely.
There are cases were those functions either are the most straight
forward solution or even have to be used. Using malloc or free is
required if the allocation or release is done by other libraries.
Daniel Kang [Sat, 13 Oct 2012 15:04:50 +0000 (10:04 -0500)]
x86: h264: Convert 8-bit QPEL inline assembly to YASM
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Daniel Kang [Sat, 13 Oct 2012 15:04:49 +0000 (10:04 -0500)]
x86: h264: Remove 3dnow QPEL code
The only CPUs that have 3dnow and don't have mmxext are 12 years old.
Moreover, AMD has dropped 3dnow extensions from newer CPUs.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diego Biurrun [Fri, 27 Jul 2012 12:25:46 +0000 (14:25 +0200)]
x86: h264_chromamc: port to cpuflags
Paul B Mahol [Wed, 21 Nov 2012 20:15:02 +0000 (20:15 +0000)]
yop: fix typo
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
Anton Khirnov [Sat, 24 Nov 2012 06:55:42 +0000 (07:55 +0100)]
avconv: fix copying per-stream metadata.
It is handled separately from other types because it uses stream
specifiers and currently that triggers an assert in SET_DICT.
CC:libav-stable@libav.org
Marcus Stollsteimer [Mon, 19 Nov 2012 20:39:20 +0000 (21:39 +0100)]
doc: avtools-common-opts: Fix terminology concerning metric prefixes
'k', 'M', and 'G' are SI (unit) prefixes or metric prefixes,
not 'number postfixes'. Also, the statement regarding binary
prefixes ("powers of 2 are used instead of powers of 10")
might be misinterpreted (1 kB = 10^3 B, but 1 KiB != 2^3 B).
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Sean McGovern [Sun, 25 Nov 2012 06:32:57 +0000 (01:32 -0500)]
configure: suncc: Add compiler arch support for Nehalem & Sandy Bridge
GCC does not appear to have a -march= string for Westmere, which is a
bit surprising as it has a few more instructions than a Nehalem, but
a few less than a Sandy Bridge.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diego Biurrun [Wed, 21 Nov 2012 18:28:02 +0000 (19:28 +0100)]
riff: Make ff_riff_tags static and move under appropriate #ifdef
The table is not used outside the file.
Mans Rullgard [Sun, 18 Nov 2012 15:22:04 +0000 (15:22 +0000)]
configure: sort cpuflags section by architecture
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Mon, 22 Oct 2012 23:05:44 +0000 (00:05 +0100)]
configure: properly support DEC/Compaq compiler
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Fri, 26 Oct 2012 13:42:23 +0000 (14:42 +0100)]
av_memcpy_backptr: optimise some special cases
- Add special cases for offsets of 2, 3, or 4 bytes. This means the
offset is always >4 in the generic case, allowing 32-bit copies to
be used there.
- Don't use memcpy() for sizes less than 16 bytes.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Sat, 4 Aug 2012 01:57:53 +0000 (02:57 +0100)]
mpegvideo: simplify dxy calculation in hpel_motion()
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Wed, 3 Oct 2012 12:48:27 +0000 (13:48 +0100)]
build: add rules to generate preprocessed source files
This is useful for debugging. Dependencies for these files are not
generated due to limitations in many compilers.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Anton Khirnov [Wed, 21 Nov 2012 07:48:47 +0000 (08:48 +0100)]
id3v2: fix reading unsynchronized frames.
Current code would incorrectly process e.g. 'ff 00 ff 00 ff' to
'ff ff ff', while it should be 'ff ff 00 ff'.
Fixes Bug 395.
CC: libav-stable@libav.org
Xi Wang [Wed, 14 Nov 2012 08:42:37 +0000 (03:42 -0500)]
cdgraphics: fix incorrect vertical offset mask in cdg_scroll()
The vertical offset mask 0x07 is suspicious.
v_off = FFMIN(data[2] & 0x07, CDG_BORDER_HEIGHT - 1);
Note that v_off is up to 11 (CDG_BORDER_HEIGHT - 1), the correct mask
should be 0x0F.
Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Xi Wang [Wed, 14 Nov 2012 08:25:41 +0000 (03:25 -0500)]
apetag: fix error handling in ff_ape_parse_tag()
The following error handling is broken due to signedness.
int file_size;
uint32_t tag_bytes;
int64_t tag_start;
...
tag_start = file_size - tag_bytes - APE_TAG_FOOTER_BYTES;
if (tag_start < 0) { ... }
Note that tag_bytes is unsigned, which makes the right-hand side of
`tag_start = ...' unsigned, too. The 32-bit unsigned value is then
zero-extended to 64 bits. Therefore, tag_start must be non-negative,
and the check (tag_start < 0) is always false, which breaks the error
handling. This patch fixes the check.
Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diego Biurrun [Wed, 24 Oct 2012 17:14:24 +0000 (19:14 +0200)]
flashsv: Drop unused function and struct parameters
Justin Ruggles [Tue, 20 Nov 2012 05:57:41 +0000 (00:57 -0500)]
pcm: fix decoding of pcm_s16le_planar on big-endian
The sample count is decremented by the DECODE() macro and needs to be reset
in each loop iteration. Also, DECODE() increments the src pointer so that does
not need to be done separately.
Luca Barbato [Sat, 17 Nov 2012 19:34:41 +0000 (20:34 +0100)]
imgconvert: remove PixFmtInfo
It is pleonastic and was used in stale functions pending replacement.
Luca Barbato [Sun, 11 Nov 2012 23:47:57 +0000 (00:47 +0100)]
avcodec: split avpicture from imgconvert
All the non deprecated functions are in avpicture.c now.
Luca Barbato [Mon, 12 Nov 2012 00:17:20 +0000 (01:17 +0100)]
pixdesc: add PIX_FMT_ALPHA flag
Justin Ruggles [Fri, 9 Nov 2012 22:09:11 +0000 (17:09 -0500)]
FATE: add 24-bit ALAC tests
Justin Ruggles [Fri, 9 Nov 2012 22:05:24 +0000 (17:05 -0500)]
FATE: rename ALAC tests from alac-* to alac-16-*
This will distinguish ALAC 16-bit tests from ALAC tests with other bit
depths.
Justin Ruggles [Fri, 9 Nov 2012 22:01:09 +0000 (17:01 -0500)]
alacenc: support 24-bit encoding
Justin Ruggles [Tue, 28 Aug 2012 15:12:40 +0000 (11:12 -0400)]
pcmdec: use planar sample format for pcm_s16le_planar
Justin Ruggles [Wed, 29 Aug 2012 02:43:05 +0000 (22:43 -0400)]
vorbisdec: use float planar sample format
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.
Diego Biurrun [Sun, 15 Jul 2012 16:33:59 +0000 (18:33 +0200)]
x86: SPLATD: port to cpuflags
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>
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>
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>
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>
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.
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.
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>
Anton Khirnov [Thu, 15 Nov 2012 08:56:54 +0000 (09:56 +0100)]
FATE: add a bink version 'b' test
Anton Khirnov [Thu, 15 Nov 2012 08:56:54 +0000 (09:56 +0100)]
FATE: add a bink version 'i' test
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.
Janne Grunau [Fri, 16 Nov 2012 13:55:08 +0000 (14:55 +0100)]
cpu.h: define AV_CPU_FLAG_MMX2 for libavutil major 52
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
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.
Diego Biurrun [Sun, 15 Jul 2012 13:45:11 +0000 (15:45 +0200)]
x86: dsputil: port to cpuflags
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
Janne Grunau [Thu, 25 Oct 2012 14:19:16 +0000 (16:19 +0200)]
avserver: replace av_read_packet with av_read_frame
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]
Janne Grunau [Thu, 25 Oct 2012 14:26:06 +0000 (16:26 +0200)]
APIChanges: add entry for av_read_packet deprecation
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>.
Janne Grunau [Thu, 25 Oct 2012 12:54:48 +0000 (14:54 +0200)]
avserver: use freopen to redirect stdin/out/err to /dev/null
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>
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>
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.
Diego Biurrun [Sat, 10 Nov 2012 17:10:59 +0000 (18:10 +0100)]
configure: Add option to disable all command line programs
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>
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>
Luca Barbato [Sat, 10 Nov 2012 15:20:30 +0000 (16:20 +0100)]
avformat: clarify stream id for muxing
Diego Biurrun [Fri, 19 Oct 2012 23:12:18 +0000 (01:12 +0200)]
fate: Add dependencies for aac, alac, amrnb, amrwb, atrac tests
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>
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>
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>
Diego Biurrun [Mon, 9 Jul 2012 22:04:18 +0000 (00:04 +0200)]
x86: mmx2 ---> mmxext in asm constructs
Diego Biurrun [Fri, 5 Oct 2012 10:12:52 +0000 (12:12 +0200)]
Drop broken and unused CABAC test program.
Diego Biurrun [Sun, 15 Jul 2012 13:44:39 +0000 (15:44 +0200)]
x86: h264_weight_10bit: port to cpuflags
Luca Barbato [Tue, 13 Nov 2012 16:42:13 +0000 (17:42 +0100)]
libtheoraenc: add missing pixdesc.h header
Was left out from
c1a02e884ac785033baab356a5437adf057a4189.
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.
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.
Luca Barbato [Fri, 26 Oct 2012 14:36:56 +0000 (16:36 +0200)]
hlsenc: stand alone hls segmenter
Simplifies usage but has higher latency.
Justin Ruggles [Sat, 7 Apr 2012 22:59:00 +0000 (18:59 -0400)]
yop: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 22:55:43 +0000 (18:55 -0400)]
wtv: set channel layout for mpeg audio
Justin Ruggles [Sat, 7 Apr 2012 22:50:41 +0000 (18:50 -0400)]
westwood_aud: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 22:49:09 +0000 (18:49 -0400)]
wc3movie: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 22:45:49 +0000 (18:45 -0400)]
tmv: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 22:44:20 +0000 (18:44 -0400)]
tiertexseq: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 22:42:26 +0000 (18:42 -0400)]
swfdec: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 22:38:29 +0000 (18:38 -0400)]
sol: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 22:36:49 +0000 (18:36 -0400)]
smacker: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 22:36:08 +0000 (18:36 -0400)]
siff: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 22:32:13 +0000 (18:32 -0400)]
sierravmd: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 22:24:45 +0000 (18:24 -0400)]
rtpdec_amr: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 22:18:37 +0000 (18:18 -0400)]
rsodec: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 22:01:27 +0000 (18:01 -0400)]
rmdec: set channel layout for RA version 3
Justin Ruggles [Sat, 7 Apr 2012 21:57:25 +0000 (17:57 -0400)]
qcp: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 21:56:19 +0000 (17:56 -0400)]
psxstr: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 21:53:39 +0000 (17:53 -0400)]
omadec: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 21:39:30 +0000 (17:39 -0400)]
oggparsespeex: validate channel count and set channel layout
Justin Ruggles [Sat, 7 Apr 2012 21:35:20 +0000 (17:35 -0400)]
nuv: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 21:22:05 +0000 (17:22 -0400)]
mxg: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 21:17:19 +0000 (17:17 -0400)]
mvi: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 21:03:19 +0000 (17:03 -0400)]
mpc7: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 20:56:48 +0000 (16:56 -0400)]
mmf: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 20:52:57 +0000 (16:52 -0400)]
mm: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 20:47:15 +0000 (16:47 -0400)]
jvdec: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 20:45:48 +0000 (16:45 -0400)]
iss: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 20:44:46 +0000 (16:44 -0400)]
ipmovie: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 18:05:45 +0000 (14:05 -0400)]
iff: set channel layout
Justin Ruggles [Sat, 7 Apr 2012 18:03:43 +0000 (14:03 -0400)]
idroqdec: set channel layout