Hendrik Leppkes [Wed, 8 Aug 2012 23:03:44 +0000 (23:03 +0000)]
lagarith: frame multithreading
About 2x speedup going from 1 to 2 threads.
1.7s to 0.85s on foreman CIF.
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
Diego Biurrun [Thu, 9 Aug 2012 01:03:26 +0000 (03:03 +0200)]
doxygen: qdm2: Drop documentation for non-existing function parameters
Diego Biurrun [Wed, 8 Aug 2012 13:41:36 +0000 (15:41 +0200)]
build: add HOSTOBJS to SUBDIR_VARS list
Even though HOSTOBJS are not referenced directly in subdirectory Makefile
snippets right now, robustness requires resetting the variable contents.
Mans Rullgard [Sat, 4 Aug 2012 01:30:02 +0000 (02:30 +0100)]
mpegvideo: reduce excessive inlining of mpeg_motion()
The main benefit of inlining this function is from constant
propagation for the 'field_based' argument. Instead of inlining
all calls, create two versions of the function for field_based
values of 0 and 1.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Fri, 3 Aug 2012 23:50:21 +0000 (00:50 +0100)]
mpegvideo: convert mpegvideo_common.h to a .c file
This file defines a single, huge function, MPV_motion(), which
although being declared inline is not actually inlined by the
compiler (for good reason). There is thus no sense in defining
this function in a header file, resulting in multiple copies of
it in the final library.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Fri, 3 Aug 2012 23:05:46 +0000 (00:05 +0100)]
build: factor out mpegvideo.o dependencies to CONFIG_MPEGVIDEO
This adds a hidden config variable for the mpegvideo.o dependency
and selects from the codecs which require it.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Wed, 8 Aug 2012 16:13:26 +0000 (17:13 +0100)]
Move MASK_ABS macro to libavcodec/mathops.h
This macro is only used in two places, both in libavcodec, so this
is a more sensible place for it.
Two small tweaks to the macro are made:
- removing the trailing semicolon
- dropping unnecessary 'volatile' from the x86 asm
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Wed, 8 Aug 2012 13:37:57 +0000 (14:37 +0100)]
x86: move MANGLE() and related macros to libavutil/x86/asm.h
These x86-specific macros do not belong in generic code.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Wed, 8 Aug 2012 12:51:52 +0000 (13:51 +0100)]
x86: rename libavutil/x86_cpu.h to libavutil/x86/asm.h
This puts x86-specific things in the x86/ subdirectory where they
belong.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Alex Converse [Tue, 7 Aug 2012 19:19:58 +0000 (12:19 -0700)]
aacdec: Don't fall back to the old output configuration when no old configuration is present.
Fixes MP4 files where the first frame is broken.
Samuel Pitoiset [Wed, 8 Aug 2012 12:36:39 +0000 (14:36 +0200)]
rtmp: Add message tracking
Signed-off-by: Martin Storsjö <martin@martin.st>
Martin Storsjö [Wed, 8 Aug 2012 20:05:52 +0000 (23:05 +0300)]
rtsp: Support mpegts in raw udp packets
This is basically the same way as mpegts packets are parsed in
rtpdec.c.
Signed-off-by: Martin Storsjö <martin@martin.st>
Martin Storsjö [Wed, 8 Aug 2012 18:37:47 +0000 (21:37 +0300)]
rtsp: Support receiving plain data over UDP without any RTP encapsulation
EvoStream Media Server can serve data in this format, and
VLC/live555 already supports it.
Signed-off-by: Martin Storsjö <martin@martin.st>
Martin Storsjö [Wed, 8 Aug 2012 18:14:38 +0000 (21:14 +0300)]
rtpdec: Remove an unused include
Signed-off-by: Martin Storsjö <martin@martin.st>
Martin Storsjö [Wed, 8 Aug 2012 20:23:28 +0000 (23:23 +0300)]
rtpenc: Remove an av_abort() that depends on user-supplied data
Signed-off-by: Martin Storsjö <martin@martin.st>
Anton Khirnov [Sun, 5 Aug 2012 08:24:36 +0000 (10:24 +0200)]
vsrc_movie: discourage its use with avconv.
Anton Khirnov [Sun, 5 Aug 2012 06:37:43 +0000 (08:37 +0200)]
avconv: allow no input files.
It is now possible to use lavfi sources.
Anton Khirnov [Sun, 5 Aug 2012 06:30:24 +0000 (08:30 +0200)]
avconv: prevent invalid reads in transcode_init()
Anton Khirnov [Wed, 8 Aug 2012 10:04:53 +0000 (12:04 +0200)]
avconv: rename OutputStream.is_past_recording_time to finished.
The new name is shorter and more accurate, since this variable is no
longer used only for checking recording time constraint.
Anton Khirnov [Sat, 4 Aug 2012 16:35:27 +0000 (18:35 +0200)]
avconv: split the code for processing input packets out of transcode()
Anton Khirnov [Wed, 8 Aug 2012 10:27:50 +0000 (12:27 +0200)]
avconv: send EOF to lavfi even if flushing the decoder fails
Anton Khirnov [Sat, 4 Aug 2012 10:17:43 +0000 (12:17 +0200)]
avconv: get rid of pointless temporary variable.
Anton Khirnov [Sat, 4 Aug 2012 10:12:50 +0000 (12:12 +0200)]
avconv: simplify transcode().
Operate with a pointer to InputFile instead of its index in input_files.
Anton Khirnov [Sat, 4 Aug 2012 10:06:30 +0000 (12:06 +0200)]
avconv: cosmetics
Replace for (;foo == 0;) with while (!foo)
This is prettier.
Anton Khirnov [Sat, 4 Aug 2012 10:04:02 +0000 (12:04 +0200)]
avconv: replace no_packet array in transcode() with a var in InputStream
This simplifies splitting code for reading from input out of
transcode().
Anton Khirnov [Sat, 4 Aug 2012 09:53:08 +0000 (11:53 +0200)]
avconv: remove unused variable from InputFile.
Anton Khirnov [Sat, 4 Aug 2012 09:50:30 +0000 (11:50 +0200)]
avconv: remove commented out cruft.
Anton Khirnov [Fri, 3 Aug 2012 20:09:58 +0000 (22:09 +0200)]
avconv: maintain sync on lavfi outputs.
Before this commit, poll_filters() reads all frames available on each
lavfi output. This does not work for lavfi sources that produce
an unlimited number of frames, e.g. color and similar.
With this commit, poll_filters() reads from output with the lowest
timestamp and returns to wait for more input if no frames are available
on it.
Diego Biurrun [Wed, 8 Aug 2012 00:41:57 +0000 (02:41 +0200)]
build: cosmetics: Reorder some lists in a more logical fashion
Dave Yeo [Wed, 8 Aug 2012 04:46:33 +0000 (21:46 -0700)]
x86: pngdsp: Fix assembly for OS/2
The a.out object format does not allow aligning sections.
On OS/2 LD aligns sections to 16 bytes.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Janne Grunau [Mon, 6 Aug 2012 17:43:36 +0000 (19:43 +0200)]
fate: add test for RTjpeg in nuv with frameheader
Renames the old test to allow using fate-nuv as group for all
nuv tests.
Luca Barbato [Wed, 8 Aug 2012 09:49:02 +0000 (11:49 +0200)]
rtmp: send check_bw as notification
Set the transactionId to 0 to signal the server a return _result/_error
is not expected.
Solves the problems experienced with strict rtmp servers.
Kostya Shishkov [Tue, 7 Aug 2012 17:32:20 +0000 (19:32 +0200)]
g723_1: clip argument for 15-bit version of normalize_bits()
It expects maximum value to be 32767 but calculations in scale_vector()
which uses this function can give it ABS(-32768) which leads to wrong
result and thus clipping is needed.
Kostya Shishkov [Mon, 6 Aug 2012 18:25:16 +0000 (20:25 +0200)]
g723_1: use all LPC vectors in formant postfilter
Due to some mistake LPC vector for the first subframe was used for all
subframes instead of their own LPC vectors.
Mohammad Alsaleh [Tue, 7 Aug 2012 21:31:51 +0000 (21:31 +0000)]
id3v2: Support v2.2 PIC
id3 v2.2 uses image format ("JPG","PNG") instead of mimetypes.
Currently, the attached picture is skipped because the format string
does not match a known picture mimetype.
This patch fixes this behaviour.
Signed-off-by: Mohammad Alsaleh <msal@tormail.org>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Konstantin Pavlov [Wed, 8 Aug 2012 08:30:47 +0000 (12:30 +0400)]
avplay: fix build with lavfi disabled.
Issue introduced in
67339f6e.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Anton Khirnov [Thu, 2 Aug 2012 06:24:02 +0000 (08:24 +0200)]
avconv: split configuring filter configuration to a separate file.
Anton Khirnov [Wed, 1 Aug 2012 16:23:12 +0000 (18:23 +0200)]
avconv: split option parsing into a separate file.
Kostya Shishkov [Tue, 7 Aug 2012 18:22:57 +0000 (20:22 +0200)]
mpc8: do not leave padding after last frame in buffer for the next decode call
Anton Khirnov [Wed, 1 Aug 2012 05:33:56 +0000 (07:33 +0200)]
mpegaudioenc: list supported channel layouts.
Anton Khirnov [Tue, 31 Jul 2012 13:44:00 +0000 (15:44 +0200)]
mpegaudiodec: don't print an error on > 1 frame in a packet.
It's a perfectly normal situation, nothing to spam about.
Anton Khirnov [Tue, 31 Jul 2012 13:32:02 +0000 (15:32 +0200)]
api-example: update to new audio encoding API.
Mans Rullgard [Wed, 9 May 2012 03:29:53 +0000 (04:29 +0100)]
configure: add --enable/disable-random option
This allows creating random configurations which is useful for
testing purposes.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diego Biurrun [Tue, 7 Aug 2012 12:56:38 +0000 (14:56 +0200)]
doc: cygwin: Update list of FATE package requirements
Diego Biurrun [Tue, 7 Aug 2012 15:05:34 +0000 (17:05 +0200)]
build: Remove all installed headers and header directories on uninstall
Mans Rullgard [Tue, 7 Aug 2012 01:11:25 +0000 (02:11 +0100)]
build: change checkheaders to use regular build rules
Many compilers need special flags to compile *.h files as regular
source code, if they will do so at all. Rather than hoping all
compilers will have such a flag and adding mappings for it, create
wrapper .c files for test building single headers.
This allows using the regular rule for compiling C files without the
need for special flags, and it also provides proper dependency tracking
for these objects.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Samuel Pitoiset [Tue, 7 Aug 2012 20:02:27 +0000 (22:02 +0200)]
rtmp: Add a new option 'rtmp_subscribe'
This option specifies the name of live stream to subscribe.
Defaults to rtmp_playpath.
Signed-off-by: Martin Storsjö <martin@martin.st>
Samuel Pitoiset [Tue, 7 Aug 2012 19:51:46 +0000 (21:51 +0200)]
rtmp: Add support for subscribing live streams
When streaming live streams using the Akamai, Edgecast or Limelight CDN,
players cannot simply connect to the live stream. Instead, they have to
subscribe to it, by sending an FC Subscribe call to the server.
Signed-off-by: Martin Storsjö <martin@martin.st>
Samuel Pitoiset [Tue, 7 Aug 2012 10:21:31 +0000 (12:21 +0200)]
rtmp: Factorize simultaneous URLProtocol / AVClass declarations with a macro
Signed-off-by: Martin Storsjö <martin@martin.st>
Mans Rullgard [Tue, 7 Aug 2012 16:43:29 +0000 (17:43 +0100)]
ARM: use Q/R inline asm operand modifiers only if supported
Some compilers do not support the Q/R modifiers used to access
the low/high parts of a 64-bit register pair. Check for this
and disable all uses of it when not supported.
Fixes bug #337.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Derek Buitenhuis [Tue, 7 Aug 2012 16:49:01 +0000 (12:49 -0400)]
configure: Add support for e500mc CPU
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Mans Rullgard [Mon, 6 Aug 2012 01:26:15 +0000 (02:26 +0100)]
x86: fix build with nasm 2.08
It appears that something goes wrong in old nasm versions when the
%+ operator is used in the last argument of a macro invocation and
this argument is tested with %ifdef within the macro. This patch
rearranges the macro arguments such that the %+ operator is never
used in the last argument.
Mans Rullgard [Sun, 5 Aug 2012 23:34:51 +0000 (00:34 +0100)]
x86: use nop cpu directives only if supported
nasm does not support 'CPU foonop' directives. This adds a configure
test for the directive and uses it only if supported.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Sun, 5 Aug 2012 23:21:36 +0000 (00:21 +0100)]
x86: fix rNmp macros with nasm
For some reason, nasm requires this. No harm done to yasm.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Sun, 5 Aug 2012 23:17:40 +0000 (00:17 +0100)]
build: add trailing / to yasm/nasm -I flags
nasm requires a trailing / on paths specified with -I.
It does no harm with yasm.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Sun, 5 Aug 2012 23:16:13 +0000 (00:16 +0100)]
x86: use 32-bit source registers with movd instruction
yasm tolerates mismatch between movd/movq and source register size,
adjusting the instruction according to the register. nasm is more
strict.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Sun, 5 Aug 2012 23:09:48 +0000 (00:09 +0100)]
x86: add colons after labels
nasm prints a warning if the colon is missing.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Anton Khirnov [Sun, 5 Aug 2012 09:11:04 +0000 (11:11 +0200)]
Replace all CODEC_ID_* with AV_CODEC_ID_*
Anton Khirnov [Sun, 5 Aug 2012 08:36:55 +0000 (10:36 +0200)]
lavc: add AV prefix to codec ids.
Yaakov Selkowitz [Mon, 6 Aug 2012 23:32:48 +0000 (00:32 +0100)]
build: fix library installation on cygwin
This installs libraries using the proper names and locations,
generates an import lib for the DLL, and drops no longer needed
linker flags.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Justin Ruggles [Mon, 6 Aug 2012 17:06:25 +0000 (13:06 -0400)]
mpc8: add a flush function
Ensures that the next frame decoded after seeking will be decoded as a
keyframe.
Justin Ruggles [Mon, 6 Aug 2012 16:38:57 +0000 (12:38 -0400)]
mpc8: set packet duration and stream start time instead of tracking frames
Fixes mpc8 timestamps.
Diego Biurrun [Mon, 6 Aug 2012 13:49:51 +0000 (15:49 +0200)]
nuv: K&R formatting cosmetics
Mans Rullgard [Sat, 4 Aug 2012 18:04:08 +0000 (19:04 +0100)]
build: generalise rules and variable settings for av* programs
This simplifies adding extra flags for individual programs
and also allows more than one object file per program.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Janne Grunau [Mon, 6 Aug 2012 11:59:04 +0000 (13:59 +0200)]
nuv: check RTjpeg header for validity
CC: libav-stable@libav.org
Janne Grunau [Mon, 6 Aug 2012 11:50:51 +0000 (13:50 +0200)]
Revert "nuv: check per-frame header for validity."
The check is bogus since the nuv frameheader is already skipped
and the (decompressed) RTjpeg header is checked.
This reverts commit
f6afacdb3b708720c9fb85984b4f7fdbca2b2036.
CC: libav-stable@libav.org
Mans Rullgard [Sun, 5 Aug 2012 21:36:09 +0000 (22:36 +0100)]
imc: remove unused field IMCContext.one_div_log2
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Sun, 5 Aug 2012 21:32:20 +0000 (22:32 +0100)]
imc: fix size of a memset()
IMCContext was changed from an array to a pointer in 66b84e4,
but this memset() was not updated.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Sun, 5 Aug 2012 17:32:03 +0000 (18:32 +0100)]
imc: remove empty if() block
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Sun, 5 Aug 2012 11:06:19 +0000 (12:06 +0100)]
fate: simplify variable setting filter.mak
This removes some needless indirection and duplication.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Martin Storsjö [Sun, 5 Aug 2012 19:55:21 +0000 (22:55 +0300)]
lavf: Declare an AVRational struct without a struct literal
At this place, the normal way of initializing a struct works
fine, there's no need for a struct literal.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diego Biurrun [Tue, 31 Jul 2012 22:17:43 +0000 (00:17 +0200)]
x86: h264_idct: Rename x264_add8x4_idct_sse2 --> h264_add8x4_idct_sse2
Mans Rullgard [Sun, 29 Jul 2012 13:58:53 +0000 (14:58 +0100)]
rational: add av_inv_q() returning the inverse of an AVRational
This allows simplifying a few expressions.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Derek Buitenhuis [Sat, 4 Aug 2012 23:41:20 +0000 (19:41 -0400)]
dpx: Make start offset unsigned
Some corrupted files would end up with a negative offset,
and segfault.
Fixes bug #177.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Reinhard Tartler [Sat, 4 Aug 2012 13:24:15 +0000 (15:24 +0200)]
lavfi: properly signal out-of-memory error in ff_filter_samples
Found with a clang-scan report on http://fate.libav.org/csa/
Derek Buitenhuis [Sat, 4 Aug 2012 19:40:35 +0000 (15:40 -0400)]
cosmetics: Fix a few switched periods and linebreaks
Based on a patch by Piotr Bandurski.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Derek Buitenhuis [Sat, 4 Aug 2012 02:13:43 +0000 (22:13 -0400)]
zerocodec: Fix memleak in decode_frame
If there was a failure inflating, or reinitializing
the zstream, the current frame's buffer would be lost.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Derek Buitenhuis [Sat, 4 Aug 2012 01:41:24 +0000 (21:41 -0400)]
zerocodec: Cosmetics
Be consistent with error messages and code formatting.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Justin Ruggles [Sun, 29 Jul 2012 23:22:19 +0000 (19:22 -0400)]
lavr: fix handling of custom mix matrices
Adds some validation for changing parameters after setting the matrix and
fixes a bug in the conversion path setup.
Mans Rullgard [Sat, 4 Aug 2012 11:24:23 +0000 (12:24 +0100)]
fate: force pix_fmt in lagarith-rgb32 test
This makes big and little endian systems use the same output
format.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Ronald S. Bultje [Fri, 3 Aug 2012 03:45:29 +0000 (20:45 -0700)]
fate: add tests for lagarith lossless video codec.
Based on patch by Oana Stratulat <oanaandreeastratulat@gmail.com>.
Mans Rullgard [Thu, 2 Aug 2012 22:18:08 +0000 (23:18 +0100)]
ARMv6: vp8: fix stack allocation with Apple's assembler
In the GNU assembler, a relational expression, bizarrely, has the
value -1 if true, whereas in Apple's it is +1. This patch makes
sure the correct expression is used in both cases.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Thu, 2 Aug 2012 21:53:47 +0000 (22:53 +0100)]
ARM: vp56: allow inline asm to build with clang
The clang integrated assembler does not support pre-UAL syntax,
while gcc requires pre-UAL syntax for ARM code. A patch[1] for
clang to support the old syntax as well has been ignored since
January.
This patch chooses the syntax appropriate for each compiler,
allowing both to build the code. Notably, this change allows
building for iphone with the latest Apple Xcode update.
[1] http://llvm.org/bugs/show_bug.cgi?id=11855
Signed-off-by: Mans Rullgard <mans@mansr.com>
Ronald S. Bultje [Fri, 3 Aug 2012 21:59:16 +0000 (14:59 -0700)]
fft: 3dnow: fix register name typo in DECL_IMDCT macro
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diego Biurrun [Wed, 1 Aug 2012 17:28:08 +0000 (19:28 +0200)]
x86: dct32: port to cpuflags
Diego Biurrun [Sun, 8 Jul 2012 16:42:12 +0000 (18:42 +0200)]
x86: build: replace mmx2 by mmxext
Refactoring mmx2/mmxext YASM code with cpuflags will force renames.
So switching to a consistent naming scheme beforehand is sensible.
The name "mmxext" is more official and widespread and also the name
of the CPU flag, as reported e.g. by the Linux kernel.
Ronald S. Bultje [Fri, 3 Aug 2012 19:06:38 +0000 (12:06 -0700)]
Revert "wmapro: prevent division by zero when sample rate is unspecified"
This reverts commit
36936080239ba9e162f9f5d0f722ce579cb606cf. It was
already applied; no idea why it didn't error out while re-applying it.
Sean McGovern [Thu, 2 Aug 2012 19:37:28 +0000 (15:37 -0400)]
wmapro: prevent division by zero when sample rate is unspecified
This fixes Bugzilla #327:
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Ronald S. Bultje [Fri, 3 Aug 2012 03:46:08 +0000 (20:46 -0700)]
lagarith: fix color plane inversion for YUY2 output.
Ronald S. Bultje [Fri, 3 Aug 2012 03:46:09 +0000 (20:46 -0700)]
lagarith: pad RGB buffer by 1 byte.
For left HFYU prediction, we predict from the buffer buf+1 using 8- or
16-byte reads. This means that aligning the buffer by 16 bytes is in
itself not sufficient, because if the width itself is 16- or 8-byte
aligned, the buffer will not be padded, and thus a read of size 16 at
buf+1 will overflow boundaries at the right edge. Padding the buffer by
1 byte is sufficient to not overflow its boundaries.
Fixes bug 342.
Ronald S. Bultje [Fri, 3 Aug 2012 14:58:26 +0000 (16:58 +0200)]
dsputil: make add_hfyu_left_prediction_sse4() support unaligned src.
This makes add_hfyu_left_prediction_sse4() handle sources that are not
16-byte aligned in its own function rather than by proxying the call to
add_hfyu_left_prediction_ssse3(). This fixes a crash on Win64, since the
sse4 version clobberes xmm6, but the ssse3 version (which uses MMX regs)
does not restore it, thus leading to XMM clobbering and RSP being off.
Fixes bug 342.
Mashiat Sarker Shakkhar [Fri, 3 Aug 2012 14:53:36 +0000 (20:53 +0600)]
vc1dec: Remove separate scaling function for interlaced field MVs
The scaling process for obtaining direct MVs from co-located field MVs
is the same for interlaced field and progressive pictures.
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
Mashiat Sarker Shakkhar [Fri, 3 Aug 2012 14:53:35 +0000 (20:53 +0600)]
vc1dec: Invoke edge_emulation regardless of MV precision
In VC-1 interlaced field pictures, chroma motion vectors can extend beyond
picture boundary even if luma vectors are bounded. The problem shows up
only for hpel interpolated MVs, and may be due to the way motion vectors
are scaled / cropped.
Thanks to Konstantin Shishkov for suggesting the fix. This fixes
long-known segfaults in MC-VC1.ts from videolan streams archive.
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
Diego Biurrun [Wed, 1 Aug 2012 13:31:43 +0000 (15:31 +0200)]
x86: Use consistent 3dnowext function and macro name suffixes
Currently there is a wild mix of 3dn2/3dnow2/3dnowext. Switching to
"3dnowext", which is a more common name of the CPU flag, as reported
e.g. by the Linux kernel, unifies this.
Kostya Shishkov [Thu, 2 Aug 2012 17:34:53 +0000 (19:34 +0200)]
g723_1: scale output as supposed for the case with postfilter disabled
Kostya Shishkov [Thu, 2 Aug 2012 17:15:51 +0000 (19:15 +0200)]
g723_1: increase excitation storage by 4
Fixed codebook mode in 5300 rate may write up to SUBFRAME_LEN + 4 and
that is considered normal by the reference decoder. Without that additional
padding it might overwrite first elements of LPC history.
Kostya Shishkov [Thu, 2 Aug 2012 05:54:16 +0000 (07:54 +0200)]
g723_1: fix upper bound parameter from inverse maximum autocorrelation
Kostya Shishkov [Thu, 2 Aug 2012 05:50:49 +0000 (07:50 +0200)]
g723_1: make scale_vector() behave like the reference
Kostya Shishkov [Thu, 2 Aug 2012 05:48:08 +0000 (07:48 +0200)]
g723_1: fix off-by-one error in normalize_bits()
Kostya Shishkov [Thu, 2 Aug 2012 05:42:44 +0000 (07:42 +0200)]
g723_1: save/restore excitation with offset to store LPC history
The same buffer with saved data is used later in LPC reconstruction, so
it should have some head space for LPC history.