OSDN Git Service

android-x86/external-ffmpeg.git
10 years agoh264: wait for initial complete frame before outputing frames
John Stebbins [Fri, 11 Oct 2013 16:51:50 +0000 (09:51 -0700)]
h264: wait for initial complete frame before outputing frames

This can be optionally disabled whith the "output_corrupt" flags
option.  When in "output_corrupt" mode, incomplete frames are
signalled through AVFrame.flags FRAME_FLAG_INCOMPLETE_FRAME.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years agoHNM4/HNM4A demuxer & video decoder
David Kment [Mon, 28 Oct 2013 00:38:02 +0000 (01:38 +0100)]
HNM4/HNM4A demuxer & video decoder

Signed-off-by: Diego Biurrun <diego@biurrun.de>
10 years agogradfun: x86: Factor out common code for some gradfun_filter_line() variants
Diego Biurrun [Thu, 24 Oct 2013 00:24:05 +0000 (02:24 +0200)]
gradfun: x86: Factor out common code for some gradfun_filter_line() variants

10 years agoavfilter: x86: K&R formatting cosmetics
Diego Biurrun [Wed, 23 Oct 2013 12:51:23 +0000 (14:51 +0200)]
avfilter: x86: K&R formatting cosmetics

10 years agobuild: Ensure that strip commands are run silently
Diego Biurrun [Tue, 29 Oct 2013 14:46:02 +0000 (15:46 +0100)]
build: Ensure that strip commands are run silently

10 years agolavf: Remove a now useless parameter to ffurl_register_protocol
Martin Storsjö [Tue, 29 Oct 2013 20:52:09 +0000 (22:52 +0200)]
lavf: Remove a now useless parameter to ffurl_register_protocol

This was added in 9b07a2dc02e9 as an ABI hack to allow older
code built with lavf 52 to register protocols even if the size
of the URLProtocol struct was increased. Later, registering
protocols from outside of lavf was removed and this workaround
isn't needed any longer since lavf 53.

This removes an unchecked malloc and a memory leak for the cases
when this workaround actually was used - which it hasn't since
lavf 53.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agooggparsetheora: check av_mallocz result
Anton Khirnov [Sun, 27 Oct 2013 08:36:12 +0000 (09:36 +0100)]
oggparsetheora: check av_mallocz result

10 years agooggparsetheora: return meaningful error codes
Anton Khirnov [Sun, 27 Oct 2013 08:35:30 +0000 (09:35 +0100)]
oggparsetheora: return meaningful error codes

10 years agooggparsetheora: K&R cosmetics, reformat
Anton Khirnov [Mon, 28 Oct 2013 09:50:53 +0000 (10:50 +0100)]
oggparsetheora: K&R cosmetics, reformat

Also typedef the private data struct and make its name consistent with
the rest of Libav.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years agolavc: add error checking to apply_param_change.
Anton Khirnov [Sun, 27 Oct 2013 08:56:00 +0000 (09:56 +0100)]
lavc: add error checking to apply_param_change.

10 years agolibopenjpegdec: return meaningful error codes
Anton Khirnov [Sun, 27 Oct 2013 09:28:45 +0000 (10:28 +0100)]
libopenjpegdec: return meaningful error codes

10 years agobuild: remove pointless condition
Ingo Brückl [Thu, 24 Oct 2013 00:18:19 +0000 (02:18 +0200)]
build: remove pointless condition

$(STRIP) always expands to something, because it is one of the commands
in the BRIEF list. This renders the condition pointless.

Signed-off-by: Ingo Brückl <ib@wupperonline.de>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
10 years agoh264: Check all allocations
Derek Buitenhuis [Tue, 22 Oct 2013 19:46:09 +0000 (20:46 +0100)]
h264: Check all allocations

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
10 years agofate.sh: Allow non-fast-forwards when updating sources
Diego Biurrun [Fri, 25 Oct 2013 13:21:44 +0000 (15:21 +0200)]
fate.sh: Allow non-fast-forwards when updating sources

10 years agoavconv: stop accessing AVStream.parser
Anton Khirnov [Mon, 28 Oct 2013 14:10:21 +0000 (15:10 +0100)]
avconv: stop accessing AVStream.parser

It is private and must not be touched from outside of lavf.

10 years agolavc: add a dummy field to AVStream to preserve ABI compatibility for avconv
Anton Khirnov [Mon, 28 Oct 2013 13:59:20 +0000 (14:59 +0100)]
lavc: add a dummy field to AVStream to preserve ABI compatibility for avconv

avconv abuses the API by accessing AVStream.parser (which is private).
Removing AVStream.reference_dts in
2ba68dd044ca8fc591139c05563840f546a9c0c0 breaks ABI compatibility for an
old avconv using a newer lavf. Fix this by adding a dummy field until
the next bump.

10 years agoavio: Check for memory allocation failure of private data
Derek Buitenhuis [Tue, 22 Oct 2013 19:22:13 +0000 (20:22 +0100)]
avio: Check for memory allocation failure of private data

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
10 years agotimefilter: Handle memory allocation failure
Derek Buitenhuis [Tue, 22 Oct 2013 17:46:37 +0000 (18:46 +0100)]
timefilter: Handle memory allocation failure

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
10 years agoconfigure: Provide an hardened toolchain option
Luca Barbato [Mon, 28 Oct 2013 12:22:52 +0000 (13:22 +0100)]
configure: Provide an hardened toolchain option

10 years agoconfigure: Move gcc-only -W option where it belongs
Luca Barbato [Mon, 28 Oct 2013 11:45:04 +0000 (12:45 +0100)]
configure: Move gcc-only -W option where it belongs

10 years agolavfi: do not export the filters from shared objects
Anton Khirnov [Mon, 28 Oct 2013 06:44:24 +0000 (07:44 +0100)]
lavfi: do not export the filters from shared objects

10 years agolavf: do not export av_register_{rtp,rdt}_dynamic_payload_handlers from shared objects
Anton Khirnov [Mon, 28 Oct 2013 06:31:13 +0000 (07:31 +0100)]
lavf: do not export av_register_{rtp,rdt}_dynamic_payload_handlers from shared objects

10 years agolavc: remove old unused audio conversion functions.
Anton Khirnov [Mon, 28 Oct 2013 06:27:35 +0000 (07:27 +0100)]
lavc: remove old unused audio conversion functions.

10 years agoac3dec: fix outptr increment.
Michael Niedermayer [Fri, 25 Oct 2013 22:46:53 +0000 (18:46 -0400)]
ac3dec: fix outptr increment.

Fixes corrupt data errors when downmixing in the AC-3 decoder.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
CC:libav-stable@libav.org

10 years agolavc: don't set AVFrame.pts to random numbers in decoders.
Anton Khirnov [Sun, 27 Oct 2013 14:33:37 +0000 (15:33 +0100)]
lavc: don't set AVFrame.pts to random numbers in decoders.

10 years agolavf: remove unreliable timestamp guessing heuristic
Anton Khirnov [Sun, 27 Oct 2013 20:04:20 +0000 (21:04 +0100)]
lavf: remove unreliable timestamp guessing heuristic

10 years agog722dec: Change bits_per_codeword to the right option type
Martin Storsjö [Sun, 27 Oct 2013 19:57:06 +0000 (21:57 +0200)]
g722dec: Change bits_per_codeword to the right option type

This isn't a set of flags but just a plain integer in the range
6-8.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agoavfilter: fix const use of avfilter_next
Vittorio Giovara [Mon, 28 Oct 2013 01:58:13 +0000 (02:58 +0100)]
avfilter: fix const use of avfilter_next

Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years agoavfilter: have avfilter_get_by_name return const for next bump
Vittorio Giovara [Mon, 28 Oct 2013 01:58:12 +0000 (02:58 +0100)]
avfilter: have avfilter_get_by_name return const for next bump

Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years agolavc: disable CRC checking by default
Anton Khirnov [Mon, 21 Oct 2013 14:48:59 +0000 (16:48 +0200)]
lavc: disable CRC checking by default

10 years agolavc: change all decoders to behave consistently with AV_EF_CRCCHECK.
Anton Khirnov [Sat, 26 Oct 2013 20:46:48 +0000 (22:46 +0200)]
lavc: change all decoders to behave consistently with AV_EF_CRCCHECK.

Just crccheck prints a warning, crccheck+explode returns an error.

Also document this behavior.

10 years agoerror resilience: check error_concealment, not err_recognition.
Anton Khirnov [Fri, 25 Oct 2013 05:19:27 +0000 (07:19 +0200)]
error resilience: check error_concealment, not err_recognition.

err_recognition is supposed to trigger detecting and reporting errors,
not trying to fix them.

10 years agoavio: K&R formatting cosmetics
Luca Barbato [Sun, 27 Oct 2013 13:45:01 +0000 (14:45 +0100)]
avio: K&R formatting cosmetics

10 years agoh263: Check init_get_bits return value
Michael Niedermayer [Sat, 26 Oct 2013 17:02:34 +0000 (19:02 +0200)]
h263: Check init_get_bits return value

And use init_get_bits8 to check for integer overflows while at it.

CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years agoh263: Return meaningful errors
Luca Barbato [Sat, 26 Oct 2013 17:31:46 +0000 (19:31 +0200)]
h263: Return meaningful errors

10 years agoconfigure: Disable -Wmaybe-uninitialized by default
Luca Barbato [Sat, 26 Oct 2013 19:27:48 +0000 (21:27 +0200)]
configure: Disable -Wmaybe-uninitialized by default

It is by definition unreliable and causes pointless noise on valid
code.

10 years agoAVOptions: do not range check flag options.
Anton Khirnov [Sat, 26 Oct 2013 08:34:01 +0000 (10:34 +0200)]
AVOptions: do not range check flag options.

It does not make sense in the vast majority of use cases, no currently
defined AV_OPT_TYPE_FLAGS options in Libav set the range to anything
nontrivial, and many of those get it wrong (the "correct" range is
INT_MIN to INT_MAX so that the builtin constant "all" works).

10 years agoh264_ps: when parsing a VUI fails, only abort when explode is set
Anton Khirnov [Sat, 26 Oct 2013 08:22:31 +0000 (10:22 +0200)]
h264_ps: when parsing a VUI fails, only abort when explode is set

A VUI doesn't contain anything strictly necessary for decoding.
Apparently there are many samples with truncated VUIs in the wild, this
commit should allow decoding them.

10 years agoFATE: add bitexact sws flags to the fieldorder test
Paul B Mahol [Sat, 26 Oct 2013 16:21:29 +0000 (18:21 +0200)]
FATE: add bitexact sws flags to the fieldorder test

swscale is called for the 420 to 422 conversion

Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years agoavconv: drop a now useless variable
Anton Khirnov [Sun, 27 Oct 2013 07:42:05 +0000 (08:42 +0100)]
avconv: drop a now useless variable

10 years agoavframe: mark source frame const in _ref and _clone
Vittorio Giovara [Sat, 26 Oct 2013 14:43:07 +0000 (16:43 +0200)]
avframe: mark source frame const in _ref and _clone

Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years agommvideo: fix uninitialized variable use in mm_decode_intra
Vittorio Giovara [Sat, 26 Oct 2013 23:54:47 +0000 (01:54 +0200)]
mmvideo: fix uninitialized variable use in mm_decode_intra

Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years agolavr: check that current_buffer is not NULL before using it
Justin Ruggles [Sun, 27 Oct 2013 19:00:36 +0000 (15:00 -0400)]
lavr: check that current_buffer is not NULL before using it

Fixes a segfault during resampling when compiled with -DDEBUG.
Fixes all fate-lavr-resample tests with -DDEBUG.

CC:libav-stable@libav.org

10 years agofft-test: add a missing #include
Anton Khirnov [Sat, 26 Oct 2013 07:11:22 +0000 (09:11 +0200)]
fft-test: add a missing #include

stdio.h needed for printf since 7177df90a043bd59e172843fc7cb9e767080ea12

10 years agomem: do not check for negative size
Vittorio Giovara [Fri, 25 Oct 2013 14:41:12 +0000 (16:41 +0200)]
mem: do not check for negative size

size_t is guaranteed to be unsigned

Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years agofate: aac: Add test for AAC-ELD
Alex Converse [Tue, 22 Oct 2013 10:04:47 +0000 (10:04 +0000)]
fate: aac: Add test for AAC-ELD

10 years agoaacdec: Fix calls to avpriv_report_missing_feature().
Alex Converse [Fri, 25 Oct 2013 18:13:13 +0000 (18:13 +0000)]
aacdec: Fix calls to avpriv_report_missing_feature().

It does not take log level as an argument.

10 years agolibavutil: x86: Add AVX2 capable CPU detection.
Kieran Kunhya [Fri, 25 Oct 2013 12:53:56 +0000 (07:53 -0500)]
libavutil: x86: Add AVX2 capable CPU detection.

Patch based on x264's AVX2 detection

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
10 years agofft-test: Remove possibility of returning restricted exit code
Derek Buitenhuis [Tue, 22 Oct 2013 18:19:02 +0000 (19:19 +0100)]
fft-test: Remove possibility of returning restricted exit code

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
10 years agodct-test: Remove possibility of returning a restricted exit code
Derek Buitenhuis [Tue, 22 Oct 2013 18:18:36 +0000 (19:18 +0100)]
dct-test: Remove possibility of returning a restricted exit code

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
10 years agobase64-test: Remove posibility of returning restricted exit codes
Derek Buitenhuis [Tue, 22 Oct 2013 18:11:31 +0000 (19:11 +0100)]
base64-test: Remove posibility of returning restricted exit codes

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
10 years agotree-test: Don't return restricted exit codes
Derek Buitenhuis [Tue, 22 Oct 2013 18:08:43 +0000 (19:08 +0100)]
tree-test: Don't return restricted exit codes

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
10 years agogolomb: reduce scope of a few variables
Vittorio Giovara [Wed, 23 Oct 2013 13:43:19 +0000 (15:43 +0200)]
golomb: reduce scope of a few variables

Signed-off-by: Diego Biurrun <diego@biurrun.de>
10 years agoavfilter: x86: Port gradfun filter optimizations to yasm
Daniel Kang [Tue, 22 Oct 2013 00:37:46 +0000 (20:37 -0400)]
avfilter: x86: Port gradfun filter optimizations to yasm

Signed-off-by: Diego Biurrun <diego@biurrun.de>
10 years agogolomb: K&R formatting cosmetics
Vittorio Giovara [Tue, 22 Oct 2013 11:12:49 +0000 (13:12 +0200)]
golomb: K&R formatting cosmetics

Signed-off-by: Diego Biurrun <diego@biurrun.de>
10 years agoh263: K&R formatting cosmetics
Luca Barbato [Tue, 22 Oct 2013 17:37:44 +0000 (19:37 +0200)]
h263: K&R formatting cosmetics

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
10 years agoavstring-test: Mark pointer passed to av_free() as non-const
Diego Biurrun [Sat, 19 Oct 2013 14:12:49 +0000 (16:12 +0200)]
avstring-test: Mark pointer passed to av_free() as non-const

libavutil/avstring.c:278:9: warning: passing argument 1 of ‘av_free’ discards ‘const’ qualifier from pointer target type

10 years agompegvideo: Drop a faulty assert
Luca Barbato [Tue, 22 Oct 2013 17:17:10 +0000 (19:17 +0200)]
mpegvideo: Drop a faulty assert

That check is easily reachable by faulty input.

CC:libav-stable@libav.org
Reported-by: Torsten Sadowski <tsadowski@gmx.net>
10 years agoavfilter: Fix typo in Loren's email address
Diego Biurrun [Mon, 21 Oct 2013 20:35:02 +0000 (22:35 +0200)]
avfilter: Fix typo in Loren's email address

10 years agomovenc: Add an F4V muxer
Clément Bœsch [Mon, 17 Sep 2012 14:16:16 +0000 (16:16 +0200)]
movenc: Add an F4V muxer

F4V is Adobe's mp4/iso media variant, with the most significant
addition/change being supporting other flash codecs than just
aac/h264.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agoaac: Add support for Enhanced AAC Low Delay (ER AAC ELD).
Alex Converse [Mon, 14 Oct 2013 20:51:46 +0000 (13:51 -0700)]
aac: Add support for Enhanced AAC Low Delay (ER AAC ELD).

This does not include support for LD SBR, epTool, data resilience, nor
the 960 transform family.

10 years agoaacdec: Use avpriv_report_missing_feature() instead of custom logging.
Alex Converse [Tue, 22 Oct 2013 10:41:04 +0000 (03:41 -0700)]
aacdec: Use avpriv_report_missing_feature() instead of custom logging.

10 years agonut: Fix unchecked allocations
Derek Buitenhuis [Tue, 22 Oct 2013 15:11:11 +0000 (16:11 +0100)]
nut: Fix unchecked allocations

CC: libav-stable@libav.org
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
10 years agopthread: Avoid crashes/odd behavior caused by spurious wakeups
Derek Buitenhuis [Fri, 18 Oct 2013 14:28:51 +0000 (15:28 +0100)]
pthread: Avoid crashes/odd behavior caused by spurious wakeups

This is similar to 5152196b2b47d446d9a509b9bfb318daa26a1f2b.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
10 years agofate: add fieldorder filter test
Vittorio Giovara [Sun, 13 Oct 2013 10:41:47 +0000 (10:41 +0000)]
fate: add fieldorder filter test

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years agovf_fieldorder: log when processing is skipped
Vittorio Giovara [Tue, 22 Oct 2013 07:21:18 +0000 (07:21 +0000)]
vf_fieldorder: log when processing is skipped

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years agoh264_parser: Use ff_h264_reset_sei()
Yusuke Nakamura [Mon, 14 Oct 2013 19:22:42 +0000 (19:22 +0000)]
h264_parser: Use ff_h264_reset_sei()

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years agoh264_parser: Fix order of operations
Michael Niedermayer [Sun, 20 Oct 2013 12:11:05 +0000 (12:11 +0000)]
h264_parser: Fix order of operations

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years agoavplay: Accept cpuflags option
Luca Barbato [Mon, 14 Oct 2013 03:41:45 +0000 (05:41 +0200)]
avplay: Accept cpuflags option

Quite useful for debugging.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years agoavio: Use AVERROR_PROTOCOL_NOT_FOUND
Luca Barbato [Sun, 20 Oct 2013 20:01:54 +0000 (22:01 +0200)]
avio: Use AVERROR_PROTOCOL_NOT_FOUND

When the protocol is missing ffurl_alloc() should return
AVERROR_PROTOCOL_NOT_FOUND instead of AVERROR(ENOENT).

Bug-Id: 577
CC: libav-stable@libav.org
10 years agopthread: Avoid spurious wakeups
Ben Jackson [Fri, 18 Oct 2013 14:28:50 +0000 (15:28 +0100)]
pthread: Avoid spurious wakeups

pthread_wait_cond can wake up unexpectedly (Wikipedia: Spurious_wakeup).

The FF_THREAD_SLICE thread mechanism could spontaneously execute
jobs or allow the caller of avctx->execute to return before all
jobs were complete.

Test both cases to ensure the wakeup is real.

Signed-off-by: Ben Jackson <ben@ben.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years agofate: vpx: Remove one redundant $(eval) invocation
Diego Biurrun [Wed, 16 Oct 2013 14:42:24 +0000 (16:42 +0200)]
fate: vpx: Remove one redundant $(eval) invocation

10 years agowtv: Seek by sector properly
Luca Barbato [Fri, 18 Oct 2013 11:45:13 +0000 (13:45 +0200)]
wtv: Seek by sector properly

Use an helper function to seek by sector to avoid possible mistakes
due shifting by WTV_SECTOR_BITS a 32bit integer.

Contrary to common intuition, a 32 bit integer left shifted
by a 64 bit integer does not promote the 32 bit integer to
64 bit before shifting.

10 years agofate: Increase the tolerance in the lavr tests
Martin Storsjö [Thu, 17 Oct 2013 08:38:58 +0000 (11:38 +0300)]
fate: Increase the tolerance in the lavr tests

A few fate instances on OS/2, OpenBSD, FreeBSD and IA64 linux currently
still fail a few tests with a maxdiff of 6.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agofate: aac: Add test for AAC-LD
Diego Biurrun [Mon, 14 Oct 2013 21:40:05 +0000 (23:40 +0200)]
fate: aac: Add test for AAC-LD

10 years agomem: Make av_strdup allocate using av_realloc
Martin Storsjö [Fri, 4 Oct 2013 21:19:13 +0000 (00:19 +0300)]
mem: Make av_strdup allocate using av_realloc

This makes sure that pointers from av_strdup are reallocable,
which is used in av_dict_set if the AV_DICT_APPEND flag is set.

Nothing should rely on pointers from av_strdup being aligned.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agompegvideo: Move 8x8 in a separate function
Luca Barbato [Sun, 13 Oct 2013 05:55:14 +0000 (07:55 +0200)]
mpegvideo: Move 8x8 in a separate function

10 years agompegvideo: Move obmc in a separate function
Luca Barbato [Sun, 13 Oct 2013 05:27:11 +0000 (07:27 +0200)]
mpegvideo: Move obmc in a separate function

10 years agoffv1: Assume bitdepth 0 means 8bit
Luca Barbato [Sun, 13 Oct 2013 13:34:47 +0000 (15:34 +0200)]
ffv1: Assume bitdepth 0 means 8bit

CC: libav-stable@libav.org
Reported-by: debian/726189
10 years agompegvideo: K&R formatting cosmetics
Luca Barbato [Sun, 13 Oct 2013 05:13:01 +0000 (07:13 +0200)]
mpegvideo: K&R formatting cosmetics

10 years agolavc: Convert some remaining strides to ptrdiff_t
Ronald S. Bultje [Sun, 13 Oct 2013 00:42:42 +0000 (02:42 +0200)]
lavc: Convert some remaining strides to ptrdiff_t

10 years agoh264_parser: Fix POC parsing for the case where MMCO_RESET is present.
Yusuke Nakamura [Tue, 24 Sep 2013 09:30:50 +0000 (18:30 +0900)]
h264_parser: Fix POC parsing for the case where MMCO_RESET is present.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years agoh264_parser: Fix POC parsing for the case where MMCO_RESET is absent.
Yusuke Nakamura [Mon, 16 Sep 2013 09:34:27 +0000 (18:34 +0900)]
h264_parser: Fix POC parsing for the case where MMCO_RESET is absent.

The prev_ values were not set after parsing POC.
Increase length of the buffer decoded to parse enough safely.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years agofate: add vorbiscomment cover art test
James Almer [Fri, 26 Jul 2013 05:56:19 +0000 (02:56 -0300)]
fate: add vorbiscomment cover art test

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years agoFATE: use proper comparison mode in the lavr tests
Anton Khirnov [Mon, 14 Oct 2013 19:17:26 +0000 (21:17 +0200)]
FATE: use proper comparison mode in the lavr tests

10 years agotiny_psnr: switch f32 handling to floating point
Anton Khirnov [Mon, 14 Oct 2013 19:10:08 +0000 (21:10 +0200)]
tiny_psnr: switch f32 handling to floating point

Also add support for f64.

10 years agobitstream: Check the result of av_malloc()
Diego Biurrun [Tue, 15 Oct 2013 12:34:55 +0000 (14:34 +0200)]
bitstream: Check the result of av_malloc()

10 years agocavs: more K&R formatting cosmetics
Diego Biurrun [Mon, 14 Oct 2013 17:12:52 +0000 (19:12 +0200)]
cavs: more K&R formatting cosmetics

10 years agompegaudio_tablegen: Don't use llrint
Derek Buitenhuis [Tue, 15 Jan 2013 21:09:01 +0000 (16:09 -0500)]
mpegaudio_tablegen: Don't use llrint

You cannot count on it being present on all systems, and you
cannot include libm.h in a host tool, so just hard code a baseline
implementation.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
10 years agocos_tablegen: Don't use lrint
Derek Buitenhuis [Tue, 15 Jan 2013 21:09:00 +0000 (16:09 -0500)]
cos_tablegen: Don't use lrint

You cannot count on it being present on all systems, and you
cannot include libm.h in a host tool, so just hard code a baseline
implementation.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
10 years agotablegen: Don't use cbrtf in host tools
Derek Buitenhuis [Tue, 15 Jan 2013 21:08:59 +0000 (16:08 -0500)]
tablegen: Don't use cbrtf in host tools

You cannot count on them being present on all systems, and you
cannot include libm.h in a host tool, so just hard code baseline
implementations.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
10 years agotableprint: Fix use of a size_t print with MSVC
Derek Buitenhuis [Tue, 15 Jan 2013 21:08:58 +0000 (16:08 -0500)]
tableprint: Fix use of a size_t print with MSVC

%zu was introduced in C99, so MSVC has its own way to handle it,
namely %Iu.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
10 years agohttp: Check the auth string contents and not only the pointer
Michael Niedermayer [Sun, 13 Oct 2013 22:56:32 +0000 (00:56 +0200)]
http: Check the auth string contents and not only the pointer

This makes sure we don't send the Except: 100-continue header
if no authentication credentials have been provided.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agox86: more AVX2 framework
Jason Garrett-Glaser [Wed, 27 Feb 2013 00:26:34 +0000 (16:26 -0800)]
x86: more AVX2 framework

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
10 years agox86inc: FMA3/4 Support
Jason Garrett-Glaser [Mon, 12 Nov 2012 18:28:53 +0000 (10:28 -0800)]
x86inc: FMA3/4 Support

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
10 years agox86inc: Remove our FMA4 support
Derek Buitenhuis [Wed, 9 Oct 2013 12:54:59 +0000 (08:54 -0400)]
x86inc: Remove our FMA4 support

This is so we can sync to x264's version of FMA4 support.

This partialy reverts commit 79687079a97a039c325ab79d7a95920d800b791f.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
10 years agox86inc: Use VEX-encoded instructions in AVX functions
Henrik Gramner [Tue, 11 Dec 2012 15:05:34 +0000 (16:05 +0100)]
x86inc: Use VEX-encoded instructions in AVX functions

Automatically use VEX-encoding in AVX/AVX2/XOP/FMA3/FMA4
functions for all instructions that exists in a VEX-encoded
version.

This change makes it easier to extend existing code to use AVX2.

Also add support for AVX emulation of a few instructions that
were missing before.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
10 years agoavresample/x86: Switch operand order for mulps
Derek Buitenhuis [Wed, 9 Oct 2013 12:41:36 +0000 (08:41 -0400)]
avresample/x86: Switch operand order for mulps

With the forthcoming VEX instruction emulation, mulps
must have only the third operand point to memory, as
this is what vmulps expects.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
10 years agortmp: Allocate the prev_pkt arrays dynamically
Martin Storsjö [Fri, 11 Oct 2013 19:16:04 +0000 (22:16 +0300)]
rtmp: Allocate the prev_pkt arrays dynamically

Normally, all channel ids are between 0 and 10, while they in
uncommon cases can have values up to 64k.

This avoids allocating two arrays for up to 64k entries (at a total
of over 6 MB in size) each when most of them aren't used at all.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agocavs: Check for negative cbp
Luca Barbato [Sun, 13 Oct 2013 01:30:06 +0000 (03:30 +0200)]
cavs: Check for negative cbp

Sample-Id: 00000647-google
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org