Anton Khirnov [Fri, 28 Dec 2012 08:54:29 +0000 (09:54 +0100)]
pthread: make ff_thread_release_buffer idempotent.
I.e. don't do anything on already released frames.
Anton Khirnov [Sat, 5 Jan 2013 10:45:51 +0000 (11:45 +0100)]
mvi: set framerate
This container does not store timestamps and thus supports CFR only.
Anton Khirnov [Thu, 3 Jan 2013 16:19:01 +0000 (17:19 +0100)]
rawdec: use AVPALETTE_SIZE instead of magic constants.
Anton Khirnov [Thu, 27 Dec 2012 08:01:38 +0000 (09:01 +0100)]
mimic: remove a pointless cast.
Anton Khirnov [Sun, 9 Dec 2012 17:55:53 +0000 (18:55 +0100)]
mdec: return meaningful error codes.
Anton Khirnov [Sun, 9 Dec 2012 17:52:55 +0000 (18:52 +0100)]
mdec: cosmetics, reformat
Anton Khirnov [Sun, 9 Dec 2012 17:44:44 +0000 (18:44 +0100)]
mdec: merge mdec_common_init() into decode_init().
There is no point in keeping those two functions separate.
Anton Khirnov [Wed, 21 Nov 2012 13:55:05 +0000 (14:55 +0100)]
eatgv: use fixed-width types where appropriate.
Diego Biurrun [Sat, 26 Jan 2013 11:19:34 +0000 (12:19 +0100)]
x86: Simplify some arch conditionals
Diego Biurrun [Mon, 28 Jan 2013 19:22:54 +0000 (20:22 +0100)]
bfin: Separate VP3 initialization code
Luca Barbato [Mon, 28 Jan 2013 19:19:07 +0000 (20:19 +0100)]
bfin: update VP3 idct
The block must be set to 0.
Michael Niedermayer [Sun, 27 Jan 2013 14:50:26 +0000 (15:50 +0100)]
x86: hpeldsp: Fix a typo, use the right register
This makes the code actually work.
Signed-off-by: Martin Storsjö <martin@martin.st>
Luca Barbato [Mon, 28 Jan 2013 06:24:51 +0000 (07:24 +0100)]
shorten: fix array subscript is below array bounds warning
Incidentally fixes alpha builds.
Daniel Kang [Sun, 27 Jan 2013 20:28:58 +0000 (20:28 +0000)]
dsputil: Fix error by not using redzone and register name
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Michael Niedermayer [Fri, 25 Jan 2013 20:51:25 +0000 (21:51 +0100)]
swscale: GBRP output support
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Martin Storsjö [Fri, 25 Jan 2013 21:16:23 +0000 (23:16 +0200)]
arm: vp8: Fix the plain-armv6 version of vp8_luma_dc_wht
This makes the plain-armv6 version use the same registers as the
armv6t2 version above.
This fixes fate-vp8 on plain-armv6 devices.
Signed-off-by: Martin Storsjö <martin@martin.st>
Daniel Kang [Sun, 27 Jan 2013 07:22:54 +0000 (02:22 -0500)]
dsputil: x86: Correct the number of registers used in put_no_rnd_pixels16_l2
put_no_rnd_pixels16_l2 allocated 5 instead of 6 registers.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Daniel Kang [Sun, 27 Jan 2013 07:14:53 +0000 (02:14 -0500)]
dsputil: add missing HAVE_YASM guard
Fix compile error under
"--disable-optimizations --disable-yasm --disable-inline-asm"
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Rémi Denis-Courmont [Sat, 26 Jan 2013 20:47:55 +0000 (22:47 +0200)]
hwaccel: do not offer unsupported pixel formats
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Rémi Denis-Courmont [Sat, 26 Jan 2013 20:47:54 +0000 (22:47 +0200)]
vdpau: add missing pixel format for H.264
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Daniel Kang [Sun, 27 Jan 2013 03:45:43 +0000 (03:45 +0000)]
dsputil: x86: Convert mpeg4 qpel and dsputil avg to yasm
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Ronald S. Bultje [Fri, 25 Jan 2013 06:21:12 +0000 (22:21 -0800)]
Move H264/QPEL specific asm from dsputil.asm to h264_qpel_*.asm.
Luca Barbato [Wed, 23 Jan 2013 16:11:42 +0000 (17:11 +0100)]
doc: update the reference for the title
The recent texi2html exports the title as 'fulltitle_no_texi'.
Anton Khirnov [Mon, 7 Jan 2013 06:46:01 +0000 (07:46 +0100)]
mpegvideo_enc: fix indentation in load_input_picture()
Anton Khirnov [Mon, 7 Jan 2013 06:07:20 +0000 (07:07 +0100)]
mpegvideo_enc: do not modify the input frame.
Anton Khirnov [Sun, 6 Jan 2013 15:50:29 +0000 (16:50 +0100)]
mjpegdec: fix indentation
Anton Khirnov [Thu, 3 Jan 2013 16:02:38 +0000 (17:02 +0100)]
rawdec: cosmetics, reformat
Anton Khirnov [Wed, 26 Dec 2012 09:35:16 +0000 (10:35 +0100)]
mimic: return meaningful error codes.
Anton Khirnov [Wed, 26 Dec 2012 09:11:12 +0000 (10:11 +0100)]
mimic: cosmetics, reformat
Anton Khirnov [Sat, 8 Dec 2012 14:20:46 +0000 (15:20 +0100)]
iff: drop ff_ prefix from a static function.
Anton Khirnov [Sat, 8 Dec 2012 11:58:46 +0000 (12:58 +0100)]
pngdec: cosmetics, reformat.
Also remove a commented out line.
Anton Khirnov [Fri, 16 Nov 2012 13:02:08 +0000 (14:02 +0100)]
dxa: return meaningful error codes.
Anton Khirnov [Wed, 21 Nov 2012 18:26:41 +0000 (19:26 +0100)]
eatgq: cosmetics, reformat.
Anton Khirnov [Wed, 21 Nov 2012 18:20:21 +0000 (19:20 +0100)]
eatgq: return meaningful error codes.
Anton Khirnov [Wed, 21 Nov 2012 13:52:54 +0000 (14:52 +0100)]
eatgv: cosmetics, reformat
Anton Khirnov [Wed, 21 Nov 2012 09:26:55 +0000 (10:26 +0100)]
eatgv: return meaningful error codes.
Anton Khirnov [Tue, 20 Nov 2012 11:10:13 +0000 (12:10 +0100)]
cyuv: return meaningful error codes.
Anton Khirnov [Tue, 20 Nov 2012 06:48:01 +0000 (07:48 +0100)]
txd: return meaningful error codes.
Anton Khirnov [Tue, 22 Jan 2013 10:55:54 +0000 (11:55 +0100)]
dnxhdenc: fix invalid reads in dnxhd_mb_var_thread().
Do not assume that frame dimensions are mod16 (or that height is mod32
for interlaced).
CC:libav-stable@libav.org
Diego Biurrun [Thu, 24 Jan 2013 16:01:32 +0000 (17:01 +0100)]
x86: h264qpel: Move stray comment to the right spot and clarify it
Michael Karcher [Fri, 25 Jan 2013 20:03:53 +0000 (15:03 -0500)]
atrac3: use correct loop variable in add_tonal_components()
Signed-off-by: Michael Karcher <ffmpeg@mkarcher.dialup.fu-berlin.de>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
CC:libav-stable@libav.org
Luca Barbato [Wed, 23 Jan 2013 07:28:47 +0000 (08:28 +0100)]
doc: document libx264 options and mappings
Gavriloaie Eugen-Andrei [Wed, 23 Jan 2013 07:21:55 +0000 (08:21 +0100)]
libx264: introduce -x264-params private option
It is a shortcut to set all the params using x264_param_parse,
makes simpler importing settings from other software using x264.
Justin Ruggles [Wed, 2 Jan 2013 21:04:23 +0000 (21:04 +0000)]
dict: add av_dict_parse_string()
Can be used to set multiple key/value pairs from a string.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Luca Barbato [Wed, 23 Jan 2013 10:43:37 +0000 (11:43 +0100)]
doc: support multitable in texi2pod
Vladimir Pantelic [Wed, 23 Jan 2013 12:54:08 +0000 (13:54 +0100)]
avfilter: allow setpts filter to use wallclock time for calculations
Signed-off-by: Vladimir Pantelic <vladoman@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Vladimir Pantelic [Thu, 24 Jan 2013 14:09:48 +0000 (14:09 +0000)]
lavu: Add av_strnstr()
This is a length limited version of strstr()
Signed-off-by: Vladimir Pantelic <vladoman@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Vittorio Giovara [Wed, 23 Jan 2013 11:26:59 +0000 (12:26 +0100)]
h264: Allow discarding the cropping information from SPS
Some 3D systems overload the meaning of the field for other purposes.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diego Biurrun [Mon, 21 Jan 2013 09:16:03 +0000 (10:16 +0100)]
arm: Add mathops.h to ARCH_HEADERS list
It is an arch-specific header not suitable for standalone compilation.
Luca Barbato [Thu, 24 Jan 2013 18:00:57 +0000 (19:00 +0100)]
avstring: K&R formatting cosmetics
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diego Biurrun [Thu, 24 Jan 2013 16:47:03 +0000 (17:47 +0100)]
build: Make the H.264 parser select h264qpel
It is required for building the shared H.264 code.
Janne Grunau [Thu, 24 Jan 2013 17:39:10 +0000 (18:39 +0100)]
x86: h264qpel: add cpu flag checks for init function
The code was copied from per cpu extension init function so the checks
for supported extensions was overlooked.
Janne Grunau [Thu, 24 Jan 2013 15:56:07 +0000 (16:56 +0100)]
h264: copy h264qpel dsp context to slice thread copies
Janne Grunau [Thu, 24 Jan 2013 15:45:45 +0000 (16:45 +0100)]
arm: h264qpel: use neon h264 qpel functions only if supported
Mans Rullgard [Thu, 24 Jan 2013 04:24:53 +0000 (20:24 -0800)]
dsputil: Separate h264 qpel
The sh4 optimizations are removed, because the code is
100% identical to the C code, so it is unlikely to
provide any real practical benefit.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Luca Barbato [Wed, 23 Jan 2013 09:08:57 +0000 (10:08 +0100)]
doc: fix dependencies in pod generation
The script can and will change.
Diego Biurrun [Wed, 23 Jan 2013 22:08:40 +0000 (23:08 +0100)]
openbsd: configure: Stop enabling PIC by default
Previously PIC was enabled as a magic workaround for binaries that
built fine, but failed to function at all. This problem no longer
exists, possibly since the introduction of symbol versioning.
Martin Storsjö [Wed, 23 Jan 2013 21:25:09 +0000 (23:25 +0200)]
rtpenc_chain: Use the original AVFormatContext for getting payload type
In ff_rtp_get_payload_type, the AVFormatContext is used for checking
whether the payload_type or rtpflags options are set. In rtpenc_chain,
the rtpctx struct is a newly initialized struct where no options have
been set yet, so no options can be fetched from there.
All muxers that internally chain rtp muxers have the "rtpflags" field
that allows passing such options on (which is how this worked before
8034130e06), so this works just as intended.
This makes it possible to produce H263 in RFC2190 format with chained
RTP muxers.
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
Martin Storsjö [Wed, 23 Jan 2013 21:21:52 +0000 (23:21 +0200)]
rtp: Make sure the output format pointer is set
Not sure if this actually happens, but we do the same check when
checking payload_type further above in the function, so it might
be needed.
Signed-off-by: Martin Storsjö <martin@martin.st>
Martin Storsjö [Wed, 23 Jan 2013 21:14:27 +0000 (23:14 +0200)]
wmv2: Propagate the wmv2 idct permutation type to the dsputils context
This fixes encoding where the idct setting originally was set to
FF_IDCT_AUTO and dsputil chose a default idct with a non-null
permutation - even if the permutation tables were updated,
dct_quantize in x86/mpegvideoenc_template.c also checked the
value of this type variable.
Signed-off-by: Martin Storsjö <martin@martin.st>
Martin Storsjö [Wed, 23 Jan 2013 19:38:41 +0000 (21:38 +0200)]
rtp: Make sure priv_data is set before reading it
This fixes crashes with muxing H263 into RTSP.
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
Xi Wang [Wed, 23 Jan 2013 01:58:07 +0000 (20:58 -0500)]
rtpenc: fix overflow checking in avc_mp4_find_startcode()
The check `start + res < start' is broken since pointer overflow is
undefined behavior in C. Many compilers such as gcc/clang optimize
away this check.
Use `res > end - start' instead. Also change `res' to unsigned int
to avoid signed left-shift overflow.
Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
Xi Wang [Wed, 23 Jan 2013 02:40:05 +0000 (21:40 -0500)]
rtmp: fix buffer overflows in ff_amf_tag_contents()
A negative `size' will bypass FFMIN(). In the subsequent memcpy() call,
`size' will be considered as a large positive value, leading to a buffer
overflow.
Change the type of `size' to unsigned int to avoid buffer overflow, and
simplify overflow checks accordingly. Also change a literal buffer
size to use sizeof, and limit the amount of data copied in another
memcpy call as well.
Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
Xi Wang [Tue, 22 Jan 2013 22:49:29 +0000 (17:49 -0500)]
rtmp: fix multiple broken overflow checks
Sanity checks like `data + size >= data_end || data + size < data' are
broken, because `data + size < data' assumes pointer overflow, which is
undefined behavior in C. Many compilers such as gcc/clang optimize such
checks away.
Use `size < 0 || size >= data_end - data' instead.
Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
Martin Storsjö [Wed, 23 Jan 2013 09:03:49 +0000 (11:03 +0200)]
float_dsp: Include config.h for redefining restrict
This makes sure that the restrict keyword is mapped to whatever
keyword the compiler prefers/supports. This fixes building on MSVC
(and possibly on GCC 2.x as well).
Signed-off-by: Martin Storsjö <martin@martin.st>
Ronald S. Bultje [Tue, 22 Jan 2013 19:27:57 +0000 (11:27 -0800)]
dsputil: remove one array dimension from avg_no_rnd_pixels_tab.
Ronald S. Bultje [Tue, 22 Jan 2013 19:00:35 +0000 (11:00 -0800)]
dsputil: remove 9/10 bits hpel functions.
These are never used.
Ronald S. Bultje [Tue, 22 Jan 2013 02:51:52 +0000 (18:51 -0800)]
dsputil: remove some never-assigned function pointers from the struct.
Ronald S. Bultje [Tue, 22 Jan 2013 02:02:30 +0000 (18:02 -0800)]
dsputil: remove avg_no_rnd_pixels8.
This is never used.
Diego Biurrun [Sun, 20 Jan 2013 00:02:29 +0000 (01:02 +0100)]
Drop DCTELEM typedef
It does not help as an abstraction and adds dsputil dependencies.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Ronald S. Bultje [Wed, 16 Jan 2013 01:00:41 +0000 (17:00 -0800)]
vorbisdsp: convert x86 simd functions from inline asm to yasm.
Ronald S. Bultje [Tue, 22 Jan 2013 20:45:35 +0000 (12:45 -0800)]
vp3dsp: don't do aligned reads on input.
The input is not guaranteed to be aligned.
Tim Walker [Mon, 31 Dec 2012 14:33:28 +0000 (15:33 +0100)]
mlp_parser: cosmetics: re-indent.
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
Tim Walker [Mon, 31 Dec 2012 14:33:27 +0000 (15:33 +0100)]
mlp: implement support for AVCodecContext.request_channel_layout.
Also wrap usage of AVCodecContext.request_channels in FF_API_REQUEST_CHANNELS directives.
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
Tim Walker [Mon, 31 Dec 2012 14:33:26 +0000 (15:33 +0100)]
mlp_parser: account for AVCodecContext.request_channels when setting the channel layout.
Allows users to configure the output based on what's actually decoded, rather than the full native layout.
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
Tim Walker [Mon, 31 Dec 2012 14:33:25 +0000 (15:33 +0100)]
mlpdec: set the channel layout.
Fixes bug 401.
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
CC:libav-stable@libav.org
Tim Walker [Mon, 31 Dec 2012 14:33:24 +0000 (15:33 +0100)]
mlpdec: TrueHD: use Libav channel order.
Fixes bug 208.
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
CC:libav-stable@libav.org
Tim Walker [Mon, 31 Dec 2012 14:33:23 +0000 (15:33 +0100)]
mlp: store the channel layout for each substream.
Also stop storing the channel arrangement in the header info, as it's unused outside of ff_mlp_read_major_sync.
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
CC:libav-stable@libav.org
Diego Biurrun [Mon, 21 Jan 2013 09:16:02 +0000 (10:16 +0100)]
arm: Add some missing header #includes
Ronald S. Bultje [Sun, 20 Jan 2013 23:41:52 +0000 (15:41 -0800)]
floatdsp: move scalarproduct_float from dsputil to avfloatdsp.
This makes the aac decoder and all voice codecs independent of dsputil.
Ronald S. Bultje [Sun, 20 Jan 2013 23:41:14 +0000 (15:41 -0800)]
floatdsp: move butterflies_float from dsputil to avfloatdsp.
This makes wmadec/enc, twinvq and mpegaudiodec (i.e. mp2/mp3)
independent of dsputil.
Ronald S. Bultje [Sun, 20 Jan 2013 21:20:30 +0000 (13:20 -0800)]
floatdsp: move vector_fmul_reverse from dsputil to avfloatdsp.
Now, nellymoserenc and aacenc no longer depends on dsputil. Independent
of this patch, wmaprodec also does not depend on dsputil, so I removed
it from there also.
Ronald S. Bultje [Sun, 20 Jan 2013 06:26:58 +0000 (22:26 -0800)]
floatdsp: move vector_fmul_add from dsputil to avfloatdsp.
Michael Smith [Mon, 21 Jan 2013 18:40:35 +0000 (19:40 +0100)]
proresdec: support mixed interlaced/non-interlaced content
Set interlaced to false if we don't have an interlaced frame
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Ronald S. Bultje [Mon, 21 Jan 2013 19:02:33 +0000 (11:02 -0800)]
vp3/5: move put_no_rnd_pixels_l2 from dsputil to VP3DSPContext.
The function is only used in VP3 and VP5, so no need to have it in
DSPContext.
Diego Biurrun [Mon, 21 Jan 2013 18:43:06 +0000 (19:43 +0100)]
x86: ac3: Fix HAVE_MMXEXT condition to only refer to external assembly
CC: libav-stable@libav.org
Martin Storsjö [Fri, 7 Dec 2012 09:12:28 +0000 (11:12 +0200)]
rtpenc: Start the sequence numbers from a random offset
Expose the current sequence number via an AVOption - this can
be used both for setting the initial sequence number, or for
querying the current number.
Signed-off-by: Martin Storsjö <martin@martin.st>
Luca Barbato [Mon, 21 Jan 2013 18:43:53 +0000 (19:43 +0100)]
Revert "fate: Use wmv2 IDCT for wmv2 tests"
This reverts commit
ce378f0dd0c4e5350b3280e6b3e8d6b46fe4b0a3.
Diego Biurrun [Sun, 20 Jan 2013 15:10:24 +0000 (16:10 +0100)]
get_bits/put_bits: K&R formatting cosmetics
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Jindrich Makovicka [Thu, 17 Jan 2013 15:24:28 +0000 (16:24 +0100)]
avidec: use sensible error codes instead of -1
Use AVERROR_INVALIDDATA on invalid inputs, and AVERROR_EOF when no more
frames are available in an interleaved AVI.
Signed-off-by: Jindrich Makovicka <makovick@gmail.com>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Daniel Kang [Wed, 16 Jan 2013 07:41:39 +0000 (02:41 -0500)]
dsputilenc: x86: Convert pixel inline asm to yasm
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Brad Smith [Mon, 21 Jan 2013 01:33:27 +0000 (20:33 -0500)]
libgsm: detect libgsm header path
Libgsm header can reside either in the base include dir or in
the gsm subdir.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Ronald S. Bultje [Sat, 19 Jan 2013 20:04:06 +0000 (12:04 -0800)]
fate: Use wmv2 IDCT for wmv2 tests
Ronald S. Bultje [Mon, 21 Jan 2013 06:26:42 +0000 (22:26 -0800)]
vorbisdsp: change block_size type from int to intptr_t.
This saves one instruction in the x86-64 assembly.
Ronald S. Bultje [Mon, 21 Jan 2013 06:15:28 +0000 (22:15 -0800)]
lavc: put FF_IDCT_{VP3,H264,CAVS,BINK,EA,WMV2} under FF_API_IDCT.
This allows us to get rid of them on the next major bump. All of the
above are functionally irrelevant, and most of them are unused, except
the vp3 one, which is used wrongly in the bfin arch optimizations.
Ronald S. Bultje [Mon, 21 Jan 2013 06:12:35 +0000 (22:12 -0800)]
wmv2: move IDCT to its own DSP context.
This allows us to remove FF_IDCT_WMV2, which serves no practical purpose
other than to be able to select the WMV2 IDCT for MPEG (or vice versa)
and get corrupt output.
Fate tests for all wmv2-related tests change, because (for some obscure
reason) they forced use of the MPEG IDCT. You would get the same changes
previously by not using -idct simple in the fate test (or replacing it
with -idct auto).
Ronald S. Bultje [Mon, 21 Jan 2013 05:57:35 +0000 (21:57 -0800)]
dsputil: remove butterflies_float_interleave.
The function is unused.
Martin Storsjö [Sun, 20 Jan 2013 17:06:51 +0000 (19:06 +0200)]
srtp: Move a variable to a local scope
This simplifies the code slightly.
Signed-off-by: Martin Storsjö <martin@martin.st>
Martin Storsjö [Fri, 18 Jan 2013 11:44:34 +0000 (13:44 +0200)]
srtp: Add tests for the crypto suite with 32/80 bit HMAC
Signed-off-by: Martin Storsjö <martin@martin.st>
Martin Storsjö [Fri, 18 Jan 2013 11:46:16 +0000 (13:46 +0200)]
srtp: cosmetics: Use fewer lines for the test vectors
Signed-off-by: Martin Storsjö <martin@martin.st>