]> git.sesse.net Git - ffmpeg/log
ffmpeg
10 years agoarm: Remove a leftover define for the pld instruction
Martin Storsjö [Tue, 7 Jan 2014 10:05:56 +0000 (12:05 +0200)]
arm: Remove a leftover define for the pld instruction

This file no longer uses the pld instruction at all, all such uses
have been split into hpeldsp_arm.S.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agoarm: cosmetics: Reindent the h264dsp neon init function
Martin Storsjö [Tue, 7 Jan 2014 09:15:49 +0000 (11:15 +0200)]
arm: cosmetics: Reindent the h264dsp neon init function

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agonetwork.h: Add #endif comments to improve readability
Diego Biurrun [Mon, 6 Jan 2014 10:26:20 +0000 (11:26 +0100)]
network.h: Add #endif comments to improve readability

10 years agoRename CONFIG_FFT_FLOAT ---> FFT_FLOAT
Diego Biurrun [Mon, 6 Jan 2014 13:48:18 +0000 (14:48 +0100)]
Rename CONFIG_FFT_FLOAT ---> FFT_FLOAT

The define does not originate from configure, so it should not
have a name that is CONFIG_-prefixed.

10 years agolibopusenc: Change default frame duration to 20 ms
Paul B Mahol [Fri, 15 Nov 2013 01:09:06 +0000 (01:09 +0000)]
libopusenc: Change default frame duration to 20 ms

20 ms is the default in the libopus encoder, and gives better
quality than 10 ms.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agoconfigure: Disable networking if winsock2.h is available but winsock functions aren't
Martin Storsjö [Tue, 31 Dec 2013 08:11:24 +0000 (10:11 +0200)]
configure: Disable networking if winsock2.h is available but winsock functions aren't

Previously, if neither of the checks for the closesocket function
succeeded, we still kept winsock2.h and networking in general
enabled.

When targeting the WinRT API subset, the winsock2.h header is
available (making the check for it succeed, giving the impression
that winsock is available), but tests that actually try to use
such a function will fail. In this case, disable the winsock2.h
feature and networking in general, as if the winsock2.h header
test would have failed in the first place.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agorandom_seed: Rewrite the generic clock() based seed code
Michael Niedermayer [Mon, 11 Jun 2012 09:47:59 +0000 (11:47 +0200)]
random_seed: Rewrite the generic clock() based seed code

The new code is faster and reuses the previous state in case of
multiple calls.

The previous code could easily end up in near-infinite loops,
if the difference between two clock() calls never was larger than
1.

This makes fate-parseutils finish in finite time when run in wine,
if CryptGenRandom isn't available (which e.g. isn't available if
targeting Windows RT/metro).

Patch originally by Michael Niedermayer but with some modifications
by Martin Storsjö.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agoconfigure: Update freetype check to follow upstream
Luca Barbato [Sat, 21 Dec 2013 16:59:59 +0000 (17:59 +0100)]
configure: Update freetype check to follow upstream

The freetype tutorial suggests to use #include FT_FREETYPE_H.

Bug-Id: 616

10 years agodrawtext: Drop pointless header
Luca Barbato [Sun, 5 Jan 2014 11:30:45 +0000 (12:30 +0100)]
drawtext: Drop pointless header

It should be forward compatible with newer freetype.

10 years agosegafilm: fix leaks if reading the header fails
Anton Khirnov [Thu, 28 Nov 2013 09:54:35 +0000 (10:54 +0100)]
segafilm: fix leaks if reading the header fails

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org

10 years agopthread_frame: unref decoded frames on failure
Anton Khirnov [Thu, 28 Nov 2013 09:54:35 +0000 (10:54 +0100)]
pthread_frame: unref decoded frames on failure

This is similar to what the non-threaded code already does.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org

10 years agoh264: do not use 422 functions for monochrome
Anton Khirnov [Thu, 28 Nov 2013 09:54:35 +0000 (10:54 +0100)]
h264: do not use 422 functions for monochrome

Fixes invalid memory access.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org

10 years agoh264: check that execute_decode_slices() is not called too many times
Anton Khirnov [Thu, 28 Nov 2013 09:54:35 +0000 (10:54 +0100)]
h264: check that execute_decode_slices() is not called too many times

Fixes invalid reads.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org

10 years agoh264: reject mismatching luma/chroma bit depths during sps parsing
Anton Khirnov [Thu, 28 Nov 2013 09:54:35 +0000 (10:54 +0100)]
h264: reject mismatching luma/chroma bit depths during sps parsing

There is no point in delaying the check and it avoids bugs with a
half-initialized context.

Fixes invalid reads.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org

10 years agoh264: rebuild the default ref list if the reference count changes
Anton Khirnov [Thu, 28 Nov 2013 09:54:35 +0000 (10:54 +0100)]
h264: rebuild the default ref list if the reference count changes

Fixes possible access to freed memory.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org

10 years agocavsdec: check ff_get_buffer() return value
Anton Khirnov [Thu, 28 Nov 2013 09:54:35 +0000 (10:54 +0100)]
cavsdec: check ff_get_buffer() return value

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org

10 years agolavc: do not leak the internal frame if opening the codec fails
Anton Khirnov [Mon, 16 Dec 2013 21:54:43 +0000 (22:54 +0100)]
lavc: do not leak the internal frame if opening the codec fails

10 years agolavf: remove a pointless check
Anton Khirnov [Mon, 16 Dec 2013 21:37:40 +0000 (22:37 +0100)]
lavf: remove a pointless check

AVStream.codec is always non-NULL

10 years agooggparseogm: check timing variables
Anton Khirnov [Thu, 28 Nov 2013 09:54:35 +0000 (10:54 +0100)]
oggparseogm: check timing variables

Fixes a potential divide by zero.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org

10 years agolavc: add 422/444 YUV with alpha to align_dimensions()
Anton Khirnov [Fri, 3 Jan 2014 13:50:49 +0000 (14:50 +0100)]
lavc: add 422/444 YUV with alpha to align_dimensions()

Aligns frame dimensions to 16, which fixes potential invalid writes.

10 years agolagarith: do not call simd functions on unaligned lines
Kostya Shishkov [Mon, 30 Dec 2013 08:31:57 +0000 (09:31 +0100)]
lagarith: do not call simd functions on unaligned lines

They end up overwriting past the line end.

Partially based on a patch by Michael Niedermayer <michaelni@gmx.at>

Bug-Id: vlc/9700
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years agosgidec: fix buffer size check in expand_rle_row()
Anton Khirnov [Thu, 2 Jan 2014 08:34:20 +0000 (09:34 +0100)]
sgidec: fix buffer size check in expand_rle_row()

Right now it will spuriously fail if the linesize is exactly equal to
the data width.

CC:libav-stable@libav.org

10 years agokgv1dec: replace forcing EMU_EDGE by a copy
Anton Khirnov [Tue, 17 Dec 2013 07:56:13 +0000 (08:56 +0100)]
kgv1dec: replace forcing EMU_EDGE by a copy

The decoder currently sets CODEC_FLAG_EMU_EDGE and relies on
get_buffer2() to always provide buffers with linesize == 2 * width.
This is wrong, since we place no such restriction on get_buffer2()
implementations.

Fix this by decoding into internal buffers and copying them to output
frames. Since this is a very obscure decoder, the performance hit should
not be an issue.

10 years ago4xm: replace forcing EMU_EDGE by a copy
Anton Khirnov [Tue, 17 Dec 2013 07:56:13 +0000 (08:56 +0100)]
4xm: replace forcing EMU_EDGE by a copy

The decoder currently sets CODEC_FLAG_EMU_EDGE and relies on
get_buffer2() to always provide buffers with linesize == 2 * width.
This is wrong, since we place no such restriction on get_buffer2()
implementations.

Fix this by decoding into internal buffers and copying them to output
frames. Since this is a very obscure decoder, the performance hit should
not be an issue.

10 years ago4xm: return a proper error code.
Anton Khirnov [Tue, 17 Dec 2013 07:33:55 +0000 (08:33 +0100)]
4xm: return a proper error code.

10 years agohevc: rename some HEVC conformance streams
Guillaume Martres [Tue, 31 Dec 2013 13:29:04 +0000 (14:29 +0100)]
hevc: rename some HEVC conformance streams

Some HEVC conformance streams zip on
http://wftp3.itu.int/av-arch/jctvc-site/bitstream_exchange/draft_conformance/
were updated without changing the actual stream. Rename them in FATE
accordingly to make it easier to track future stream updates.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years agohevc: add new conformance streams
Guillaume Martres [Tue, 31 Dec 2013 13:29:03 +0000 (14:29 +0100)]
hevc: add new conformance streams

Also remove superseded conformance streams. The conformance streams all
come from http://wftp3.itu.int/av-arch/jctvc-site/bitstream_exchange/draft_conformance/

Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years agocmdutils: update copyright year to 2014.
Johan Andersson [Sat, 4 Jan 2014 19:47:32 +0000 (20:47 +0100)]
cmdutils: update copyright year to 2014.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years ago(e)ac3dec: set AV_FRAME_DATA_MATRIXENCODING side data.
Tim Walker [Wed, 11 Dec 2013 02:03:35 +0000 (02:03 +0000)]
(e)ac3dec: set AV_FRAME_DATA_MATRIXENCODING side data.

10 years ago(e)ac3: parse and store the Dolby Surround, Surround EX and Headphone mode flags.
Tim Walker [Wed, 11 Dec 2013 02:03:34 +0000 (02:03 +0000)]
(e)ac3: parse and store the Dolby Surround, Surround EX and Headphone mode flags.

10 years agomlpdec: set AV_FRAME_DATA_MATRIXENCODING side data.
Tim Walker [Wed, 11 Dec 2013 02:03:33 +0000 (02:03 +0000)]
mlpdec: set AV_FRAME_DATA_MATRIXENCODING side data.

10 years agomlp: Parse TrueHD decoder channel modifiers and set the AVMatrixEncoding for each...
Tim Walker [Wed, 11 Dec 2013 02:03:32 +0000 (02:03 +0000)]
mlp: Parse TrueHD decoder channel modifiers and set the AVMatrixEncoding for each substream.

10 years agodcadec: set AV_FRAME_DATA_MATRIXENCODING side data.
Tim Walker [Wed, 11 Dec 2013 02:03:31 +0000 (02:03 +0000)]
dcadec: set AV_FRAME_DATA_MATRIXENCODING side data.

10 years agodcadec: set the output channel mode more accurately.
Tim Walker [Wed, 11 Dec 2013 02:03:30 +0000 (02:03 +0000)]
dcadec: set the output channel mode more accurately.

When downmixing 2.1 to 2-channel, if the 2.0 portion is Lt/Rt, sum-difference or dual mono, the actual output will be the same (with the LFE either mixed-in or discarded).

Also, when downmixing an arbitrary layout to 2-channel, if the bitstream contains custom downmix coefficients targeting Lt/Rt, then the output will be Lt/Rt rather than regular Stereo.

10 years agoavframe: add AV_FRAME_DATA_MATRIXENCODING side data type.
Tim Walker [Wed, 11 Dec 2013 02:03:29 +0000 (02:03 +0000)]
avframe: add AV_FRAME_DATA_MATRIXENCODING side data type.

Includes a libavcodec utility function to update a frame's side data.

10 years agolavu: Add values for various Dolby flags to the AVMatrixEncoding enum.
Tim Walker [Wed, 11 Dec 2013 02:03:28 +0000 (02:03 +0000)]
lavu: Add values for various Dolby flags to the AVMatrixEncoding enum.

10 years agoconfigure: Support preprocessor macros as header names
Diego Biurrun [Mon, 23 Dec 2013 00:03:48 +0000 (01:03 +0100)]
configure: Support preprocessor macros as header names

New versions of FreeType have moved the location of their API
header(s) and hide the location behind a macro.

Since the location changes between versions and no other way
to know the location exists, this workaround becomes necessary.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years agosdp: Check that fmt->oformat is non-null before accessing it
Martin Storsjö [Fri, 3 Jan 2014 13:47:02 +0000 (15:47 +0200)]
sdp: Check that fmt->oformat is non-null before accessing it

This avoids crashes when avserver tries to create an SDP, since
d77f4af.

CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agofate: Update AAC ELD 5.1 ref for recent bugfixes.
Alex Converse [Tue, 24 Dec 2013 06:21:08 +0000 (22:21 -0800)]
fate: Update AAC ELD 5.1 ref for recent bugfixes.

10 years agoaac: Fix low delay windowing.
Alex Converse [Tue, 24 Dec 2013 21:03:26 +0000 (13:03 -0800)]
aac: Fix low delay windowing.

AAC LD uses a low overlap sine window instead of a KBD window.

10 years agofate: Add a test vector for AAC ELD with TNS.
Alex Converse [Tue, 24 Dec 2013 06:35:48 +0000 (22:35 -0800)]
fate: Add a test vector for AAC ELD with TNS.

10 years agoaac: Fix TNS decoding for the 512 sample window family.
Alex Converse [Tue, 24 Dec 2013 06:20:42 +0000 (22:20 -0800)]
aac: Fix TNS decoding for the 512 sample window family.

10 years agofate: Add a downsampled SBR testvector
Alex Converse [Mon, 23 Dec 2013 20:07:45 +0000 (12:07 -0800)]
fate: Add a downsampled SBR testvector

10 years agoarm: Use the matching endfunc macro instead of the assembler directive directly
Martin Storsjö [Fri, 3 Jan 2014 09:39:10 +0000 (11:39 +0200)]
arm: Use the matching endfunc macro instead of the assembler directive directly

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agoarm: Add a missing endfunc macro call
Martin Storsjö [Fri, 3 Jan 2014 09:36:08 +0000 (11:36 +0200)]
arm: Add a missing endfunc macro call

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agompegvideo: remove disabled bfin asm
Anton Khirnov [Tue, 3 Dec 2013 07:07:24 +0000 (08:07 +0100)]
mpegvideo: remove disabled bfin asm

It has been disabled as 'broken' over 3 years ago in b716a792

10 years agompegvideo: move dct_unquantize functions up to avoid forward declarations
Anton Khirnov [Tue, 3 Dec 2013 06:52:33 +0000 (07:52 +0100)]
mpegvideo: move dct_unquantize functions up to avoid forward declarations

10 years agompegvideo: split the encoding-only parts of frame_start() into a separate function
Anton Khirnov [Tue, 3 Dec 2013 06:48:09 +0000 (07:48 +0100)]
mpegvideo: split the encoding-only parts of frame_start() into a separate function

This introduces some code duplication. However, much of it should go
away once the decoders stop using MpegEncContext.

10 years agoFATE: add a test for the lavr mixing case fixed in fc6a3ef40d34ce8443ae57c2452f3f273d...
Anton Khirnov [Mon, 16 Dec 2013 20:30:39 +0000 (21:30 +0100)]
FATE: add a test for the lavr mixing case fixed in fc6a3ef40d34ce8443ae57c2452f3f273d7d4891

10 years agotests/Makefile: allow FILTER* to be called with lists of filter names
Anton Khirnov [Mon, 16 Dec 2013 21:21:01 +0000 (22:21 +0100)]
tests/Makefile: allow FILTER* to be called with lists of filter names

10 years agoaudio_mix: print (SKIP) instead of 0.0 for matrix columns removed along with output...
Anton Khirnov [Mon, 16 Dec 2013 18:05:45 +0000 (19:05 +0100)]
audio_mix: print (SKIP) instead of 0.0 for matrix columns removed along with output zeroing

10 years agoaudio_mix: fix zeroing output channels in certain cases
Anton Khirnov [Mon, 16 Dec 2013 17:44:15 +0000 (18:44 +0100)]
audio_mix: fix zeroing output channels in certain cases

Specifically, when the corresponding input channel exists and its matrix
column is all-zero (which is necessary for zeroing the output), the
matrix column must be removed from the matrix.

This is not done currently, so the mixing code would end up using
uninitialized pointers from stack.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
10 years agoaudio_mix: initialize the data pointers to NULL
Anton Khirnov [Mon, 16 Dec 2013 17:20:41 +0000 (18:20 +0100)]
audio_mix: initialize the data pointers to NULL

This should make it easier to catch problems where some of those
pointers are used uninitialized, since reading from NULL should always
crash, while random numbers from stack can turn out to be valid
pointers, so random memory may be silently overwritten.

10 years agoh264: reset data_partitioning if decoding the slice header for NAL_DPA fails
Anton Khirnov [Thu, 28 Nov 2013 09:54:35 +0000 (10:54 +0100)]
h264: reset data_partitioning if decoding the slice header for NAL_DPA fails

If it was set before then we can end up trying to decode a slice without
a valid slice header, which can lead to invalid memory access.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org

10 years agolzw: switch to bytestream2
Anton Khirnov [Thu, 28 Nov 2013 09:54:35 +0000 (10:54 +0100)]
lzw: switch to bytestream2

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org

10 years agopmpdec: check that there is at least one audio packet.
Anton Khirnov [Thu, 28 Nov 2013 09:54:35 +0000 (10:54 +0100)]
pmpdec: check that there is at least one audio packet.

The code cannot handle there being none, but that should not happen for
valid files.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org

10 years agomathematics: remove asserts from av_rescale_rnd()
Anton Khirnov [Thu, 12 Dec 2013 06:34:13 +0000 (07:34 +0100)]
mathematics: remove asserts from av_rescale_rnd()

It is a public function, it must not assert on its parameters.

10 years agoeacmv: check the framerate before setting it.
Anton Khirnov [Thu, 12 Dec 2013 06:31:26 +0000 (07:31 +0100)]
eacmv: check the framerate before setting it.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org

10 years agoadx: check that the offset is not negative
Anton Khirnov [Thu, 28 Nov 2013 09:54:35 +0000 (10:54 +0100)]
adx: check that the offset is not negative

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org

10 years agorv30: fix extradata size check.
Anton Khirnov [Thu, 28 Nov 2013 09:54:35 +0000 (10:54 +0100)]
rv30: fix extradata size check.

It has been checking the number of bits in the offset instead of the
actual offset.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org

10 years agompegvideo: set reference/pict_type on generated reference frames
Anton Khirnov [Thu, 28 Nov 2013 09:54:35 +0000 (10:54 +0100)]
mpegvideo: set reference/pict_type on generated reference frames

Otherwise the generic code will unref them, which can then result in
last_picture_ptr == current_picture_ptr, which causes deadlocks at least
in rv40.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org

10 years agoMakefile: add html template files to the doxygen deps
Anton Khirnov [Mon, 16 Dec 2013 08:30:17 +0000 (09:30 +0100)]
Makefile: add html template files to the doxygen deps

10 years agolavu: Move preprocessor macros in a separate file
Luca Barbato [Fri, 27 Dec 2013 01:57:48 +0000 (02:57 +0100)]
lavu: Move preprocessor macros in a separate file

And remove all the circular inclusions of avutil.h while at it.

10 years agoh264: namespace the decode function
Luca Barbato [Fri, 27 Dec 2013 06:48:13 +0000 (07:48 +0100)]
h264: namespace the decode function

Make much easier debugging.

10 years agodoxy: Update the css to have a flat style
Luca Barbato [Mon, 16 Dec 2013 00:18:56 +0000 (01:18 +0100)]
doxy: Update the css to have a flat style

Drop references to the doxy image gradients and style a the code blocks to
keep the whitespace and indent properly.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years agodoxy: Fix link in badge color
Luca Barbato [Mon, 16 Dec 2013 00:24:15 +0000 (01:24 +0100)]
doxy: Fix link in badge color

Green on blue was not exactly optimal.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years agoavutil: Move library version related macros to version.h
Diego Biurrun [Wed, 25 Dec 2013 16:16:05 +0000 (17:16 +0100)]
avutil: Move library version related macros to version.h

This is a more sensible place for these macros.

10 years agomms: Remove non-utf8 characters
Luca Barbato [Mon, 16 Dec 2013 05:40:24 +0000 (06:40 +0100)]
mms: Remove non-utf8 characters

Certain softwares get badly confused.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years agoconfigure: Explicitly disable w32threads if the test for it fails
Diego Biurrun [Mon, 23 Dec 2013 03:24:52 +0000 (04:24 +0100)]
configure: Explicitly disable w32threads if the test for it fails

This avoids false positive enabling of w32threads if explicitly
requested on the command line, but dependencies are missing.

10 years agoerror.h: Do not circularly depend on avutil.h
Diego Biurrun [Fri, 13 Dec 2013 17:50:48 +0000 (18:50 +0100)]
error.h: Do not circularly depend on avutil.h

10 years agolavu: fix typo in documentation.
Tim Walker [Tue, 17 Dec 2013 15:47:31 +0000 (15:47 +0000)]
lavu: fix typo in documentation.

10 years agodoc: fix link to the ISC license text in the developer documentation.
Tim Walker [Sun, 22 Dec 2013 16:52:05 +0000 (16:52 +0000)]
doc: fix link to the ISC license text in the developer documentation.

10 years agodoc: fix a coding style error in the developer documentation.
Tim Walker [Sun, 22 Dec 2013 17:07:35 +0000 (17:07 +0000)]
doc: fix a coding style error in the developer documentation.

10 years agovc1: Fix intensity compensation performance regression
Mason Carter [Sun, 22 Dec 2013 01:27:18 +0000 (17:27 -0800)]
vc1: Fix intensity compensation performance regression

Introduced by 28243b0d35b47bbf9abbd454fc444a6e0a9e7b71

Intensity compensation is always used once it was encountered, because
v->next_use_ic is never set back to zero.

Reset v->next_use_ic, when resetting v->next_luty/uv.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years agohevc: move DSP declarations from hevc.h into hevcdsp.h
Guillaume Martres [Fri, 20 Dec 2013 23:08:50 +0000 (00:08 +0100)]
hevc: move DSP declarations from hevc.h into hevcdsp.h

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years agoAdd a libwebp encoder
Justin Ruggles [Fri, 22 Nov 2013 16:05:13 +0000 (11:05 -0500)]
Add a libwebp encoder

10 years agoarm: Don't clobber callee saved registers in scalarproduct
Martin Storsjö [Fri, 20 Dec 2013 13:02:35 +0000 (15:02 +0200)]
arm: Don't clobber callee saved registers in scalarproduct

q4-q7/d8-d15 are supposed to not be clobbered by the callee.

CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agohevc: support luma bit depth != chroma bit depth for PCM coding units
Mickaël Raulet [Sat, 14 Dec 2013 14:50:32 +0000 (15:50 +0100)]
hevc: support luma bit depth != chroma bit depth for PCM coding units

Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years agohevc: warn when an unknown profile is used
Guillaume Martres [Sat, 14 Dec 2013 14:50:31 +0000 (15:50 +0100)]
hevc: warn when an unknown profile is used

Bitstreams conforming to the spec should not use profiles not defined
in it.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years agohevc_ps: fix indentation
Gildas Cocherel [Fri, 20 Dec 2013 18:39:10 +0000 (19:39 +0100)]
hevc_ps: fix indentation

Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years agohevc: refactor Profile Tier Level
Gildas Cocherel [Wed, 18 Dec 2013 23:36:45 +0000 (00:36 +0100)]
hevc: refactor Profile Tier Level

Also store a few PTL flags which were skipped before

Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years agohevc: don't check for errors in PTL code
Guillaume Martres [Sat, 14 Dec 2013 14:50:29 +0000 (15:50 +0100)]
hevc: don't check for errors in PTL code

According to the spec, the value of XXX_reserved_zero_44bits should be
ignored, so don't report an error when it's not zero.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years agohevc: store profile and level in AVCodecContext
Gildas Cocherel [Sat, 14 Dec 2013 14:50:28 +0000 (15:50 +0100)]
hevc: store profile and level in AVCodecContext

Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years agolavc: add HEVC profiles names
Gildas Cocherel [Wed, 18 Dec 2013 23:30:24 +0000 (00:30 +0100)]
lavc: add HEVC profiles names

Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years agoflv: Use the correct type to hold the file offset
Luca Barbato [Thu, 19 Dec 2013 06:38:15 +0000 (07:38 +0100)]
flv: Use the correct type to hold the file offset

10 years agojvdec: Do not feed the decoder with known wrong data
Luca Barbato [Fri, 13 Dec 2013 02:07:57 +0000 (03:07 +0100)]
jvdec: Do not feed the decoder with known wrong data

Still assume the size value is right in non-explode mode.

10 years agojvdec: Fix memory leak of jv->frames
Paul B Mahol [Tue, 3 Jul 2012 09:51:44 +0000 (09:51 +0000)]
jvdec: Fix memory leak of jv->frames

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years agojvdec: Return EOF on end of file
Luca Barbato [Fri, 13 Dec 2013 02:10:16 +0000 (03:10 +0100)]
jvdec: Return EOF on end of file

10 years agox86: mpegvideo: move denoise_dct asm to mpegvideoenc
Anton Khirnov [Fri, 20 Dec 2013 12:00:22 +0000 (13:00 +0100)]
x86: mpegvideo: move denoise_dct asm to mpegvideoenc

This function is encoding-only.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
10 years agovc1: arm: Add NEON no_rnd chroma MC
Mason Carter [Sun, 15 Dec 2013 01:32:57 +0000 (17:32 -0800)]
vc1: arm: Add NEON no_rnd chroma MC

Apply David Conrad's old patch to the modern codebase.

http://ffmpeg.org/pipermail/ffmpeg-devel/2009-April/059877.html

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agovc1: arm: Add NEON assembly
Mason Carter [Sun, 15 Dec 2013 01:32:56 +0000 (17:32 -0800)]
vc1: arm: Add NEON assembly

For:

ff_vc1_inv_trans_{8,4}x{8,4}_{dc_,}neon
ff_put_pixels8x8_neon
ff_put_vc1_mspel_mc{0,1,2,3}{0,1,2,3}_neon (except for 00)

Based on ARM assembly code in libavcodec/arm by Rob Clark and Mans
Rullgard.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agoatomics: cosmetics: Restructure ifdefs for greater clarity
Diego Biurrun [Wed, 18 Dec 2013 21:28:11 +0000 (22:28 +0100)]
atomics: cosmetics: Restructure ifdefs for greater clarity

Also fix the #endif comment in a few places and #include config.h to
avoid assuming it is #included implicitly.

10 years agoconfigure: Express atomics/thread deps through the dependency system
Diego Biurrun [Wed, 18 Dec 2013 20:52:28 +0000 (21:52 +0100)]
configure: Express atomics/thread deps through the dependency system

10 years agofate: Explicitly specify the pixel format for the pngparser test
Martin Storsjö [Wed, 18 Dec 2013 16:27:07 +0000 (18:27 +0200)]
fate: Explicitly specify the pixel format for the pngparser test

The RGB32 pixel format is RGBA/BGRA depending on target
endianness - make sure to convert it to one specific format for
the framecrc tests.

This fixes the pngparser fate test on big endian.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agoPrepare release notes for Libav 10 "Eks"
Anton Khirnov [Wed, 18 Dec 2013 02:52:13 +0000 (21:52 -0500)]
Prepare release notes for Libav 10 "Eks"

Additional editing by Diego Biurrun

10 years agopng_parser: Fix parsing on big endian
Martin Storsjö [Wed, 18 Dec 2013 08:39:47 +0000 (10:39 +0200)]
png_parser: Fix parsing on big endian

Since pc.state is populated by shifting in from the end of the
32 bit word, the content within pc.state is already in native endian
and should not be read with the AV_R{L,B} functions.

This was already done correctly for state64 above.

This fixes the fate-corepng test on big endian.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agovc1: Fix mb_height for field pictures
Michael Niedermayer [Sat, 14 Dec 2013 13:52:31 +0000 (14:52 +0100)]
vc1: Fix mb_height for field pictures

Tables are always allocated now with sufficient space for either progressive
or interlaced content. The alternative would be to detect a change
and reallocate.

This fixes decoding of a sample.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agoapidoc: fix warning from stereo3d.h
Vittorio Giovara [Mon, 16 Dec 2013 13:40:06 +0000 (14:40 +0100)]
apidoc: fix warning from stereo3d.h

10 years agoh264: Refactor decode_frame_packing_arrangement
Vittorio Giovara [Fri, 13 Dec 2013 17:12:59 +0000 (18:12 +0100)]
h264: Refactor decode_frame_packing_arrangement

Directly set the fields when necessary.

10 years agohevc: Refactor decode_nal_sei_frame_packing_arrangement
Luca Barbato [Fri, 13 Dec 2013 15:39:45 +0000 (15:39 +0000)]
hevc: Refactor decode_nal_sei_frame_packing_arrangement

Directly set the fields when necessary.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>