]> git.sesse.net Git - ffmpeg/log
ffmpeg
6 years agoerror_resilience: remove avpriv_atomic usage
Rostislav Pehlivanov [Fri, 24 Nov 2017 23:34:16 +0000 (23:34 +0000)]
error_resilience: remove avpriv_atomic usage

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
6 years agolibavcodec/utils.c: simplify avcodec locking with atomics
Rostislav Pehlivanov [Sat, 25 Nov 2017 16:55:44 +0000 (16:55 +0000)]
libavcodec/utils.c: simplify avcodec locking with atomics

Also makes it more robust than using volatiles.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
6 years agolavc/utils.c: use C11 atomics for entangled thread handling
Rostislav Pehlivanov [Fri, 24 Nov 2017 23:38:44 +0000 (23:38 +0000)]
lavc/utils.c: use C11 atomics for entangled thread handling

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
6 years agoavformat/mov_esds: check return value of ff_mp4_read_dec_config_descr
James Almer [Fri, 24 Nov 2017 20:55:19 +0000 (17:55 -0300)]
avformat/mov_esds: check return value of ff_mp4_read_dec_config_descr

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
6 years agoavformat/isom: return proper error values in ff_mp4_read_dec_config_descr
James Almer [Fri, 24 Nov 2017 20:55:05 +0000 (17:55 -0300)]
avformat/isom: return proper error values in ff_mp4_read_dec_config_descr

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
6 years agofate/hapAlphaOnly : add test for hap alpha only decoding
Martin Vignali [Sat, 25 Nov 2017 18:47:06 +0000 (19:47 +0100)]
fate/hapAlphaOnly : add test for hap alpha only decoding

6 years agoavcodec/hapdec : use gray8 for HapAlphaOnly decoding instead of RGB0
Martin Vignali [Sat, 25 Nov 2017 18:46:48 +0000 (19:46 +0100)]
avcodec/hapdec : use gray8 for HapAlphaOnly decoding instead of RGB0

6 years agoavcodec/texturedsp : add rgtc1u gray decoding
Martin Vignali [Sat, 25 Nov 2017 18:41:50 +0000 (19:41 +0100)]
avcodec/texturedsp : add rgtc1u gray decoding

decode rgtc1 block in gray8 picture

6 years agohwcontext_d3d11va: properly reset values after release/close
Jan Ekström [Fri, 24 Nov 2017 00:44:44 +0000 (02:44 +0200)]
hwcontext_d3d11va: properly reset values after release/close

Makes the uninit function re-entrable, which can be a common case
when an API user first tries to initialize its context, fails, and
then finally unrefs the AVHWDevice.

Fixes a crash reported by sm2345 on IRC.

6 years agoavcodec/fft: fix INTERL macro on 3dnow
Mikulas Patocka [Thu, 23 Nov 2017 19:12:55 +0000 (20:12 +0100)]
avcodec/fft: fix INTERL macro on 3dnow

The commit b7c16a3f2c4921f613319938b8ee0e3d6fa83e8d ("x86: fft: Port to
cpuflags") breaks the opus decoder in ffmpeg when compiling for 3dnow. The
output is audible, but there's a lot of noise.

The reason for the breakage is that the commit unintentionally changed the
INTERL macro so that it is empty when compiling for 3dnow. This patch
fixes it.

Signed-off-by: Mikulas Patocka <mikulas@twibright.com>
Signed-off-by: James Almer <jamrial@gmail.com>
6 years agohwcontext_opencl: Reset internal command queue on device_uninit
Mark Thompson [Sat, 25 Nov 2017 15:34:43 +0000 (15:34 +0000)]
hwcontext_opencl: Reset internal command queue on device_uninit

device_uninit can be called twice if device_init fails.

6 years agohwcontext_d3d11: Log adapter details on device creation
Mark Thompson [Tue, 14 Nov 2017 13:02:26 +0000 (13:02 +0000)]
hwcontext_d3d11: Log adapter details on device creation

This is helpful to know what device has actually been used.

6 years agoconfigure: remove superfluous cuvid and nvdec checks
James Almer [Sat, 25 Nov 2017 01:48:24 +0000 (22:48 -0300)]
configure: remove superfluous cuvid and nvdec checks

Both are autodetected, and their dependency on cuda is checked
elsewhere.

Fixes ticket #6849.

Reviewed-by: Philip Langdale <philipl@overt.org>
Signed-off-by: James Almer <jamrial@gmail.com>
6 years agodoc/APIchanges: Fix lavu versions for OpenCL changes
Mark Thompson [Sat, 25 Nov 2017 14:51:55 +0000 (14:51 +0000)]
doc/APIchanges: Fix lavu versions for OpenCL changes

Also fix a typo and fill hashes and dates.

6 years agolavu/pixfmt: Remove gap in the middle of enum AVPixelFormat
Mark Thompson [Fri, 24 Nov 2017 12:36:09 +0000 (12:36 +0000)]
lavu/pixfmt: Remove gap in the middle of enum AVPixelFormat

This was added for compatibility with libav, by leaving a space for
formats added in libav to be merged.  Since that feature has been
removed, we don't need a gap here.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
6 years agoMerge commit '136e7cf64ce9e78de7158d6720539d51cb96b743'
Mark Thompson [Sat, 25 Nov 2017 14:38:03 +0000 (14:38 +0000)]
Merge commit '136e7cf64ce9e78de7158d6720539d51cb96b743'

* commit '136e7cf64ce9e78de7158d6720539d51cb96b743':
  qsv/hevcdec: Load hw plugin by default on non-windows os

Merged-by: Mark Thompson <sw@jkqxz.net>
6 years agoavfilter: add normalize filter
Richard Ling [Tue, 21 Nov 2017 10:32:06 +0000 (21:32 +1100)]
avfilter: add normalize filter

6 years agoffmpeg libopusdec: fix missing include file in libopusdec.c
Mikulas Patocka [Thu, 23 Nov 2017 19:22:56 +0000 (20:22 +0100)]
ffmpeg libopusdec: fix missing include file in libopusdec.c

This patch fixes the following error when compiling mplayer with libopus.

libavcodec/libopusdec.c: In function 'libopus_decode_init':
libavcodec/libopusdec.c:130:27: error: implicit declaration of function 'ff_exp10'; did you mean 'ff_exp2fi'? [-Werror=implicit-function-declaration]
         double gain_lin = ff_exp10(gain_db / (20.0 * 256));
                           ^~~~~~~~
                           ff_exp2fi

Signed-off-by: Mikulas Patocka <mikulas@twibright.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years agolavf/mov: fix crash in mov_read_sidx
John Stebbins [Fri, 24 Nov 2017 16:18:16 +0000 (08:18 -0800)]
lavf/mov: fix crash in mov_read_sidx

Use correct index into streams

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years agoavformat/dashenc: Associate mpd extension with dash muxer
Karthick J [Wed, 22 Nov 2017 08:20:03 +0000 (13:50 +0530)]
avformat/dashenc: Associate mpd extension with dash muxer

Reviewed-by: 刘歧 <lq@chinaffmpeg.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years agoavcodec/sbrdsp_fixed: Fix integer overflow
Michael Niedermayer [Wed, 22 Nov 2017 19:18:40 +0000 (20:18 +0100)]
avcodec/sbrdsp_fixed: Fix integer overflow

Fixes: signed integer overflow: 2147483598 + 64 cannot be represented in type 'int'
Fixes: 4337/clusterfuzz-testcase-minimized-6192658616680448
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years agoavformat/utils: fix mixed declarations and code
James Almer [Fri, 24 Nov 2017 20:46:16 +0000 (17:46 -0300)]
avformat/utils: fix mixed declarations and code

Signed-off-by: James Almer <jamrial@gmail.com>
6 years agoavcodec/nvdec: Round up odd width/height values
Philip Langdale [Fri, 24 Nov 2017 18:05:49 +0000 (10:05 -0800)]
avcodec/nvdec: Round up odd width/height values

nvdec will not produce odd width/height output, and while this is
basically never an issue with most codecs, due to internal alignment
requirements, you can get odd sized jpegs.

If an odd-sized jpeg is encountered, nvdec will actually round down
internally and produce output that is slightly smaller. This isn't
the end of the world, as long as you know the output size doesn't
match the original image resolution.

However, with an hwaccel, we don't know. The decoder controls
the reported output size and the hwaccel cannot change it. I was
able to trigger an error in mpv where it tries to copy the output
surface as part of rendering and triggers a cuda error because
cuda knows the output frame is smaller than expected.

To fix this, we can round up the configured width/height passed
to nvdec so that the frames are always at least as large as the
decoder's reported size, and data can be copied out safely.

In this particular jpeg case, you end up with a blank (green) line
at the bottom due to nvdec refusing to decode the last line, but
the behaviour matches cuviddec, so it's as good as you're going to
get.

6 years agoavformat/ttaenc: add tta_init()
James Almer [Mon, 20 Nov 2017 20:43:23 +0000 (17:43 -0300)]
avformat/ttaenc: add tta_init()

Signed-off-by: James Almer <jamrial@gmail.com>
6 years agoavformat/ttaenc: buffer packets directly
James Almer [Mon, 20 Nov 2017 19:16:11 +0000 (16:16 -0300)]
avformat/ttaenc: buffer packets directly

This is a bit more robust in case of OOM.

Signed-off-by: James Almer <jamrial@gmail.com>
6 years agoavcodec/vorbis: 1 << 31 > int32_t::max(), so use 1u << 31 instead.
Dale Curtis [Wed, 22 Nov 2017 18:58:39 +0000 (10:58 -0800)]
avcodec/vorbis: 1 << 31 > int32_t::max(), so use 1u << 31 instead.

Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years agoavformat/utils: Prevent undefined shift with wrap_bits > 64.
Dale Curtis [Fri, 17 Nov 2017 21:35:56 +0000 (13:35 -0800)]
avformat/utils: Prevent undefined shift with wrap_bits > 64.

2LL << (wrap_bits=64 - 1) does not fit in int64_t; change the
code to use a uint64_t (2ULL) and add an av_assert2() to
ensure wrap_bits <= 64.

Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years agoavfilter/af_amix: make use of av_asprintf()
Paul B Mahol [Fri, 24 Nov 2017 16:09:48 +0000 (17:09 +0100)]
avfilter/af_amix: make use of av_asprintf()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agoavfilter: add mix filter
Paul B Mahol [Mon, 20 Nov 2017 18:58:44 +0000 (19:58 +0100)]
avfilter: add mix filter

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agoavfilter/af_ladspa: remove duplicate code lines
Paul B Mahol [Fri, 24 Nov 2017 12:36:26 +0000 (13:36 +0100)]
avfilter/af_ladspa: remove duplicate code lines

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agoavcodec/j2kenc: Only allocate cblk.data once
Michael Niedermayer [Fri, 24 Nov 2017 02:49:55 +0000 (03:49 +0100)]
avcodec/j2kenc: Only allocate cblk.data once

Fixes: memleak
Found-by: <jamrial>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years agoavformat/hlsenc: Added option to add EXT-X-INDEPENDENT-SEGMENTS tag
Karthick J [Thu, 23 Nov 2017 22:57:36 +0000 (06:57 +0800)]
avformat/hlsenc: Added option to add EXT-X-INDEPENDENT-SEGMENTS tag

6 years agoavformat/hlsenc: Refactor an inconsistent variable name
Karthick J [Thu, 23 Nov 2017 22:42:35 +0000 (06:42 +0800)]
avformat/hlsenc: Refactor an inconsistent variable name

6 years agoavformat/hlsenc: Minor fix in setting http options for master playlist
Karthick J [Thu, 23 Nov 2017 22:41:25 +0000 (06:41 +0800)]
avformat/hlsenc: Minor fix in setting http options for master playlist

6 years agoavfilter/Makefile: skip building opencl.h when opencl is disabled
James Almer [Thu, 23 Nov 2017 22:11:17 +0000 (19:11 -0300)]
avfilter/Makefile: skip building opencl.h when opencl is disabled

Fixes make checkheaders.

Signed-off-by: James Almer <jamrial@gmail.com>
6 years agodoc/filters: mention (a)loop defaults
Lou Logan [Thu, 23 Nov 2017 20:54:26 +0000 (11:54 -0900)]
doc/filters: mention (a)loop defaults

Signed-off-by: Lou Logan <lou@lrcd.com>
6 years agodoc/filters.texi: explain infinite looping
Werner Robitza [Thu, 23 Nov 2017 12:16:53 +0000 (13:16 +0100)]
doc/filters.texi: explain infinite looping

Explain how to achieve infinite looping with the loop / aloop filters.

Signed-off-by: Werner Robitza <werner.robitza@gmail.com>
6 years agoavcodec/x86/exrdsp : use ymm constant for pb_80
Martin Vignali [Tue, 21 Nov 2017 21:02:07 +0000 (22:02 +0100)]
avcodec/x86/exrdsp : use ymm constant for pb_80

speed seems to be similar, but simplify code

6 years agoRevert "udp: fix compilation when HAVE_PTHREAD_CANCEL isnt defined"
Derek Buitenhuis [Wed, 22 Nov 2017 15:28:40 +0000 (15:28 +0000)]
Revert "udp: fix compilation when HAVE_PTHREAD_CANCEL isnt defined"

This was an mplayer-specific hack.

This reverts commit a4f94f24b4f153c30bbcaa700bedfb2b3a581e5e.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
6 years agoqsv/hevcdec: Load hw plugin by default on non-windows os
Li, Zhong [Fri, 10 Nov 2017 08:03:42 +0000 (03:03 -0500)]
qsv/hevcdec: Load hw plugin by default on non-windows os

Software plugin is not available on Linux, Only works on Windows.
Similar changes have been applied to qsv hevc encoder by
b05128f3c953bd66483e697d60a2e7e45ee9cfa0.

Signed-off-by: Zhong Li <zhong.li@intel.com>
Signed-off-by: Maxym Dmytrychenko <maxim.d33@gmail.com>
6 years agolavf/mov: Read aspect ratio from AVID jpeg2000 mov files.
Carl Eugen Hoyos [Thu, 23 Nov 2017 01:57:24 +0000 (02:57 +0100)]
lavf/mov: Read aspect ratio from AVID jpeg2000 mov files.

6 years agoopus_pvq: fix crashing on analysis of mono
Rostislav Pehlivanov [Thu, 23 Nov 2017 00:58:36 +0000 (00:58 +0000)]
opus_pvq: fix crashing on analysis of mono

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
6 years agotools/cl2c: Add a copyright header
Mark Thompson [Wed, 22 Nov 2017 23:55:03 +0000 (23:55 +0000)]
tools/cl2c: Add a copyright header

6 years agolavu,lavfi,ffmpeg: Remove experimental OpenCL API
Mark Thompson [Tue, 14 Nov 2017 19:47:30 +0000 (19:47 +0000)]
lavu,lavfi,ffmpeg: Remove experimental OpenCL API

This was added in early 2013 and abandoned several months later; as far as
I can tell, there are no external users.  Future OpenCL use will be via
hwcontext, which requires neither special OpenCL-only API nor global state
in libavutil.

All internal users are also deleted - this is just the unsharp filter
(replaced by unsharp_opencl, which is more flexible) and the deshake filter
(no replacement).

6 years agohwcontext: Perform usual uninitialisation on derived frames contexts
Mark Thompson [Mon, 26 Jun 2017 19:28:07 +0000 (20:28 +0100)]
hwcontext: Perform usual uninitialisation on derived frames contexts

6 years agovf_hwmap: Pass mapping mode when deriving frames context on an existing device
Mark Thompson [Sun, 25 Jun 2017 21:13:03 +0000 (22:13 +0100)]
vf_hwmap: Pass mapping mode when deriving frames context on an existing device

To match creation on a newly-derived device.  (This was missed earlier
because the mode is only used in some cases.)

6 years agolavfi: Add OpenCL unsharp mask filter
Mark Thompson [Tue, 14 Nov 2017 19:47:27 +0000 (19:47 +0000)]
lavfi: Add OpenCL unsharp mask filter

Intended to replace existing opencl mode of the unsharp filter.
Supports many more pixel formats and works without immediate upload
and download of frame data.  The options are compatible with the
existing filter.

6 years agolavfi: Add OpenCL overlay filter
Mark Thompson [Sun, 10 Sep 2017 20:53:36 +0000 (21:53 +0100)]
lavfi: Add OpenCL overlay filter

Input and output formats must be the same, the overlay format must be
the same as the input except possibly with an additional alpha component.

6 years agolavfi: Add infrastructure for building OpenCL source into libavfilter
Mark Thompson [Sun, 10 Sep 2017 20:53:35 +0000 (21:53 +0100)]
lavfi: Add infrastructure for building OpenCL source into libavfilter

6 years agolavfi: Add some common code for OpenCL filtering
Mark Thompson [Tue, 27 Jun 2017 21:50:49 +0000 (22:50 +0100)]
lavfi: Add some common code for OpenCL filtering

6 years agohwcontext_opencl: DRM to OpenCL mapping for ARM
Mark Thompson [Sun, 10 Sep 2017 12:37:20 +0000 (13:37 +0100)]
hwcontext_opencl: DRM to OpenCL mapping for ARM

Using cl_arm_import_memory.  Unfortunately, despite this not being a
standard extension, the function clImportMemoryARM() is not accessible
via clGetExtensionFunctionAddressForPlatform().  This means that it has
to be linked directly to the ARM OpenCL binary, so making a portable
binary is not possible as it is with all other mapping extensions.

6 years agohwcontext_opencl: D3D11 to OpenCL mapping
Mark Thompson [Sun, 25 Jun 2017 21:34:40 +0000 (22:34 +0100)]
hwcontext_opencl: D3D11 to OpenCL mapping

Using cl_khr_d3d11_sharing and cl_intel_d3d11_nv12_media_sharing.

6 years agohwcontext_opencl: DXVA2 to OpenCL mapping
Mark Thompson [Sun, 5 Mar 2017 16:21:41 +0000 (16:21 +0000)]
hwcontext_opencl: DXVA2 to OpenCL mapping

Using cl_khr_dx9_media_sharing.

6 years agohwcontext_opencl: QSV to OpenCL mapping for Intel Media SDK
Mark Thompson [Sat, 4 Mar 2017 23:57:49 +0000 (23:57 +0000)]
hwcontext_opencl: QSV to OpenCL mapping for Intel Media SDK

Uses the cl_intel_va_api_media_sharing extension, which supports only
NV12 surfaces and only mapping from QSV to OpenCL.

6 years agohwcontext_opencl: VAAPI to OpenCL mapping for Intel i965+beignet
Mark Thompson [Sat, 4 Mar 2017 23:57:48 +0000 (23:57 +0000)]
hwcontext_opencl: VAAPI to OpenCL mapping for Intel i965+beignet

Supports all surface formats in common between the two.

6 years agolavu: OpenCL hwcontext implementation
Mark Thompson [Sat, 4 Mar 2017 23:57:47 +0000 (23:57 +0000)]
lavu: OpenCL hwcontext implementation

6 years agolavu: Add OpenCL hardware pixfmt
Mark Thompson [Sat, 4 Mar 2017 23:57:46 +0000 (23:57 +0000)]
lavu: Add OpenCL hardware pixfmt

6 years agodoc: Add FAQs about running in background (rev 2)
Jim DeLaHunt [Wed, 15 Nov 2017 08:43:30 +0000 (00:43 -0800)]
doc: Add FAQs about running in background (rev 2)

Add two FAQs about running FFmpeg in the background.
The first explains the use of the -nostdin option in
a straightforward way. Text revised based on review.

The second FAQ starts from a confusing error message,
and leads to the solution, use of the -nostdin option.
The purpose of the second FAQ is to attract web searches
from people having the problem, and offer them a solution.

Add an anchor to the Main Options section of the ffmpeg
documentation, so that the FAQs can link directly there.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years agoavformat/mov: Increment stsd_count while processing stsd data; avoids leaks.
Dale Curtis [Tue, 21 Nov 2017 23:40:22 +0000 (15:40 -0800)]
avformat/mov: Increment stsd_count while processing stsd data; avoids leaks.

In the event of ff_mov_read_stsd_entries() failure, sc->stsd_count
is not updated, even if the function allocates extradata memory.
Instead update the sc->stsd_count as entries are parsed so that
mov_read_close() can do the right thing.

Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years agoavcodec/jpeg2000: Dynamically allocate codeblock data
Michael Niedermayer [Sat, 18 Nov 2017 00:33:18 +0000 (01:33 +0100)]
avcodec/jpeg2000: Dynamically allocate codeblock data

Fixes: OOM
Fixes: 3541/clusterfuzz-testcase-minimized-6469958596820992
Adds support for decoding codeblock data larger than 8kb
Reduces decoder memory consumption

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years agoavdevice/decklink_dec: autodetect the video input format
Karthick J [Fri, 27 Oct 2017 06:30:23 +0000 (12:00 +0530)]
avdevice/decklink_dec: autodetect the video input format

When -format_code is not specified autodetection will happen.

Signed-off-by: Marton Balint <cus@passwd.hu>
6 years agoavdevice/decklink: refactor ff_decklink_set_format function
Karthick J [Tue, 7 Nov 2017 04:02:23 +0000 (09:32 +0530)]
avdevice/decklink: refactor ff_decklink_set_format function

This is done to enable input format autodetection in decklink_dec.

Signed-off-by: Marton Balint <cus@passwd.hu>
6 years agoavcodec/mpeg4videodec: Check also for negative versions in the validity check
Michael Niedermayer [Tue, 21 Nov 2017 02:15:53 +0000 (03:15 +0100)]
avcodec/mpeg4videodec: Check also for negative versions in the validity check

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years agoavfilter/af_asetnsamples: add missing error check
Paul B Mahol [Mon, 20 Nov 2017 13:02:28 +0000 (14:02 +0100)]
avfilter/af_asetnsamples: add missing error check

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agocheckasm/utvideodsp: zero initialize the entire buffer
James Almer [Tue, 21 Nov 2017 14:14:33 +0000 (11:14 -0300)]
checkasm/utvideodsp: zero initialize the entire buffer

Signed-off-by: James Almer <jamrial@gmail.com>
6 years agocheckasm/utvideodsp: fix mixed declarations and code
James Almer [Tue, 21 Nov 2017 14:13:24 +0000 (11:13 -0300)]
checkasm/utvideodsp: fix mixed declarations and code

Signed-off-by: James Almer <jamrial@gmail.com>
6 years agox86/utvideodsp: reuse shared constants
James Almer [Tue, 21 Nov 2017 13:57:06 +0000 (10:57 -0300)]
x86/utvideodsp: reuse shared constants

Remove the broadcast instructions as well now that they are wide
enough.

Signed-off-by: James Almer <jamrial@gmail.com>
6 years agox86/constants: make pb_80 32 byte wide
James Almer [Tue, 21 Nov 2017 13:57:03 +0000 (10:57 -0300)]
x86/constants: make pb_80 32 byte wide

Signed-off-by: James Almer <jamrial@gmail.com>
6 years agoavfilter/avf_avectorscope: add swap and mirror options
Paul B Mahol [Tue, 21 Nov 2017 11:07:13 +0000 (12:07 +0100)]
avfilter/avf_avectorscope: add swap and mirror options

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agofate/hapdec : add test for hapqa decoding
Martin Vignali [Tue, 21 Nov 2017 11:01:00 +0000 (12:01 +0100)]
fate/hapdec : add test for hapqa decoding

6 years agoavcodec/hapdec : add support for hapqa decoding
Martin Vignali [Tue, 21 Nov 2017 10:59:02 +0000 (11:59 +0100)]
avcodec/hapdec : add support for hapqa decoding

6 years agoavcodec/hapdec : indent after previous commit
Martin Vignali [Tue, 21 Nov 2017 10:55:56 +0000 (11:55 +0100)]
avcodec/hapdec : indent after previous commit

6 years agoavcodec/hapdec : reorganize code before adding multi-texture decoding
Martin Vignali [Tue, 21 Nov 2017 10:55:37 +0000 (11:55 +0100)]
avcodec/hapdec : reorganize code before adding multi-texture decoding

6 years agoavcodec/huffyuvdspenc : add diff_int16 AVX2 func
Martin Vignali [Tue, 21 Nov 2017 08:17:44 +0000 (09:17 +0100)]
avcodec/huffyuvdspenc : add diff_int16 AVX2 func

6 years agoavcodec/huffyuvdspenc : reorganize diff_int16
Martin Vignali [Tue, 21 Nov 2017 08:16:18 +0000 (09:16 +0100)]
avcodec/huffyuvdspenc : reorganize diff_int16

6 years agoavcodec/huffyuvdsp : add add_int16 AVX2 func
Martin Vignali [Tue, 21 Nov 2017 08:14:35 +0000 (09:14 +0100)]
avcodec/huffyuvdsp : add add_int16 AVX2 func

6 years agoavcodec/huffyuvdsp : reorganize add_int16 asm
Martin Vignali [Tue, 21 Nov 2017 08:11:36 +0000 (09:11 +0100)]
avcodec/huffyuvdsp : reorganize add_int16 asm

6 years agoavcodec/huffyuvdsp(enc) : move duplicate macro to a template file
Martin Vignali [Tue, 21 Nov 2017 08:10:52 +0000 (09:10 +0100)]
avcodec/huffyuvdsp(enc) : move duplicate macro to a template file

6 years agocheckasm : add test for huffyuvdsp add_int16
Martin Vignali [Tue, 21 Nov 2017 08:09:42 +0000 (09:09 +0100)]
checkasm : add test for huffyuvdsp add_int16

6 years agoavcodec/x86/utvideodsp.asm : cosmetic
Martin Vignali [Tue, 21 Nov 2017 07:36:00 +0000 (08:36 +0100)]
avcodec/x86/utvideodsp.asm : cosmetic

better func separator
and add comment for the restore rgb planes10 declaration

6 years agoavcodec/utvideodsp : add avx2 version for the dsp
Martin Vignali [Tue, 21 Nov 2017 07:34:20 +0000 (08:34 +0100)]
avcodec/utvideodsp : add avx2 version for the dsp

6 years agoavcodec/x86/utvideodsp : make macro for func
Martin Vignali [Tue, 21 Nov 2017 07:32:01 +0000 (08:32 +0100)]
avcodec/x86/utvideodsp : make macro for func

6 years agocheckasm : add utvideodsp test
Martin Vignali [Tue, 21 Nov 2017 07:31:12 +0000 (08:31 +0100)]
checkasm : add utvideodsp test

6 years agoffmpeg: add return value check to supress the build warning.
Jun Zhao [Sat, 18 Nov 2017 05:24:24 +0000 (13:24 +0800)]
ffmpeg: add return value check to supress the build warning.

add return value check to supress the build warning message like
"warning: ignoring return value" when use attribute -Wunused-result.

Signed-off-by: Jun Zhao <jun.zhao@intel.com>
Reviewed-by: 刘歧 <lq@chinaffmpeg.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years agoavformat/dashenc: Added configuration to override HTTP User-Agent
Karthick J [Wed, 8 Nov 2017 09:22:54 +0000 (14:52 +0530)]
avformat/dashenc: Added configuration to override HTTP User-Agent

Reviewed-by: Steven Liu <lingjiujianke@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years agoavformat/mov: Propagate errors in mov_switch_root.
Jacob Trimble [Mon, 20 Nov 2017 20:05:02 +0000 (12:05 -0800)]
avformat/mov: Propagate errors in mov_switch_root.

Signed-off-by: Jacob Trimble <modmaker@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years agoClose ogg stream upon error when using AV_EF_EXPLODE.
Dale Curtis [Mon, 20 Nov 2017 20:07:57 +0000 (12:07 -0800)]
Close ogg stream upon error when using AV_EF_EXPLODE.

Without this there can be multiple memory leaks for unrecognized
ogg streams.

Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years agoFix undefined shift on assumed 8-bit input.
Dale Curtis [Sat, 18 Nov 2017 00:05:30 +0000 (16:05 -0800)]
Fix undefined shift on assumed 8-bit input.

decode_user_data() attempts to create an integer |build|
value with 8 bits of spacing for 3 components. However
each component is an int32_t, so shifting each component
is undefined for values outside of the 8 bit range.

This patch simply clamps input to 8-bits per component
and prints out a warning that the values were clamped.

Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years agolibvpxenc: remove pre-1.4.0 checks
James Zern [Sat, 18 Nov 2017 01:25:40 +0000 (17:25 -0800)]
libvpxenc: remove pre-1.4.0 checks

Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: James Zern <jzern@google.com>
6 years agolibvpxdec: remove pre-1.4.0 checks
James Zern [Sat, 18 Nov 2017 01:25:59 +0000 (17:25 -0800)]
libvpxdec: remove pre-1.4.0 checks

Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: James Zern <jzern@google.com>
6 years agolibvpx: remove pre-1.4.0 checks
James Zern [Sat, 18 Nov 2017 01:25:21 +0000 (17:25 -0800)]
libvpx: remove pre-1.4.0 checks

Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: James Zern <jzern@google.com>
6 years agoconfigure: require libvpx-1.4.0 for vp[89] support
James Zern [Sat, 18 Nov 2017 01:24:07 +0000 (17:24 -0800)]
configure: require libvpx-1.4.0 for vp[89] support

this will simplify libvpxenc/dec.c and ensure more stable versions of
the codecs are present.

Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: James Zern <jzern@google.com>
6 years agox86/jpeg2000dsp: add ff_ict_float_{fma3,fma4}
James Almer [Sun, 19 Nov 2017 03:32:25 +0000 (00:32 -0300)]
x86/jpeg2000dsp: add ff_ict_float_{fma3,fma4}

jpeg2000_ict_float_c: 2296.0
jpeg2000_ict_float_sse: 628.0
jpeg2000_ict_float_avx: 317.0
jpeg2000_ict_float_fma3: 262.0

Signed-off-by: James Almer <jamrial@gmail.com>
6 years agocheckasm/jpeg2000dsp: add test for ict_float
James Almer [Sun, 19 Nov 2017 03:32:24 +0000 (00:32 -0300)]
checkasm/jpeg2000dsp: add test for ict_float

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
6 years agocheckasm/jpeg2000dsp: refactor rct_int test
James Almer [Sun, 19 Nov 2017 03:32:23 +0000 (00:32 -0300)]
checkasm/jpeg2000dsp: refactor rct_int test

Signed-off-by: James Almer <jamrial@gmail.com>
6 years agoavformat/avio: remove must_flush from AVIOContext
Marton Balint [Wed, 15 Nov 2017 21:13:41 +0000 (22:13 +0100)]
avformat/avio: remove must_flush from AVIOContext

It is unused.

Signed-off-by: Marton Balint <cus@passwd.hu>
6 years agoavcodec/hevcdsp_template: Fix invalid shift in put_hevc_epel_bi_w_v()
Michael Niedermayer [Fri, 17 Nov 2017 21:01:29 +0000 (22:01 +0100)]
avcodec/hevcdsp_template: Fix invalid shift in put_hevc_epel_bi_w_v()

Fixes: runtime error: left shift of negative value -255
Fixes: 4037/clusterfuzz-testcase-minimized-5290998163832832
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years agolibavcodec/videotoolbox: fix decoding of h264 streams with minor SPS changes
Aman Gupta [Wed, 15 Nov 2017 20:50:31 +0000 (12:50 -0800)]
libavcodec/videotoolbox: fix decoding of h264 streams with minor SPS changes

Previously the codec kept an entire copy of the SPS, and restarted the VT decoder
session whenever it changed. This fixed decoding errors in [1], as
described in 9519983c. On further inspection, that sample features an SPS change
from High/4.0 to High/3.2 while moving from one scene to another.

Yesterday I received [2], which contains minor SPS changes where the
profile and level do not change. These occur frequently and are not associated with
scene changes. After 9519983c, the VT decoder session is recreated unnecessarily when
these are encountered causing visual glitches.

This commit simplifies the state kept in the VTContext to include just the first three
bytes of the SPS, containing the profile and level details. This is populated initially
when the VT decoder session is created, and used to detect changes and force a restart.

This means minor SPS changes are fed directly into the existing decoder, whereas
profile/level changes force the decoder session to be recreated with the new parameters.

After this commit, both samples [1] and [2] playback as expected.

[1] https://s3.amazonaws.com/tmm1/videotoolbox/spschange.ts
[2] https://s3.amazonaws.com/tmm1/videotoolbox/spschange2.ts

Signed-off-by: Aman Gupta <aman@tmm1.net>
6 years agoRevert "tests/fate: addition of test case for hls variant stream creation with master...
Steven Liu [Mon, 20 Nov 2017 16:22:25 +0000 (00:22 +0800)]
Revert "tests/fate: addition of test case for hls variant stream creation with master playlist"

This reverts commit 218ce1f6237b39090015809468f8e933bb09d9b8.

6 years agocompat/cuda: Pass a logging context to load functions
Mark Thompson [Sat, 18 Nov 2017 17:16:14 +0000 (17:16 +0000)]
compat/cuda: Pass a logging context to load functions

Reviewed-by: Timo Rothenpieler <timo@rothenpieler.org>