ffmpeg.git
9 months agoavformat/hlsenc: free variant streams after write all variant streams info
Steven Liu [Sat, 22 Dec 2018 15:43:47 +0000 (23:43 +0800)]
avformat/hlsenc: free variant streams after write all variant streams info

fix ticket: 7631

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
9 months agoavcodec/fft_template: improve performance of the ff_fft_init in fft_template
Steven Liu [Wed, 26 Dec 2018 08:09:49 +0000 (16:09 +0800)]
avcodec/fft_template: improve performance of the ff_fft_init in fft_template

Before patch:
init nbits = 17, get 10000 samples, average cost: 16175 us
After patch:
init nbits = 17, get 10000 samples, average cost: 14989 us

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
9 months agofate: add tests/fate/hlsenc.mak for hls FATE
Steven Liu [Mon, 24 Dec 2018 09:42:09 +0000 (17:42 +0800)]
fate: add tests/fate/hlsenc.mak for hls FATE

init add three test examples:
1. check no endlist at the end
2. check endlist at the end
3. check hls_list_size 0 full list

Tested-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
9 months agox86/af_afir: use three operand form forat some instructions
James Almer [Fri, 4 Jan 2019 02:36:19 +0000 (23:36 -0300)]
x86/af_afir: use three operand form forat some instructions

Fixes compilation with old yasm versions.

Signed-off-by: James Almer <jamrial@gmail.com>
9 months agolibavcodec: Remove dynamic relocs from aarch64/h264idct_neon.S
Manoj Gupta [Fri, 28 Dec 2018 23:12:53 +0000 (15:12 -0800)]
libavcodec: Remove dynamic relocs from aarch64/h264idct_neon.S

Some of the assembly functions e.g. ff_h264_idct_dc_add_neon
has code like:
        movrel          x14, X(ff_h264_idct_add_neon)

Linker cannot resolve them fully at link time and emits dynamic
relocations.
Use explicit labels instead so that no dynamic relocations are
needed at all.

This avoids lld complains about text relocations.

For background, see https://crbug.com/917919

Signed-off-by: Manoj Gupta <manojgupta@chromium.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavdevice/dshow: Fixed some minor memory leaks
Oliver Collyer [Thu, 3 Jan 2019 07:41:12 +0000 (07:41 +0000)]
avdevice/dshow: Fixed some minor memory leaks

Signed-off-by: James Almer <jamrial@gmail.com>
9 months agox86/af_afir: add ff_fcmul_add_avx()
James Almer [Thu, 3 Jan 2019 00:09:25 +0000 (21:09 -0300)]
x86/af_afir: add ff_fcmul_add_avx()

fcmul_add_c: 1228.8
fcmul_add_sse3: 334.3
fcmul_add_avx: 186.3

Tested on a Core i5 4460 @ 3.2GHz

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 months agocheckasm: add an af_afir test
James Almer [Wed, 2 Jan 2019 23:54:34 +0000 (20:54 -0300)]
checkasm: add an af_afir test

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 months agoavfilter/af_afir: split off fcmul_add into a DSP context
James Almer [Wed, 2 Jan 2019 23:54:18 +0000 (20:54 -0300)]
avfilter/af_afir: split off fcmul_add into a DSP context

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 months agox86/af_afir: fix processing the last element
James Almer [Wed, 2 Jan 2019 23:48:59 +0000 (20:48 -0300)]
x86/af_afir: fix processing the last element

ff_fcmul_add_sse3() is now identical to the C version.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 months agoffmpeg: allow disabling streams by type for inputs
Gyan Doshi [Sat, 29 Dec 2018 10:49:09 +0000 (16:19 +0530)]
ffmpeg: allow disabling streams by type for inputs

-vn/-an/-sn/-dn now works for input. Streams are still registered in
input_streams but they can't be automatically selected or mapped or
filtered.

9 months agoffmpeg: skip disabled streams
Gyan Doshi [Sat, 29 Dec 2018 10:47:05 +0000 (16:17 +0530)]
ffmpeg: skip disabled streams

Fully discarded streams can't be selected for output or mapped or filtered.
Previously, a few packets from such streams, probably buffered for
stream probing, would get smuggled into output files.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agomov: Remove duration-of-last-frame heuristic hack
Derek Buitenhuis [Mon, 24 Dec 2018 19:47:55 +0000 (14:47 -0500)]
mov: Remove duration-of-last-frame heuristic hack

This breaks totally valid files that get caught in its heuristic.

This, according to the commit message, is my own doing, having asked
Michael to implement this check and providing a sample that was
"wrong". I am now atoning for my sins, and removing this hack, having
seen the light (aka that this was silly to do in the first place).

Resotores correct behavior on valid files.

This reverts commit 8e5e84c2a2a21a979b48e80c5a8dd44754ab3f21.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
9 months agoavformat/anm: use ff_get_extradata()
Paul B Mahol [Wed, 2 Jan 2019 15:28:46 +0000 (16:28 +0100)]
avformat/anm: use ff_get_extradata()

9 months agoavformat/yop: use ff_get_extradata()
Paul B Mahol [Wed, 2 Jan 2019 15:25:26 +0000 (16:25 +0100)]
avformat/yop: use ff_get_extradata()

9 months agoavformat/acm: use ff_get_extradata()
Paul B Mahol [Wed, 2 Jan 2019 15:21:46 +0000 (16:21 +0100)]
avformat/acm: use ff_get_extradata()

9 months agoaformat/bfi: use ff_get_extradata()
Paul B Mahol [Wed, 2 Jan 2019 15:14:19 +0000 (16:14 +0100)]
aformat/bfi: use ff_get_extradata()

9 months agoavfilter/vf_detelecine: fix obvious frame memory leaks
Paul B Mahol [Wed, 2 Jan 2019 14:34:41 +0000 (15:34 +0100)]
avfilter/vf_detelecine: fix obvious frame memory leaks

9 months agoavcodec/bfi: Provide non NULL context to av_log()
Michael Niedermayer [Mon, 31 Dec 2018 20:32:37 +0000 (21:32 +0100)]
avcodec/bfi: Provide non NULL context to av_log()

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavcodec/bink: Provide non NULL context to av_log()
Michael Niedermayer [Mon, 31 Dec 2018 20:32:37 +0000 (21:32 +0100)]
avcodec/bink: Provide non NULL context to av_log()

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavcodec/mss2: Provide non NULL context to av_log()
Michael Niedermayer [Mon, 31 Dec 2018 20:32:37 +0000 (21:32 +0100)]
avcodec/mss2: Provide non NULL context to av_log()

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavcodec/imc: Provide non NULL context to av_log()
Michael Niedermayer [Mon, 31 Dec 2018 20:32:37 +0000 (21:32 +0100)]
avcodec/imc: Provide non NULL context to av_log()

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavcodec/aacdec_fixed: Provide context to av_log()
Michael Niedermayer [Mon, 31 Dec 2018 20:28:31 +0000 (21:28 +0100)]
avcodec/aacdec_fixed: Provide context to av_log()

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavcodec/acelp_pitch_delay: Minor simplification by using ff_exp10()
Michael Niedermayer [Mon, 31 Dec 2018 20:21:42 +0000 (21:21 +0100)]
avcodec/acelp_pitch_delay: Minor simplification by using ff_exp10()

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavfilter/af_biquads: minor simplification by using ff_exp10()
Michael Niedermayer [Mon, 31 Dec 2018 20:12:42 +0000 (21:12 +0100)]
avfilter/af_biquads: minor simplification by using ff_exp10()

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavfilter/af_crossfeed: Use ff_exp10()
Michael Niedermayer [Mon, 31 Dec 2018 20:08:06 +0000 (21:08 +0100)]
avfilter/af_crossfeed: Use ff_exp10()

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavfilter/ebur128: Simplify by using log10()
Michael Niedermayer [Mon, 31 Dec 2018 20:07:09 +0000 (21:07 +0100)]
avfilter/ebur128: Simplify by using log10()

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavfilter/vf_tonemap_opencl: Make static tables const
Michael Niedermayer [Mon, 31 Dec 2018 19:54:12 +0000 (20:54 +0100)]
avfilter/vf_tonemap_opencl: Make static tables const

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agodoc/indevs: fix upto typo
Michael Niedermayer [Mon, 31 Dec 2018 19:45:17 +0000 (20:45 +0100)]
doc/indevs: fix upto typo

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavcodec/eacmv: Return more specific error codes and forward error codes
Michael Niedermayer [Mon, 31 Dec 2018 17:59:49 +0000 (18:59 +0100)]
avcodec/eacmv: Return more specific error codes and forward error codes

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavcodec/eatqi: Return more specific error code from tqi_decode_mb()
Michael Niedermayer [Mon, 31 Dec 2018 17:57:33 +0000 (18:57 +0100)]
avcodec/eatqi: Return more specific error code from tqi_decode_mb()

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavcodec/dcaenc: Return specific error code from subband_bufer_alloc()
Michael Niedermayer [Mon, 31 Dec 2018 17:55:09 +0000 (18:55 +0100)]
avcodec/dcaenc: Return specific error code from subband_bufer_alloc()

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavcodec/dct: Propagate error code from ff_rdft_init()
Michael Niedermayer [Mon, 31 Dec 2018 17:51:20 +0000 (18:51 +0100)]
avcodec/dct: Propagate error code from ff_rdft_init()

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavcodec/binkaudio: Use assert instead of return for use of compile time disabled...
Michael Niedermayer [Mon, 31 Dec 2018 17:49:27 +0000 (18:49 +0100)]
avcodec/binkaudio: Use assert instead of return for use of compile time disabled codecs

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavcodec/adpcm: use assert for codec id instead or error return
Michael Niedermayer [Mon, 31 Dec 2018 17:45:25 +0000 (18:45 +0100)]
avcodec/adpcm: use assert for codec id instead or error return

A unsupported codec_id is a internal error and should not happen

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavcodec/alac: Avoid unspecific error codes and forward error codes
Michael Niedermayer [Mon, 31 Dec 2018 17:42:06 +0000 (18:42 +0100)]
avcodec/alac: Avoid unspecific error codes and forward error codes

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agolibavcodec/ac3dec.c: Avoid unspecific -1 error code
Michael Niedermayer [Mon, 31 Dec 2018 17:40:34 +0000 (18:40 +0100)]
libavcodec/ac3dec.c: Avoid unspecific -1 error code

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavcodec/ac3enc: Use specific error code in validate_float_option()
Michael Niedermayer [Mon, 31 Dec 2018 17:39:55 +0000 (18:39 +0100)]
avcodec/ac3enc: Use specific error code in validate_float_option()

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavcodec/assenc: Return more specific error codes for ass_encode_frame()
Michael Niedermayer [Mon, 31 Dec 2018 17:34:14 +0000 (18:34 +0100)]
avcodec/assenc: Return more specific error codes for ass_encode_frame()

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavcodec/asvenc: Replace bitstream space check by assert
Michael Niedermayer [Mon, 31 Dec 2018 17:29:34 +0000 (18:29 +0100)]
avcodec/asvenc: Replace bitstream space check by assert

This should never be untrue, if it is, thats a bug

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavcodec/avpacket: Avoid unspecific return -1 for av_grow_packet()
Michael Niedermayer [Mon, 31 Dec 2018 17:25:18 +0000 (18:25 +0100)]
avcodec/avpacket: Avoid unspecific return -1 for av_grow_packet()

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavcodec/bitstream: Return specific error codes when building vlc tables
Michael Niedermayer [Mon, 31 Dec 2018 17:21:41 +0000 (18:21 +0100)]
avcodec/bitstream: Return specific error codes when building vlc tables

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavcodec/aacps: Return more specific error codes.
Michael Niedermayer [Mon, 31 Dec 2018 17:16:52 +0000 (18:16 +0100)]
avcodec/aacps: Return more specific error codes.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoswscale/yuv2rgb: Return a more specific error code from ff_yuv2rgb_c_init_tables()
Michael Niedermayer [Mon, 31 Dec 2018 17:14:46 +0000 (18:14 +0100)]
swscale/yuv2rgb: Return a more specific error code from ff_yuv2rgb_c_init_tables()

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavcodec/4xm: Fix returned error codes
Michael Niedermayer [Mon, 31 Dec 2018 17:11:44 +0000 (18:11 +0100)]
avcodec/4xm: Fix returned error codes

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoconfigure: bump year
James Almer [Tue, 1 Jan 2019 18:26:31 +0000 (15:26 -0300)]
configure: bump year

Happy new year!

9 months agoavfilter/af_adelay: allow setting delays in seconds
Paul B Mahol [Tue, 1 Jan 2019 12:33:16 +0000 (13:33 +0100)]
avfilter/af_adelay: allow setting delays in seconds

9 months agoafilter/af_sofalizer: check explicitly other type
Paul B Mahol [Tue, 1 Jan 2019 11:29:19 +0000 (12:29 +0100)]
afilter/af_sofalizer: check explicitly other type

9 months agodoc/filters: improve afir description a little
Paul B Mahol [Tue, 1 Jan 2019 10:56:29 +0000 (11:56 +0100)]
doc/filters: improve afir description a little

9 months agoavfilter/af_sofalizer: stop allocating never used buffers
Paul B Mahol [Mon, 31 Dec 2018 18:40:18 +0000 (19:40 +0100)]
avfilter/af_sofalizer: stop allocating never used buffers

9 months agoavfilter/af_afir: fix overhead for small partitions
Paul B Mahol [Mon, 31 Dec 2018 17:04:59 +0000 (18:04 +0100)]
avfilter/af_afir: fix overhead for small partitions

9 months agoavcodec/scpr: Avoid per pixel y checks in decode_run_i
Michael Niedermayer [Thu, 27 Dec 2018 09:36:38 +0000 (10:36 +0100)]
avcodec/scpr: Avoid per pixel y checks in decode_run_i

about 1% faster

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavcodec/scpr: Factor some indexes out in decode_run_i()
Michael Niedermayer [Thu, 27 Dec 2018 01:21:00 +0000 (02:21 +0100)]
avcodec/scpr: Factor some indexes out in decode_run_i()

This improves the speed of decode_run_i()

After:  clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SCPR_fuzzer-5656821117747200 in 13516 ms
Before: clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SCPR_fuzzer-5656821117747200 in 14018 ms

Improves: 11270/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SCPR_fuzzer-5656821117747200

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavcodec/scpr: Use local variables in decode_run_i()
Michael Niedermayer [Thu, 27 Dec 2018 01:21:00 +0000 (02:21 +0100)]
avcodec/scpr: Use local variables in decode_run_i()

This improves the speed of decode_run_i()

Before: clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SCPR_fuzzer-5656821117747200 in 17420 ms
After:  clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SCPR_fuzzer-5656821117747200 in 14018 ms

Improves: 11270/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SCPR_fuzzer-5656821117747200

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavcodec/rangecoder: Add and test ff_rac_check_termination()
Michael Niedermayer [Sun, 23 Dec 2018 13:17:11 +0000 (14:17 +0100)]
avcodec/rangecoder: Add and test ff_rac_check_termination()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavcodec/rangecoder: Document ff_rac_terminate()
Michael Niedermayer [Wed, 19 Dec 2018 01:40:20 +0000 (02:40 +0100)]
avcodec/rangecoder: Document ff_rac_terminate()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavcodec/tests/rangecoder: Test coder more completely
Michael Niedermayer [Wed, 19 Dec 2018 01:40:19 +0000 (02:40 +0100)]
avcodec/tests/rangecoder: Test coder more completely

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavcodec/rangecoder: factorize termination version code
Michael Niedermayer [Wed, 19 Dec 2018 01:40:18 +0000 (02:40 +0100)]
avcodec/rangecoder: factorize termination version code

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavcodec: add HYMT decoder
Paul B Mahol [Wed, 22 Aug 2018 20:11:42 +0000 (22:11 +0200)]
avcodec: add HYMT decoder

9 months agoavformat/au: do not use invalid block_align for small bits per sample
Paul B Mahol [Sun, 23 Dec 2018 15:27:45 +0000 (16:27 +0100)]
avformat/au: do not use invalid block_align for small bits per sample

Fixes #5481.

9 months agoavcodec/qsvenc: Fix Unkown typo
Michael Niedermayer [Fri, 28 Dec 2018 21:22:54 +0000 (22:22 +0100)]
avcodec/qsvenc: Fix Unkown typo

Reviewed-by: Lou Logan <lou@lrcd.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavformat/libopenmpt: Fix successfull typo
Michael Niedermayer [Fri, 28 Dec 2018 21:22:52 +0000 (22:22 +0100)]
avformat/libopenmpt: Fix successfull typo

Reviewed-by: Lou Logan <lou@lrcd.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavcodec/v4l2_m2m: fix cant typo
Michael Niedermayer [Fri, 28 Dec 2018 21:22:53 +0000 (22:22 +0100)]
avcodec/v4l2_m2m: fix cant typo

Reviewed-by: Lou Logan <lou@lrcd.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavcodec/mjpegbdec: Propagate error codes
Michael Niedermayer [Fri, 28 Dec 2018 21:22:57 +0000 (22:22 +0100)]
avcodec/mjpegbdec: Propagate error codes

Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavcodec/mjpegbdec: Fix some misplaced {} and spaces
Michael Niedermayer [Fri, 28 Dec 2018 21:22:56 +0000 (22:22 +0100)]
avcodec/mjpegbdec: Fix some misplaced {} and spaces

Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoavfilter/vf_chromashift: remove invalid offset
Paul B Mahol [Sun, 30 Dec 2018 21:31:52 +0000 (22:31 +0100)]
avfilter/vf_chromashift: remove invalid offset

9 months agoavfilter/af_afir: do not over allocate fft buffer
Paul B Mahol [Sun, 30 Dec 2018 21:08:11 +0000 (22:08 +0100)]
avfilter/af_afir: do not over allocate fft buffer

9 months agoavformat/concatdec: always allow seeking to start
Marton Balint [Thu, 13 Dec 2018 21:13:09 +0000 (22:13 +0100)]
avformat/concatdec: always allow seeking to start

Signed-off-by: Marton Balint <cus@passwd.hu>
9 months agoavfilter/af_asetnsamples: fix last frame props
Marton Balint [Tue, 25 Dec 2018 21:26:18 +0000 (22:26 +0100)]
avfilter/af_asetnsamples: fix last frame props

Frame properties were not copied, so e.g. PTS was not set for the last frame.

Regression since ef3babb2c70f564dc1634b3f29c6e35a2b2dc239.

Signed-off-by: Marton Balint <cus@passwd.hu>
9 months agolavfi/vaapi: Add constant VAAPI_VPP_BACKGROUND_BLACK
Zachary Zhou [Tue, 25 Dec 2018 06:03:30 +0000 (14:03 +0800)]
lavfi/vaapi: Add constant VAAPI_VPP_BACKGROUND_BLACK

Signed-off-by: Zachary Zhou <zachary.zhou@intel.com>
Signed-off-by: Mark Thompson <sw@jkqxz.net>
9 months agoavfilter/af_afir: stop using as much threads as stream have it
Paul B Mahol [Sun, 30 Dec 2018 16:40:31 +0000 (17:40 +0100)]
avfilter/af_afir: stop using as much threads as stream have it

9 months agoavfilter/af_afir: optimize code a little more
Paul B Mahol [Sun, 30 Dec 2018 16:23:53 +0000 (17:23 +0100)]
avfilter/af_afir: optimize code a little more

Avoid memset.

9 months agoavcodec/prores_ks: Fix luma quantization if q >= MAX_STORED_Q
Alex Mogurenko [Fri, 28 Dec 2018 20:30:08 +0000 (22:30 +0200)]
avcodec/prores_ks: Fix luma quantization if q >= MAX_STORED_Q

The problem occurs in slice quant estimation and slice encoding:

If the slice quant is larger than  MAX_STORED_Q we don't use pre-calculated
quant matrices, but generate a new one, but both qmat and qmat_chroma both
point to the same table, so the luma table ends up having chroma table
values.

Add custom_chroma_q the same way as custom_q.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
9 months agoavfilter/af_afir: implement non-uniform partitioned convolution
Paul B Mahol [Sat, 29 Dec 2018 10:40:13 +0000 (11:40 +0100)]
avfilter/af_afir: implement non-uniform partitioned convolution

Using multiple frequency delay lines.

9 months agoavfilter/af_afir: properly split IR into multiple segments
Paul B Mahol [Sat, 29 Dec 2018 09:57:58 +0000 (10:57 +0100)]
avfilter/af_afir: properly split IR into multiple segments

9 months agoavfilter/af_afir: make part_index values per channel
Paul B Mahol [Sat, 29 Dec 2018 09:46:25 +0000 (10:46 +0100)]
avfilter/af_afir: make part_index values per channel

9 months agoavfilter/af_afir: make number of segments extendable
Paul B Mahol [Sat, 29 Dec 2018 09:39:19 +0000 (10:39 +0100)]
avfilter/af_afir: make number of segments extendable

9 months agoavfilter/af_afir: use AVFrame for coeff too
Paul B Mahol [Sat, 29 Dec 2018 09:17:39 +0000 (10:17 +0100)]
avfilter/af_afir: use AVFrame for coeff too

9 months agoavfilter/af_afir: use segment pointer
Paul B Mahol [Fri, 28 Dec 2018 20:04:50 +0000 (21:04 +0100)]
avfilter/af_afir: use segment pointer

9 months agoavfilter/af_afir: introduce uninit_segment() and use it
Paul B Mahol [Fri, 28 Dec 2018 17:45:55 +0000 (18:45 +0100)]
avfilter/af_afir: introduce uninit_segment() and use it

9 months agoavfilter/af_afir: fix minp/maxp range and change default value for maxp
Paul B Mahol [Fri, 28 Dec 2018 17:33:14 +0000 (18:33 +0100)]
avfilter/af_afir: fix minp/maxp range and change default value for maxp

9 months agoavfilter/af_afir: introduce init_segment() and use it
Paul B Mahol [Fri, 28 Dec 2018 17:31:36 +0000 (18:31 +0100)]
avfilter/af_afir: introduce init_segment() and use it

9 months agoavfilter/af_afir: move allocation stuff where it belongs
Paul B Mahol [Fri, 28 Dec 2018 17:07:13 +0000 (18:07 +0100)]
avfilter/af_afir: move allocation stuff where it belongs

9 months agoavfilter/af_afir: introduce AudioFIRSegment structure and use it
Paul B Mahol [Fri, 28 Dec 2018 16:57:24 +0000 (17:57 +0100)]
avfilter/af_afir: introduce AudioFIRSegment structure and use it

9 months agotools: add target_dec_fate.sh
Michael Niedermayer [Sun, 9 Sep 2018 23:45:04 +0000 (01:45 +0200)]
tools: add target_dec_fate.sh

Script to download and test ossfuzz testcases
This also includes a list of such testcases.
I intend to subsequently fill this list with the cases we have fixed in the past

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoMakefile: Allow "make clean" to delete compat/atomics/pthread/stdatomic.o
Carl Eugen Hoyos [Fri, 28 Dec 2018 13:04:10 +0000 (14:04 +0100)]
Makefile: Allow "make clean" to delete compat/atomics/pthread/stdatomic.o

Reported-by: Eric Thomas
9 months agoavformat/wvdec: detect and error out on WavPack DSD files
David Bryant [Wed, 21 Nov 2018 05:00:47 +0000 (21:00 -0800)]
avformat/wvdec: detect and error out on WavPack DSD files

Not currently supported.

9 months agoavcodec/wavpack: fix decoding of files with many channels
Paul B Mahol [Fri, 28 Dec 2018 11:16:39 +0000 (12:16 +0100)]
avcodec/wavpack: fix decoding of files with many channels

Fixes decoding of Run_The_Race_-_3rd_Order_Ambisonic_SN3D.wv

9 months agoconfigure: Make sure libpostproc can be found if -rpath-link doesn't work.
Carl Eugen Hoyos [Fri, 21 Dec 2018 23:04:43 +0000 (00:04 +0100)]
configure: Make sure libpostproc can be found if -rpath-link doesn't work.

Solaris ld takes "-rpath-link=libpostproc" as indication to search in "-link=libpostproc".

9 months agolavf/vividas: Support demuxing on big-endian hardware.
Carl Eugen Hoyos [Sun, 23 Dec 2018 00:34:55 +0000 (01:34 +0100)]
lavf/vividas: Support demuxing on big-endian hardware.

9 months agolavf/vividas: Do not increase extradata_size after allocation.
Carl Eugen Hoyos [Sat, 22 Dec 2018 23:34:57 +0000 (00:34 +0100)]
lavf/vividas: Do not increase extradata_size after allocation.

Avoids a crash in avcodec_parameters_from_context().

9 months agoavcodec/mips: [loongson] optimize theora decoding in vp3dsp.
gxw [Thu, 27 Dec 2018 06:16:22 +0000 (14:16 +0800)]
avcodec/mips: [loongson] optimize theora decoding in vp3dsp.

Optimize theora decoding with msa in functions:
1. ff_vp3_idct_add_msa
2. ff_vp3_idct_put_msa
3. ff_vp3_idct_dc_add_msa
4. ff_vp3_v_loop_filter_msa
5. ff_vp3_h_loop_filter_msa
6. ff_put_no_rnd_pixels_l2_msa

Theora decoding speed improved about 36%(from 22fps to 30fps, Tested on loongson 2K1000).

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months agoafilter/af_afir: remove invalid delay
Paul B Mahol [Thu, 27 Dec 2018 17:00:20 +0000 (18:00 +0100)]
afilter/af_afir: remove invalid delay

9 months agoavfilter/af_afir: remove not needed nb_samples from filter context
Paul B Mahol [Thu, 27 Dec 2018 13:11:12 +0000 (14:11 +0100)]
avfilter/af_afir: remove not needed nb_samples from filter context

9 months agoavfilter/af_afir: remove not needed operations
Paul B Mahol [Thu, 27 Dec 2018 11:55:07 +0000 (12:55 +0100)]
avfilter/af_afir: remove not needed operations

9 months agoavfilter/af_sofalizer: use av_log2()
Paul B Mahol [Thu, 27 Dec 2018 11:31:01 +0000 (12:31 +0100)]
avfilter/af_sofalizer: use av_log2()

9 months agoavfilter/af_headphone: use av_log2()
Paul B Mahol [Thu, 27 Dec 2018 11:30:04 +0000 (12:30 +0100)]
avfilter/af_headphone: use av_log2()

9 months agoavfilter/af_afir: remove dead store variable
Paul B Mahol [Wed, 26 Dec 2018 21:30:10 +0000 (22:30 +0100)]
avfilter/af_afir: remove dead store variable

9 months agoavfilter/af_afir: remove unused variable
Paul B Mahol [Wed, 26 Dec 2018 18:00:00 +0000 (19:00 +0100)]
avfilter/af_afir: remove unused variable

9 months agoswscale/output: Altivec-optimize float yuv2plane1
Lauri Kasanen [Sun, 16 Dec 2018 09:06:53 +0000 (11:06 +0200)]
swscale/output: Altivec-optimize float yuv2plane1

This function wouldn't benefit from VSX instructions, so I put it
under altivec.

./ffmpeg_g -f rawvideo -pix_fmt rgb24 -s hd1080 -i /dev/zero -pix_fmt grayf32le \
-f null -vframes 100 -v error -nostats -

3743 UNITS in planar1,   65495 runs,     41 skips

-cpuflags 0

23511 UNITS in planar1,   65530 runs,      6 skips

grayf32be

4647 UNITS in planar1,   65449 runs,     87 skips

-cpuflags 0

28608 UNITS in planar1,   65530 runs,      6 skips

The native speedup is 6.28133, and the bswapping one 6.15623.
Fate passes, each format tested with an image to video conversion.

Signed-off-by: Lauri Kasanen <cand@gmx.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>