ffmpeg.git
4 years agoavfilter: add displace video filter
Paul B Mahol [Thu, 23 Jul 2015 19:25:24 +0000 (19:25 +0000)]
avfilter: add displace video filter

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavcodec/alacdec: split off decorrelate_stereo and append_extra_bits as alacdsp
James Almer [Sun, 4 Oct 2015 17:09:05 +0000 (14:09 -0300)]
avcodec/alacdec: split off decorrelate_stereo and append_extra_bits as alacdsp

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavcodec: use HAVE_THREADS header guards to silence -Wunused-function
Ganesh Ajjanagadde [Thu, 17 Sep 2015 02:22:27 +0000 (22:22 -0400)]
avcodec: use HAVE_THREADS header guards to silence -Wunused-function

When compiled with --disable-pthreads, e.g
http://fate.ffmpeg.org/report.cgi?time=20150917015044&slot=alpha-debian-qemu-gcc-4.7,
a bunch of -Wunused-functions are reported due to missing header guards
around threading related functions.
This patch should silence such warnings.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
4 years agoall: add _DEFAULT_SOURCE locally wherever needed
Ganesh Ajjanagadde [Sat, 3 Oct 2015 12:41:00 +0000 (07:41 -0500)]
all: add _DEFAULT_SOURCE locally wherever needed

Glibc 2.20 onwards generates a deprecation warning for usage of _BSD_SOURCE and _SVID_SOURCE.
The solution from man feature_test_macros is to define both _DEFAULT_SOURCE and the old macros.
This solution is on the lines of the one in commit af1818276ef271af98e2e2bbabb4dc875b4fa7d8.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
4 years agoffplay: more robust thread creation
Ganesh Ajjanagadde [Sat, 3 Oct 2015 22:50:06 +0000 (18:50 -0400)]
ffplay: more robust thread creation

SDL_CreateThread can fail:
https://wiki.libsdl.org/SDL_CreateThread.
This patch makes thread creation more robust in one instance.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
4 years agoChangelog: add note on ffplay dynamic volume control
Ganesh Ajjanagadde [Sun, 4 Oct 2015 02:36:06 +0000 (22:36 -0400)]
Changelog: add note on ffplay dynamic volume control

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
4 years agocheckasm: Fix compilation with --disable-avcodec
Henrik Gramner [Thu, 1 Oct 2015 17:25:33 +0000 (19:25 +0200)]
checkasm: Fix compilation with --disable-avcodec

4 years agoavformat/flacdec: support fast-seek
Ching Yi, Chan [Thu, 24 Sep 2015 05:04:40 +0000 (13:04 +0800)]
avformat/flacdec: support fast-seek

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavfilter/ebur128: use AV_OPT_TYPE_BOOL for video option
Clément Bœsch [Sun, 4 Oct 2015 11:10:17 +0000 (13:10 +0200)]
avfilter/ebur128: use AV_OPT_TYPE_BOOL for video option

4 years agoavfilter/ebur128: add dualmono measurement option
Kyle Swanson [Wed, 30 Sep 2015 15:35:08 +0000 (10:35 -0500)]
avfilter/ebur128: add dualmono measurement option

4 years agolavf: add chromaprint muxer
Rodger Combs [Sat, 3 Oct 2015 22:24:06 +0000 (17:24 -0500)]
lavf: add chromaprint muxer

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolibavformat/hlsenc: Use of uninitialized memory unlinking old files
DHE [Thu, 1 Oct 2015 23:21:33 +0000 (19:21 -0400)]
libavformat/hlsenc: Use of uninitialized memory unlinking old files

Fixes ticket#4900

Signed-off-by: DHE <git@dehacked.net>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolibx264: copy A53 closed captions from source
DeHackEd [Tue, 29 Sep 2015 17:19:34 +0000 (13:19 -0400)]
libx264: copy A53 closed captions from source

Assumes 'GA94' format (ATSC standard)

Signed-off-by: DHE <git@dehacked.net>
Tested-by: Anshul <anshul.ffmpeg@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoblockdsp: reindent after parameter removal
Christophe Gisquet [Mon, 28 Sep 2015 12:03:36 +0000 (14:03 +0200)]
blockdsp: reindent after parameter removal

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/apedec: fix bug introduced in commit d3e5fbb1406995e07fccbff3ca8c1e24f57a1f7b
Ganesh Ajjanagadde [Sat, 3 Oct 2015 18:48:14 +0000 (14:48 -0400)]
avcodec/apedec: fix bug introduced in commit d3e5fbb1406995e07fccbff3ca8c1e24f57a1f7b

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavf/mlpdec: Simplify mlp/thd probe function.
Carl Eugen Hoyos [Sat, 3 Oct 2015 20:40:27 +0000 (22:40 +0200)]
lavf/mlpdec: Simplify mlp/thd probe function.

Move the demuxers into their own file.

4 years agoavfilter/vf_stereo3d: rewrite in preparation for SIMD
Paul B Mahol [Sat, 3 Oct 2015 20:12:17 +0000 (22:12 +0200)]
avfilter/vf_stereo3d: rewrite in preparation for SIMD

Also slightly faster.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoconfigure: silence preprocessor noise from dependency generation
Ganesh Ajjanagadde [Fri, 18 Sep 2015 19:28:47 +0000 (15:28 -0400)]
configure: silence preprocessor noise from dependency generation

Currently, errors are thrown for various macros while building that are completely bogus.
They occur during the dependency (.d) generation phase, and have no bearing on the compiled output,
since only the stdout is piped into the sed command to generate the .d files.
They basically occur as the relevant -I paths are not (and cannot be passed) during
the dependancy generation phase.
As such, this patch silences them.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavfilter/vf_blend: Fix argument types, fix segfault in asm
Michael Niedermayer [Sat, 3 Oct 2015 19:49:42 +0000 (21:49 +0200)]
avfilter/vf_blend: Fix argument types, fix segfault in asm

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavf/shortendec: Autodetect raw Shorten streams.
Carl Eugen Hoyos [Sat, 3 Oct 2015 19:48:16 +0000 (21:48 +0200)]
lavf/shortendec: Autodetect raw Shorten streams.

Move the demuxer into its own file.

4 years agoavfilter/vf_blend: add x86 SIMD for some modes
Paul B Mahol [Fri, 2 Oct 2015 15:22:42 +0000 (17:22 +0200)]
avfilter/vf_blend: add x86 SIMD for some modes

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agovp9: 10/12bpp SIMD (sse2/ssse3/avx) for directional intra prediction.
Ronald S. Bultje [Fri, 2 Oct 2015 13:11:55 +0000 (09:11 -0400)]
vp9: 10/12bpp SIMD (sse2/ssse3/avx) for directional intra prediction.

4 years agovp9: 16bpp tm/dc/h/v intra pred simd (mostly sse2) functions.
Ronald S. Bultje [Fri, 25 Sep 2015 21:24:07 +0000 (17:24 -0400)]
vp9: 16bpp tm/dc/h/v intra pred simd (mostly sse2) functions.

4 years agovp9: sse2/ssse3/avx 16bpp loopfilter x86 simd.
Ronald S. Bultje [Wed, 30 Sep 2015 17:23:09 +0000 (13:23 -0400)]
vp9: sse2/ssse3/avx 16bpp loopfilter x86 simd.

4 years agocmdutils: silence unused warnings under --disable-swscale, --disable-swresample
Ganesh Ajjanagadde [Sat, 19 Sep 2015 14:20:26 +0000 (10:20 -0400)]
cmdutils: silence unused warnings under --disable-swscale, --disable-swresample

This patch silences such warnings by placing initializations under a header guard,
see e.g
http://fate.ffmpeg.org/log.cgi?time=20150919095430&log=compile&slot=x86_64-archlinux-gcc-disableswscale,
http://fate.ffmpeg.org/log.cgi?time=20150919095048&log=compile&slot=x86_64-archlinux-gcc-disableswresample
for examples of such warnings.
It also has the benefit of placing library specific #defines next to each other.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
4 years agoffplay: more robust mutex, condition variable handling
Ganesh Ajjanagadde [Sat, 3 Oct 2015 12:34:49 +0000 (07:34 -0500)]
ffplay: more robust mutex, condition variable handling

SDL_CreateMutex and SDL_CreateCond can fail:
https://wiki.libsdl.org/SDL_CreateMutex.
This patch makes handling more robust in one instance.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
4 years agoconfigure: Remove --disable-avutil which has no effect from help output.
Carl Eugen Hoyos [Sat, 3 Oct 2015 14:35:32 +0000 (16:35 +0200)]
configure: Remove --disable-avutil which has no effect from help output.

4 years agolavc/options_table: Add option flags to the truncated flag.
Carl Eugen Hoyos [Sat, 3 Oct 2015 14:24:00 +0000 (16:24 +0200)]
lavc/options_table: Add option flags to the truncated flag.

Also add a short description for the help output.

4 years agoavfilter/vf_tinterlace: add mergex2 mode
Paul B Mahol [Wed, 30 Sep 2015 13:35:55 +0000 (15:35 +0200)]
avfilter/vf_tinterlace: add mergex2 mode

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agocheckasm: Remove use of deprecated av_set_cpu_flags_mask()
Henrik Gramner [Sat, 26 Sep 2015 13:43:49 +0000 (15:43 +0200)]
checkasm: Remove use of deprecated av_set_cpu_flags_mask()

4 years agoconfigure: Change screenpresso_decoder to select zlib instead of dep
Michael Niedermayer [Sat, 3 Oct 2015 12:42:02 +0000 (14:42 +0200)]
configure: Change screenpresso_decoder to select zlib instead of dep

zlib is used as a suggest/select target not a dep

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/x86/hpeldsp_rnd_template: silence -Wunused-function on --disable-mmx
Ganesh Ajjanagadde [Tue, 29 Sep 2015 23:28:28 +0000 (19:28 -0400)]
avcodec/x86/hpeldsp_rnd_template: silence -Wunused-function on --disable-mmx

This silences some of the -Wunused-function warnings when compiled with --disable-mmx, e.g
http://fate.ffmpeg.org/log.cgi?time=20150919094617&log=compile&slot=x86_64-archlinux-gcc-disable-mmx.
Header guards are too brittle and ugly for this case.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavf/hls: allow subtitles to be read despite incomplete handling
Rodger Combs [Mon, 21 Sep 2015 10:31:24 +0000 (05:31 -0500)]
lavf/hls: allow subtitles to be read despite incomplete handling

This will give incorrect results in some cases due to not parsing segments
separately, so it currently requires -strict experimental.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoMerge commit 'e54d7e4e8ef7d778e2ddc5a60bf7307ed55d6333'
Hendrik Leppkes [Sat, 3 Oct 2015 10:49:22 +0000 (12:49 +0200)]
Merge commit 'e54d7e4e8ef7d778e2ddc5a60bf7307ed55d6333'

* commit 'e54d7e4e8ef7d778e2ddc5a60bf7307ed55d6333':
  dnxhddata: Deduplicate cid 1256 chroma table

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agoMerge commit '1fb63d6f43c348e9c990fa6f7c1bd43f22bc2389'
Hendrik Leppkes [Sat, 3 Oct 2015 10:48:41 +0000 (12:48 +0200)]
Merge commit '1fb63d6f43c348e9c990fa6f7c1bd43f22bc2389'

* commit '1fb63d6f43c348e9c990fa6f7c1bd43f22bc2389':
  dnxhddata: Deduplicate dnx100 tables

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agoMerge commit 'cc320296ab438dfe3178f0e1f775af955fe6c064'
Hendrik Leppkes [Sat, 3 Oct 2015 10:47:35 +0000 (12:47 +0200)]
Merge commit 'cc320296ab438dfe3178f0e1f775af955fe6c064'

* commit 'cc320296ab438dfe3178f0e1f775af955fe6c064':
  dnxhddata: Fix cid 1260 luma and chroma tables

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agoMerge commit 'bfe1cd80ebeab58cbc1c91ac766a96fce8e4ec1e'
Hendrik Leppkes [Sat, 3 Oct 2015 10:47:20 +0000 (12:47 +0200)]
Merge commit 'bfe1cd80ebeab58cbc1c91ac766a96fce8e4ec1e'

* commit 'bfe1cd80ebeab58cbc1c91ac766a96fce8e4ec1e':
  dnxhddata: Fix 10-bit DNxHD quant matrices

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agoMerge commit '380146924ecad2e05e9dcc5c3c2e1b5ba47c51e8'
Hendrik Leppkes [Sat, 3 Oct 2015 10:46:01 +0000 (12:46 +0200)]
Merge commit '380146924ecad2e05e9dcc5c3c2e1b5ba47c51e8'

* commit '380146924ecad2e05e9dcc5c3c2e1b5ba47c51e8':
  x264: Add option to force IDR frames

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agoMerge commit 'eb02387add350f2b34a3e61539fe25ec6213eb18'
Hendrik Leppkes [Sat, 3 Oct 2015 10:43:46 +0000 (12:43 +0200)]
Merge commit 'eb02387add350f2b34a3e61539fe25ec6213eb18'

* commit 'eb02387add350f2b34a3e61539fe25ec6213eb18':
  x264: Expose the NV21 input support

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agoMerge commit '74942685cb457c01937686892878403a409baf27'
Hendrik Leppkes [Sat, 3 Oct 2015 10:43:28 +0000 (12:43 +0200)]
Merge commit '74942685cb457c01937686892878403a409baf27'

* commit '74942685cb457c01937686892878403a409baf27':
  hls: Check av_opt_set_dict return value as well

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agoMerge commit 'd0a3e89d41b05f9ed0e7401c352b60ed4f4d1ed5'
Hendrik Leppkes [Sat, 3 Oct 2015 10:36:42 +0000 (12:36 +0200)]
Merge commit 'd0a3e89d41b05f9ed0e7401c352b60ed4f4d1ed5'

* commit 'd0a3e89d41b05f9ed0e7401c352b60ed4f4d1ed5':
  dcadec: make a number of samples per subband per subsubframe a named constant

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agoMerge commit '8ae1d87a2440cea0564efe2a6c9c223478a05f44'
Hendrik Leppkes [Sat, 3 Oct 2015 10:29:19 +0000 (12:29 +0200)]
Merge commit '8ae1d87a2440cea0564efe2a6c9c223478a05f44'

* commit '8ae1d87a2440cea0564efe2a6c9c223478a05f44':
  build: Add support for known custom allocators

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agoMerge commit '9a3202a98b2e095b54dd784c3e01a09a676fc3fa'
Hendrik Leppkes [Sat, 3 Oct 2015 10:22:41 +0000 (12:22 +0200)]
Merge commit '9a3202a98b2e095b54dd784c3e01a09a676fc3fa'

* commit '9a3202a98b2e095b54dd784c3e01a09a676fc3fa':
  Screenpresso SPV1 decoder

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agolavf/utils: avoid giving up probing early with long subtitle events
Rodger Combs [Sat, 3 Oct 2015 03:39:24 +0000 (22:39 -0500)]
lavf/utils: avoid giving up probing early with long subtitle events

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/h264_ps: Fix copying oversized pps&sps data
Michael Niedermayer [Fri, 2 Oct 2015 19:02:08 +0000 (21:02 +0200)]
avcodec/h264_ps: Fix copying oversized pps&sps data

Fixes: https://trac.ffmpeg.org/attachment/ticket/685/movie.264

In the available testcase the actual PPS only uses a few bits
while there are 7kbyte of apparently random data after it

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoMerge commit '1aa24df74c052a73175c43e57d35b4835e537ec8'
Hendrik Leppkes [Sat, 3 Oct 2015 07:52:39 +0000 (09:52 +0200)]
Merge commit '1aa24df74c052a73175c43e57d35b4835e537ec8'

* commit '1aa24df74c052a73175c43e57d35b4835e537ec8':
  lavu: Deprecate AVFrame.error[]

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agoMerge commit '3f1f6053013d0015e9f115a91a11744807649a07'
Hendrik Leppkes [Sat, 3 Oct 2015 07:32:47 +0000 (09:32 +0200)]
Merge commit '3f1f6053013d0015e9f115a91a11744807649a07'

* commit '3f1f6053013d0015e9f115a91a11744807649a07':
  configure: address a copy-paste typo

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agoavformat/flvdec: accept sizes if they are off by 11
Michael Niedermayer [Fri, 2 Oct 2015 18:05:06 +0000 (20:05 +0200)]
avformat/flvdec: accept sizes if they are off by 11

This error was produced by rtmproto.c, it is possibly such streams
where dumped, this commit is needed to support them

Fixes: z0e.flv

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/videotoolbox: fix decoding of some h264 bitstreams
wm4 [Fri, 2 Oct 2015 15:18:06 +0000 (17:18 +0200)]
avcodec/videotoolbox: fix decoding of some h264 bitstreams

This affects Annex B streams (such as demuxed from .ts and others). It
also handles the format change in reinit-large_420_8-to-small_420_8.h264
correctly.

Instead of passing through the extradata, create it on the fly it from
the currently active SPS and PPS. Since reconstructing the PPS and SPS
NALs would be very complicated and verbose, we use the NALs as they
originally appeared in the bitstream.

The code for writing the extradata is somewhat derived from
libavformat/avc.c, but it's small and different enough that sharing it
is not really worth it.

4 years agoavcodec/h264: keep SPS and PPS bitstream data
wm4 [Fri, 2 Oct 2015 15:18:00 +0000 (17:18 +0200)]
avcodec/h264: keep SPS and PPS bitstream data

We assume an upper bound of 4096 bytes for each raw SPS/PPS. It's hard
to determine an exact maximum size, but this value was was considered
high enough and safe.

Needed for the following VideotoolBox commit.

4 years agodnxhddec: init scantable once permutation is set
Christophe Gisquet [Thu, 1 Oct 2015 20:01:27 +0000 (22:01 +0200)]
dnxhddec: init scantable once permutation is set

Otherwise, the dsp may change without its permuation being applied.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agodnxhddec: use dequantization formula from specs
Christophe Gisquet [Thu, 1 Oct 2015 20:01:26 +0000 (22:01 +0200)]
dnxhddec: use dequantization formula from specs

The current one, while correct, does not yield the best possible
results. The specificiations suggest another formula, which results
in quality gains in the decoded output from fate tests. This
justifies changing said formula.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agodnxhddec: initialize with mb-aligned dimensions
Christophe Gisquet [Wed, 30 Sep 2015 08:14:59 +0000 (10:14 +0200)]
dnxhddec: initialize with mb-aligned dimensions

The coded size is a multiple of the macroblock size, which is 16.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavfilter/vf_maskedmerge: add SIMD for maskedmerge with 8 bit depth input
Paul B Mahol [Wed, 30 Sep 2015 21:00:14 +0000 (23:00 +0200)]
avfilter/vf_maskedmerge: add SIMD for maskedmerge with 8 bit depth input

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavcodec: Don't lock during open if the codec has threadsafe init
Derek Buitenhuis [Thu, 1 Oct 2015 14:38:15 +0000 (15:38 +0100)]
avcodec: Don't lock during open if the codec has threadsafe init

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
4 years agodnxhddata: Deduplicate cid 1256 chroma table
Christophe Gisquet [Thu, 1 Oct 2015 14:54:57 +0000 (16:54 +0200)]
dnxhddata: Deduplicate cid 1256 chroma table

CID 1256 is specified as using the same table for luma and chroma,
which is the same as CID 1235 luma table. This is consistent with
the format supposedly being RGB, although most sequences seem to
actually be YCbCr-encoded.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
4 years agodnxhddata: Deduplicate dnx100 tables
Jeremy James [Thu, 1 Oct 2015 14:54:56 +0000 (16:54 +0200)]
dnxhddata: Deduplicate dnx100 tables

Tables 1258 and 1259 were not zigzagged when added, so it was not
possible to notice the equivalence.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
4 years agodnxhddata: Fix cid 1260 luma and chroma tables
Jeremy James [Thu, 1 Oct 2015 14:54:55 +0000 (16:54 +0200)]
dnxhddata: Fix cid 1260 luma and chroma tables

These table was not zigzagged when added.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
4 years agodnxhddata: Fix 10-bit DNxHD quant matrices
Joseph Artsimovich [Thu, 1 Oct 2015 15:06:26 +0000 (17:06 +0200)]
dnxhddata: Fix 10-bit DNxHD quant matrices

Convert them to zigzag order, as the rest of them are.

When I was adding support for 10-bit DNxHD, I just copy-pasted the
missing quant matrices from the spec. Now it turns out the existing
matrices in dnxhddata.c were in zigzag order. This resulted in wrong
quantization for 10-bit DNxHD. The attached patch fixes the problem by
converting 10-bit quant matrices to zigzag order.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavfilter/af_rubberband: add process_command()
Paul B Mahol [Wed, 30 Sep 2015 19:40:54 +0000 (21:40 +0200)]
avfilter/af_rubberband: add process_command()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoblockdsp: remove high bitdepth parameter
Christophe Gisquet [Mon, 28 Sep 2015 11:59:23 +0000 (13:59 +0200)]
blockdsp: remove high bitdepth parameter

It is only (mis-)used to set the dsp fucntions clear_block(s). But
these functions always work on 16bits-wide elements, which make
the parameter useless and actually harmful, as it causes all content
on more than 8-bits to not use accelerated functions.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agox86/audio_convert: fix clobbering of xmm registers
James Almer [Sat, 26 Sep 2015 00:14:15 +0000 (21:14 -0300)]
x86/audio_convert: fix clobbering of xmm registers

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agolavf/rawdec: Autodetect raw TrueHD streams.
Carl Eugen Hoyos [Fri, 2 Oct 2015 01:15:04 +0000 (03:15 +0200)]
lavf/rawdec: Autodetect raw TrueHD streams.

4 years agoavformat/rtmpproto: Fix 2 more cases of the 2nd packet size being wrong
Michael Niedermayer [Thu, 1 Oct 2015 23:59:22 +0000 (01:59 +0200)]
avformat/rtmpproto: Fix 2 more cases of the 2nd packet size being wrong

This should fix RTMP input which was broken by cbbd906be6150be38dfc14b6bc67dcac8da8aea4
the 40 + 11 case is untested as it did not occur in the testcase

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavfi/mandelbrot: Output RGB0 instead of RGBA.
Carl Eugen Hoyos [Thu, 1 Oct 2015 23:21:36 +0000 (01:21 +0200)]
lavfi/mandelbrot: Output RGB0 instead of RGBA.

4 years agoconfigure: check rubberband version, allow only latest one
Paul B Mahol [Thu, 1 Oct 2015 20:30:18 +0000 (22:30 +0200)]
configure: check rubberband version, allow only latest one

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavfilter/x86/vf_psnr.asm: fix typo
Paul B Mahol [Thu, 1 Oct 2015 19:53:13 +0000 (21:53 +0200)]
avfilter/x86/vf_psnr.asm: fix typo

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agolavf/rawdec: Autodetect raw mlp streams.
Carl Eugen Hoyos [Thu, 1 Oct 2015 17:58:10 +0000 (19:58 +0200)]
lavf/rawdec: Autodetect raw mlp streams.

4 years agox86inc: Make cpuflag() and notcpuflag() return 0 or 1
Henrik Gramner [Wed, 30 Sep 2015 21:17:41 +0000 (23:17 +0200)]
x86inc: Make cpuflag() and notcpuflag() return 0 or 1

Makes it possible to use them in arithmetic expressions.

4 years agoqsvenc.c: use query to catch all kind of setting issues
Sven Dueking [Thu, 1 Oct 2015 08:07:08 +0000 (09:07 +0100)]
qsvenc.c: use query to catch all kind of setting issues

Reviewed-by: Ivan Uskov <ivan.uskov@nablet.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agox264: Add option to force IDR frames
Derek Buitenhuis [Mon, 31 Aug 2015 13:34:54 +0000 (15:34 +0200)]
x264: Add option to force IDR frames

When forwarding the frame type information, by default x264 can
decide which kind of keyframe output, add an option to force it
to output IDR frames in to support use-cases such as preparing
the content for segmented streams formats.

4 years agox264: Expose the NV21 input support
Yu Xiaolei [Fri, 31 Jul 2015 22:42:15 +0000 (06:42 +0800)]
x264: Expose the NV21 input support

x264 build 147 adds the native support for NV21.

Useful to avoid additional pixel format conversion when encoding
from a wide range of capture devices, Android among those.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
4 years agohls: Check av_opt_set_dict return value as well
Luca Barbato [Wed, 30 Sep 2015 23:34:35 +0000 (01:34 +0200)]
hls: Check av_opt_set_dict return value as well

Bug-Id: CID 1320426

4 years agodcadec: make a number of samples per subband per subsubframe a named constant
Alexandra Khirnova [Fri, 18 Sep 2015 11:34:20 +0000 (13:34 +0200)]
dcadec: make a number of samples per subband per subsubframe a named constant

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
4 years agoavformat/srtdec: more lenient first line probing
Clément Bœsch [Thu, 1 Oct 2015 09:48:45 +0000 (11:48 +0200)]
avformat/srtdec: more lenient first line probing

Fixes Ticket #4898

4 years agoavformat/srtdec: fix number check for the first character
Clément Bœsch [Thu, 1 Oct 2015 09:46:05 +0000 (11:46 +0200)]
avformat/srtdec: fix number check for the first character

4 years agoavcodec/pngdec: mark previous_picture as done on end of decode_frame_common()
Michael Niedermayer [Mon, 28 Sep 2015 00:42:39 +0000 (02:42 +0200)]
avcodec/pngdec: mark previous_picture as done on end of decode_frame_common()

Fixes deadlock with threads

Found-by: Paul B Mahol
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/vp8: Do not use num_coeff_partitions in thread/buffer setup
Michael Niedermayer [Wed, 30 Sep 2015 11:10:48 +0000 (13:10 +0200)]
avcodec/vp8: Do not use num_coeff_partitions in thread/buffer setup

The variable is not a constant and can lead to race conditions

Fixes: repro.webm (not reproducable with FFmpeg alone)

Found-by: Dale Curtis <dalecurtis@google.com>
Tested-by: Dale Curtis <dalecurtis@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavfilter/vf_maskedmerge: get rid of MaskedMergeContext from functions that do actual...
Paul B Mahol [Wed, 30 Sep 2015 20:35:31 +0000 (22:35 +0200)]
avfilter/vf_maskedmerge: get rid of MaskedMergeContext from functions that do actual work

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavfilter/vf_maskedmerge: rewrite and remove some duplicated code
Paul B Mahol [Wed, 30 Sep 2015 20:23:26 +0000 (22:23 +0200)]
avfilter/vf_maskedmerge: rewrite and remove some duplicated code

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavcodec/mpeg12dec: Initialize chroma_format to 1
Michael Niedermayer [Wed, 30 Sep 2015 19:16:29 +0000 (21:16 +0200)]
avcodec/mpeg12dec: Initialize chroma_format to 1

This ensures that chroma format is never set to an invalid value

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agobuild: Add support for known custom allocators
Luca Barbato [Thu, 3 Sep 2015 09:55:48 +0000 (11:55 +0200)]
build: Add support for known custom allocators

Makes slightly easier to use jemalloc and tcmalloc.

The two are quite common choices for profiling and debugging.

4 years agoScreenpresso SPV1 decoder
Vittorio Giovara [Thu, 24 Sep 2015 22:36:50 +0000 (00:36 +0200)]
Screenpresso SPV1 decoder

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
4 years agolavu: Deprecate AVFrame.error[]
Vittorio Giovara [Mon, 28 Sep 2015 09:40:09 +0000 (11:40 +0200)]
lavu: Deprecate AVFrame.error[]

These field are difficult to interpret, and are provided by a single
encoder (mpegvideoenc). In general they do not belong to a structure
containing raw data only, so remove them from AVFrame.

Mpegvideoenc now uses a private field in Picture for its internal
computations.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
4 years agoavcodec/mp3: fix skipping zeros
wm4 [Wed, 30 Sep 2015 12:53:35 +0000 (14:53 +0200)]
avcodec/mp3: fix skipping zeros

Commits 43bc5cf9 and c5371f77 add code for skipping initial zeros in mp3
packets. This code forgot to report to the user that data was skipped at
all.

Since audio codecs allow partial packet decoding, the user application
has to rely on the return value. It will remove the data reported as
consumed by the decoder, and feed it to the decoder again. This resulted
in the mp3 frame after the zero region to be decoded over and over
again, until the zero region was finally skipped by the application.

Fix this by including the amount of skipped bytes to the number of
consumed bytes returned by the decode call.

Fixes trac ticket #4890.

4 years agoavfilter/af_rubberband: flush only if there is something available
Paul B Mahol [Wed, 30 Sep 2015 11:02:03 +0000 (13:02 +0200)]
avfilter/af_rubberband: flush only if there is something available

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agox86/hevc_sao: move 10/12bit functions into a separate file
James Almer [Mon, 28 Sep 2015 03:58:01 +0000 (00:58 -0300)]
x86/hevc_sao: move 10/12bit functions into a separate file

Tested-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavformat/async: Allow compilation with native threads.
Matt Oliver [Wed, 30 Sep 2015 03:41:53 +0000 (13:41 +1000)]
avformat/async: Allow compilation with native threads.

4 years agocompat/w32pthreads: Add return values to match the simulated pthread functions.
Matt Oliver [Wed, 30 Sep 2015 03:41:33 +0000 (13:41 +1000)]
compat/w32pthreads: Add return values to match the simulated pthread functions.

4 years agolibavformat/mov.c: Add parsing for DDTS atom for DTS audio
Shawn Singh [Tue, 29 Sep 2015 21:44:38 +0000 (14:44 -0700)]
libavformat/mov.c: Add parsing for DDTS atom for DTS audio

The DDTS atom is defined in ETSI TS 102 114, v1.4.1, Annex E.
This is useful for DTS-HD formats, some of which cannot be
decoded by dcadec.c or libdcadec.

Signed-off-by: Shawn Singh <shawnsingh@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agodnxhddata: deduplicate table
Christophe Gisquet [Mon, 28 Sep 2015 15:30:55 +0000 (17:30 +0200)]
dnxhddata: deduplicate table

CID 1256 is specified as using the same table for luma and chroma,
which is the same as CID 1235 luma table. This is consistent with
the format supposedly being RGB, although most sequences seem to
actually be YCbCr-encoded.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agovideotoolbox: require hardware acceleration
Stefano Pigozzi [Fri, 21 Aug 2015 06:56:24 +0000 (08:56 +0200)]
videotoolbox: require hardware acceleration

VideoToolbox also implements a software decoder for h264, and will fallback to
using it if the file cannot be decoded on the GPU. In these cases though,
we want the hwaccel to fail so that we can use the libavcodec software decoder
instead of the Apple one.

Signed-off-by: wm4 <nfxjfg@googlemail.com>
4 years agolavf/rawenc: Force one stream for hevc and m4v.
Carl Eugen Hoyos [Tue, 29 Sep 2015 19:36:18 +0000 (21:36 +0200)]
lavf/rawenc: Force one stream for hevc and m4v.

4 years agoavfilter/vf_atadenoise: do not use uninitialized data
Paul B Mahol [Tue, 29 Sep 2015 18:47:21 +0000 (20:47 +0200)]
avfilter/vf_atadenoise: do not use uninitialized data

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavcodec/x86/rnd_template: silence -Wunused-function on --disable-mmx
Ganesh Ajjanagadde [Sat, 19 Sep 2015 15:39:59 +0000 (11:39 -0400)]
avcodec/x86/rnd_template: silence -Wunused-function on --disable-mmx

This silences some of the -Wunused-function warnings when compiled with --disable-mmx, e.g
http://fate.ffmpeg.org/log.cgi?time=20150919094617&log=compile&slot=x86_64-archlinux-gcc-disable-mmx.
Header guards are too brittle and ugly for this case.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavf/img2dec: Fix memory leak
Przemysław Sobala [Tue, 29 Sep 2015 13:25:07 +0000 (15:25 +0200)]
lavf/img2dec: Fix memory leak

Fixes #4886

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agofate: Add basic license header check
Michael Niedermayer [Sun, 27 Sep 2015 12:06:54 +0000 (14:06 +0200)]
fate: Add basic license header check

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoconfigure: address a copy-paste typo
Vicente Olivert Riera [Tue, 29 Sep 2015 16:28:33 +0000 (17:28 +0100)]
configure: address a copy-paste typo

The correct instruction for mips32r1 is addi.

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
4 years agoMerge commit '26e8fa3b508eb047e85f4e923fc8e82a1aa656ba'
Hendrik Leppkes [Tue, 29 Sep 2015 13:44:28 +0000 (15:44 +0200)]
Merge commit '26e8fa3b508eb047e85f4e923fc8e82a1aa656ba'

* commit '26e8fa3b508eb047e85f4e923fc8e82a1aa656ba':
  tiny_psnr: Use the correct abs() version

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agoMerge commit 'c9943f00cfa2471d1b8a3a9ddc7a21049a71090e'
Hendrik Leppkes [Tue, 29 Sep 2015 13:44:14 +0000 (15:44 +0200)]
Merge commit 'c9943f00cfa2471d1b8a3a9ddc7a21049a71090e'

* commit 'c9943f00cfa2471d1b8a3a9ddc7a21049a71090e':
  vf_framepack: Use av_image_copy() where appropriate

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>