]> git.sesse.net Git - ffmpeg/log
ffmpeg
5 years agolavf/apngdec: Return EOF for incomplete files.
Carl Eugen Hoyos [Wed, 7 Nov 2018 00:31:18 +0000 (01:31 +0100)]
lavf/apngdec: Return EOF for incomplete files.

Fixes ticket #7536.

5 years agoavfilter/af_aiir: implement rate option
Paul B Mahol [Thu, 8 Nov 2018 11:51:12 +0000 (12:51 +0100)]
avfilter/af_aiir: implement rate option

5 years agoavfilter/af_afir: implement rate option
Paul B Mahol [Thu, 8 Nov 2018 11:46:29 +0000 (12:46 +0100)]
avfilter/af_afir: implement rate option

5 years agoavfilter/af_afir: return early when giving video frame
Paul B Mahol [Thu, 8 Nov 2018 10:14:56 +0000 (11:14 +0100)]
avfilter/af_afir: return early when giving video frame

5 years agoavfilter/af_afir: remove redundant code
Paul B Mahol [Thu, 8 Nov 2018 10:14:04 +0000 (11:14 +0100)]
avfilter/af_afir: remove redundant code

5 years agoavfilter/avf_showspectrum: add plasma color map
Paul B Mahol [Wed, 7 Nov 2018 17:56:21 +0000 (18:56 +0100)]
avfilter/avf_showspectrum: add plasma color map

5 years agoavfilter/avf_showspectrum: add viridis color map
Paul B Mahol [Wed, 7 Nov 2018 16:55:34 +0000 (17:55 +0100)]
avfilter/avf_showspectrum: add viridis color map

5 years agoavfilter/avf_showspectrum: improve magma colors
Paul B Mahol [Wed, 7 Nov 2018 16:18:44 +0000 (17:18 +0100)]
avfilter/avf_showspectrum: improve magma colors

5 years agolavc/qsv_overlay: suppress code scan complain
Zhong Li [Thu, 24 May 2018 08:34:32 +0000 (16:34 +0800)]
lavc/qsv_overlay: suppress code scan complain

Suppress the complain "variables 'pix_fmt' is used but maybe
uninitialized".

Signed-off-by: Zhong Li <zhong.li@intel.com>
5 years agolavc/qsvdec: flush buffered data before reinit
Linjie Fu [Tue, 16 Oct 2018 01:36:13 +0000 (09:36 +0800)]
lavc/qsvdec: flush buffered data before reinit

Flush the buffered data in libmfx before video param reinit
in case the frames drop.

Cache the first frame causing the reinit and decode zero-size
pkt to flush the buffered pkt before reinit. After all the
buffered pkts being flushed, resume to reinit and decode.

Fix the issue in ticket #7399.

[V2]: Move the definition of zero_pkt to where it is exactly
used.

Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Signed-off-by: Zhong Li <zhong.li@intel.com>
5 years agoavcodec: libdav1d AV1 decoder wrapper.
James Almer [Mon, 21 May 2018 21:46:48 +0000 (17:46 -0400)]
avcodec: libdav1d AV1 decoder wrapper.

Originally written by Ronald S. Bultje, with fixes, optimizations and
improvements by James Almer.

Signed-off-by: James Almer <jamrial@gmail.com>
5 years agocbs_av1: Support redundant frame headers
Mark Thompson [Sun, 4 Nov 2018 23:58:01 +0000 (23:58 +0000)]
cbs_av1: Support redundant frame headers

5 years agocbs_av1: Fix header writing when already aligned
Mark Thompson [Sun, 4 Nov 2018 23:56:39 +0000 (23:56 +0000)]
cbs_av1: Fix header writing when already aligned

5 years agodoc/filters: add tonemap_opencl document.
Ruiling Song [Mon, 29 Oct 2018 05:56:59 +0000 (13:56 +0800)]
doc/filters: add tonemap_opencl document.

Signed-off-by: Ruiling Song <ruiling.song@intel.com>
Signed-off-by: Gyan Doshi <gyandoshi@gmail.com>
5 years agodoc/filters: add document for opencl filters
Ruiling Song [Mon, 29 Oct 2018 05:17:59 +0000 (13:17 +0800)]
doc/filters: add document for opencl filters

Signed-off-by: Danil Iashchenko <danyaschenko@gmail.com>
Signed-off-by: Ruiling Song <ruiling.song@intel.com>
Signed-off-by: Gyan Doshi <gyandoshi@gmail.com>
5 years agomjpeg: Use profile names in the encoder and decoder
Vittorio Giovara [Fri, 2 Nov 2018 19:33:20 +0000 (15:33 -0400)]
mjpeg: Use profile names in the encoder and decoder

5 years agoproresdec2: Parse codec_tag and export profile information
Vittorio Giovara [Fri, 2 Nov 2018 19:24:45 +0000 (15:24 -0400)]
proresdec2: Parse codec_tag and export profile information

5 years agoprores: Use profile names in the various encoders and decoders
Vittorio Giovara [Fri, 2 Nov 2018 19:23:16 +0000 (15:23 -0400)]
prores: Use profile names in the various encoders and decoders

Export FF_PROFILE_PRORES_* symbols publicly, add a missing one.

5 years agoproresenc_anatoliy: Rename a profile name with the correct one
Vittorio Giovara [Fri, 2 Nov 2018 19:21:35 +0000 (15:21 -0400)]
proresenc_anatoliy: Rename a profile name with the correct one

In all Apple documentation, this profile is called Prores 4444.

5 years agolibopenh264enc: Handle sample_aspect_ratio
Valery Kot [Thu, 1 Nov 2018 13:15:11 +0000 (14:15 +0100)]
libopenh264enc: Handle sample_aspect_ratio

5 years agoconfigure: Add missing V4L2 M2M decoder BSF dependencies
Mark Thompson [Mon, 5 Nov 2018 14:22:10 +0000 (14:22 +0000)]
configure: Add missing V4L2 M2M decoder BSF dependencies

5 years agoconfigure: Add missing IVF muxer BSF dependency
Mark Thompson [Mon, 5 Nov 2018 14:22:05 +0000 (14:22 +0000)]
configure: Add missing IVF muxer BSF dependency

5 years agoflvdec: Export unknown metadata packets as opaque data
Martin Storsjö [Fri, 5 Oct 2018 13:16:11 +0000 (16:16 +0300)]
flvdec: Export unknown metadata packets as opaque data

Signed-off-by: Martin Storsjö <martin@martin.st>
5 years agoflvdec: Rename FLV_STREAM_TYPE_DATA into FLV_STREAM_TYPE_SUBTITLE
Martin Storsjö [Fri, 5 Oct 2018 13:11:08 +0000 (16:11 +0300)]
flvdec: Rename FLV_STREAM_TYPE_DATA into FLV_STREAM_TYPE_SUBTITLE

This is always treated as a subtitle at the moment anyway.

Signed-off-by: Martin Storsjö <martin@martin.st>
5 years agolibx264: Pass the reordered_opaque field through the encoder
Martin Storsjö [Thu, 11 Oct 2018 13:03:10 +0000 (16:03 +0300)]
libx264: Pass the reordered_opaque field through the encoder

libx264 does have a field for opaque data to pass along with frames
through the encoder, but it is a pointer, while the libavcodec
reordered_opaque field is an int64_t. Therefore, allocate an array
within the libx264 wrapper, where reordered_opaque values in flight
are stored, and pass a pointer to this array to libx264.

Update the public libavcodec documentation for the AVCodecContext
field to explain this usage, and add a codec capability that allows
detecting whether an encoder handles this field.

Signed-off-by: Martin Storsjö <martin@martin.st>
5 years agolibavutil: Undeprecate the AVFrame reordered_opaque field
Martin Storsjö [Thu, 25 Oct 2018 12:41:26 +0000 (15:41 +0300)]
libavutil: Undeprecate the AVFrame reordered_opaque field

This was marked as deprecated (but only in the doxygen, not with an
actual deprecation attribute) in 81c623fae05 in 2011, but was
undeprecated in ad1ee5fa7.

Signed-off-by: Martin Storsjö <martin@martin.st>
5 years agoavcodec/cbs_av1: fix decoder/encoder_buffer_delay variable types
James Almer [Sun, 4 Nov 2018 20:07:39 +0000 (17:07 -0300)]
avcodec/cbs_av1: fix decoder/encoder_buffer_delay variable types

buffer_delay_length_minus_1 is five bits long, meaning decode_buffer_delay and
encoder_buffer_delay can have values up to 32 bits long.

Reviewed-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: James Almer <jamrial@gmail.com>
5 years agoconfigure: Fix av1_metadata BSF dependency
Mark Thompson [Mon, 5 Nov 2018 00:01:54 +0000 (00:01 +0000)]
configure: Fix av1_metadata BSF dependency

5 years agoavformat/ftp: allow nonstandard 202 reply to OPTS UTF8
Marton Balint [Thu, 1 Nov 2018 20:03:59 +0000 (21:03 +0100)]
avformat/ftp: allow nonstandard 202 reply to OPTS UTF8

Fixes ticket #7481.

Signed-off-by: Marton Balint <cus@passwd.hu>
5 years agoavcodec/cavsdec: Propagate error codes inside decode_mb_i()
Michael Niedermayer [Sun, 4 Nov 2018 19:00:16 +0000 (20:00 +0100)]
avcodec/cavsdec: Propagate error codes inside decode_mb_i()

Fixes: Timeout
Fixes: 10702/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CAVS_fuzzer-5669940938407936
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 years agoavcodec/mpeg4videodec: Clear partitioned frame in decode_studio_vop_header()
Michael Niedermayer [Sun, 4 Nov 2018 18:02:55 +0000 (19:02 +0100)]
avcodec/mpeg4videodec: Clear partitioned frame in decode_studio_vop_header()

partitioned_frame is also set/cleared in decode_vop_header()

Fixes: out of array read
Fixes: 9789/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG4_fuzzer-5638681627983872
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 years agoavfilter/af_afade: remove unused code
Paul B Mahol [Sun, 4 Nov 2018 14:01:56 +0000 (15:01 +0100)]
avfilter/af_afade: remove unused code

5 years agoavcodec/pictordec: Error out if more than one plane is unused
Michael Niedermayer [Wed, 12 Sep 2018 00:48:04 +0000 (02:48 +0200)]
avcodec/pictordec: Error out if more than one plane is unused

Fixes: Timeout
Fixes: 9797/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PICTOR_fuzzer-5664441659031552
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 years agoavcodec/mpegaudio_parser: Consume more than 0 bytes in case of the unsupported mp3adu...
Michael Niedermayer [Sun, 28 Oct 2018 20:08:39 +0000 (21:08 +0100)]
avcodec/mpegaudio_parser: Consume more than 0 bytes in case of the unsupported mp3adu case

Fixes: Timeout
Fixes: 10966/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MP3ADU_fuzzer-5348695024336896
Fixes: 10969/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MP3ADUFLOAT_fuzzer-5691669402877952
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 years agoavfilter/split: use ff_outlink_get_status()
Paul B Mahol [Sat, 3 Nov 2018 17:17:30 +0000 (18:17 +0100)]
avfilter/split: use ff_outlink_get_status()

5 years agoavfilter/af_afade: do not use framequeue directly
Paul B Mahol [Sat, 3 Nov 2018 17:13:23 +0000 (18:13 +0100)]
avfilter/af_afade: do not use framequeue directly

5 years agoavfilter/af_amerge: use ff_inlink_queued_samples()
Paul B Mahol [Sat, 3 Nov 2018 17:08:50 +0000 (18:08 +0100)]
avfilter/af_amerge: use ff_inlink_queued_samples()

5 years agoavfilter/af_amultiply: make use of ff_inlink_queued_samples()
Paul B Mahol [Sat, 3 Nov 2018 17:05:41 +0000 (18:05 +0100)]
avfilter/af_amultiply: make use of ff_inlink_queued_samples()

5 years agoavfilter/vf_extractplanes: use ff_outlink_get_status()
Paul B Mahol [Sat, 3 Nov 2018 17:01:53 +0000 (18:01 +0100)]
avfilter/vf_extractplanes: use ff_outlink_get_status()

5 years agofate/api-h264-slice-test: use cleaner error handling
Josh de Kock [Tue, 30 Oct 2018 14:38:42 +0000 (14:38 +0000)]
fate/api-h264-slice-test: use cleaner error handling

Signed-off-by: James Almer <jamrial@gmail.com>
5 years agofate/api-h264-slice-test: don't use ssize_t
Josh de Kock [Tue, 30 Oct 2018 14:38:41 +0000 (14:38 +0000)]
fate/api-h264-slice-test: don't use ssize_t

Fixes ticket #7521

Signed-off-by: James Almer <jamrial@gmail.com>
5 years agoavcodec/prosumer: Simplify bit juggling of the c variable in decompress()
Michael Niedermayer [Wed, 31 Oct 2018 09:19:43 +0000 (10:19 +0100)]
avcodec/prosumer: Simplify bit juggling of the c variable in decompress()

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 years agoavcodec/prosumer: Remove always true check in decompress()
Michael Niedermayer [Wed, 31 Oct 2018 09:19:08 +0000 (10:19 +0100)]
avcodec/prosumer: Remove always true check in decompress()

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 years agoavcodec/prosumer: Remove unneeded ()
Michael Niedermayer [Wed, 31 Oct 2018 09:18:45 +0000 (10:18 +0100)]
avcodec/prosumer: Remove unneeded ()

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 years agoavcodec/prosumer: Check for bytestream eof in decompress()
Michael Niedermayer [Wed, 31 Oct 2018 02:06:59 +0000 (03:06 +0100)]
avcodec/prosumer: Check for bytestream eof in decompress()

Fixes: Infinite loop
Fixes: 10685/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PROSUMER_fuzzer-5652236881887232
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 years agoavfilter/vf_cuda_yadif: Avoid new syntax for vector initialisation
Philip Langdale [Fri, 2 Nov 2018 21:08:18 +0000 (14:08 -0700)]
avfilter/vf_cuda_yadif: Avoid new syntax for vector initialisation

This requires a newer version of CUDA than we want to require.

5 years agoavcodec/nvdec: Increase frame pool size to help deinterlacing
Philip Langdale [Thu, 25 Oct 2018 01:38:44 +0000 (18:38 -0700)]
avcodec/nvdec: Increase frame pool size to help deinterlacing

With the cuda yadif filter in use, the number of mapped decoder
frames could increase by two, as the filter holds on to additional
frames.

5 years agoavfilter/vf_yadif_cuda: CUDA accelerated yadif deinterlacer
Philip Langdale [Sun, 21 Oct 2018 20:49:16 +0000 (13:49 -0700)]
avfilter/vf_yadif_cuda: CUDA accelerated yadif deinterlacer

This is a cuda implementation of yadif, which gives us a way to
do deinterlacing when using the nvdec hwaccel. In that scenario
we don't have access to the nvidia deinterlacer.

5 years agolibavfilter/vf_yadif: Make frame management logic and options shareable
Philip Langdale [Wed, 24 Oct 2018 18:52:42 +0000 (11:52 -0700)]
libavfilter/vf_yadif: Make frame management logic and options shareable

I'm writing a cuda implementation of yadif, and while this
obviously has a very different implementation of the actual
filtering, all the frame management is unchanged. To avoid
duplicating that logic, let's make it shareable.

From the perspective of the existing filter, the only real change
is introducing a function pointer for the filter() function so it
can be specified for the specific filter.

5 years agoavfilter/f_loop: switch to activate
Paul B Mahol [Fri, 2 Nov 2018 09:11:24 +0000 (10:11 +0100)]
avfilter/f_loop: switch to activate

5 years agoavfilter/f_loop: make sure duration of frame is never zero
Paul B Mahol [Fri, 2 Nov 2018 10:20:30 +0000 (11:20 +0100)]
avfilter/f_loop: make sure duration of frame is never zero

5 years agoavfilter: add tpad filter
Paul B Mahol [Tue, 30 Oct 2018 08:33:12 +0000 (09:33 +0100)]
avfilter: add tpad filter

5 years agoavformat/dashenc: Disable writing CODECS tag for HEVC streams
kjeyapal@akamai.com [Sun, 21 Oct 2018 08:40:48 +0000 (14:10 +0530)]
avformat/dashenc: Disable writing CODECS tag for HEVC streams

For HEVC streams, only the FourCC tag is written without profile, level etc.,
This is breaking playout support in native Safari.
Native Safari playout expects the full info in CODECS tag or None at all.

5 years agoavformat/ivfenc: use the av1_metadata bsf to insert Temporal Delimiter OBUs if needed
James Almer [Wed, 3 Oct 2018 00:08:54 +0000 (21:08 -0300)]
avformat/ivfenc: use the av1_metadata bsf to insert Temporal Delimiter OBUs if needed

Reviewed-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: James Almer <jamrial@gmail.com>
5 years agoRELEASE: bump to 4.1.git
Michael Niedermayer [Thu, 1 Nov 2018 23:55:49 +0000 (00:55 +0100)]
RELEASE: bump to 4.1.git

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 years agoChangelog: Add new version next tag
Michael Niedermayer [Thu, 1 Nov 2018 23:55:27 +0000 (00:55 +0100)]
Changelog: Add new version next tag

5 years agoBump minor version for master after 4.1 branchpoint
Michael Niedermayer [Thu, 1 Nov 2018 23:53:07 +0000 (00:53 +0100)]
Bump minor version for master after 4.1 branchpoint

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 years agoBump minor versions for branching 4.1
Michael Niedermayer [Thu, 1 Nov 2018 23:15:32 +0000 (00:15 +0100)]
Bump minor versions for branching 4.1

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 years agoChangelog: next is 4.1
Michael Niedermayer [Thu, 1 Nov 2018 22:54:35 +0000 (23:54 +0100)]
Changelog: next is 4.1

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 years agodoc/APIchanges: Update for 4.1
Michael Niedermayer [Thu, 1 Nov 2018 22:53:01 +0000 (23:53 +0100)]
doc/APIchanges: Update for 4.1

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 years agoavformat/ftp: return AVERROR_EOF for EOF
Marton Balint [Thu, 1 Nov 2018 19:48:55 +0000 (20:48 +0100)]
avformat/ftp: return AVERROR_EOF for EOF

Without this FTP just hangs on eof...

Signed-off-by: Marton Balint <cus@passwd.hu>
5 years agoavdevice/libndi_newtek_dec: add extra_ips option to libndi_newtek allowing use remote...
Anton Platov [Mon, 29 Oct 2018 12:57:31 +0000 (15:57 +0300)]
avdevice/libndi_newtek_dec: add extra_ips option to libndi_newtek allowing use remote network sources

Signed-off-by: Anton Platov <anton@platov.net>
Signed-off-by: Marton Balint <cus@passwd.hu>
5 years agoavdevice/decklink_dec: fix codec_tag of RGBA formats
BIGLER Don (Framatome) [Thu, 1 Nov 2018 16:49:37 +0000 (17:49 +0100)]
avdevice/decklink_dec: fix codec_tag of RGBA formats

Fixes ticket #7505.

Signed-off-by: Marton Balint <cus@passwd.hu>
5 years agodoc/filter: add some loop filter trivial examples
Paul B Mahol [Thu, 1 Nov 2018 12:50:51 +0000 (13:50 +0100)]
doc/filter: add some loop filter trivial examples

5 years agoavcodec/vdpau: Initialise driver version variable explicitly
Philip Langdale [Wed, 31 Oct 2018 23:58:09 +0000 (16:58 -0700)]
avcodec/vdpau: Initialise driver version variable explicitly

If the identification string ever changed, we might not match anything
in the sscanf(). At least have predictable behaviour.

5 years agocbs_h265: Add PTL parsing for Main 10 Still Picture profile
Mark Thompson [Sat, 27 Oct 2018 21:39:47 +0000 (22:39 +0100)]
cbs_h265: Add PTL parsing for Main 10 Still Picture profile

This was added in the 2018 version of the standard.

5 years agocbs_h264: Include SEI type names in trace output
Mark Thompson [Sat, 27 Oct 2018 21:39:46 +0000 (22:39 +0100)]
cbs_h264: Include SEI type names in trace output

5 years agodoc/fate.texi: Mention that samples should be uploaded before pushing dependent commits
Michael Niedermayer [Tue, 23 Oct 2018 21:31:24 +0000 (23:31 +0200)]
doc/fate.texi: Mention that samples should be uploaded before pushing dependent commits

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 years agoavfilter: add (a)graphmonitor filter(s)
Paul B Mahol [Sat, 27 Oct 2018 17:17:08 +0000 (19:17 +0200)]
avfilter: add (a)graphmonitor filter(s)

5 years agoavcodec/vdpau: Enable HEVC support for working Nvidia driver versions
ManojGuptaBonda [Mon, 29 Oct 2018 08:09:54 +0000 (13:39 +0530)]
avcodec/vdpau: Enable HEVC support for working Nvidia driver versions

The driver bugs that caused decoded HEVC content to have an incorrect
memory layout have been fully fixed in the 410.xx driver release so
we can start exposing support.

5 years agoavcodec/cbs_vp9: store profile in the private context
James Almer [Tue, 30 Oct 2018 18:41:21 +0000 (15:41 -0300)]
avcodec/cbs_vp9: store profile in the private context

Derived from profile_low_bit and profile_high_bit.

Signed-off-by: James Almer <jamrial@gmail.com>
5 years agoavcodec/cbs_vp9: keep track of reference frames
James Almer [Tue, 30 Oct 2018 16:44:55 +0000 (13:44 -0300)]
avcodec/cbs_vp9: keep track of reference frames

Signed-off-by: James Almer <jamrial@gmail.com>
5 years agocbs_vp9: Ensure that reserved zero bits are actually zero
Mark Thompson [Sat, 27 Oct 2018 19:41:00 +0000 (20:41 +0100)]
cbs_vp9: Ensure that reserved zero bits are actually zero

5 years agodoc/hls: fix grammar for HLS options
Werner Robitza [Tue, 30 Oct 2018 19:22:55 +0000 (20:22 +0100)]
doc/hls: fix grammar for HLS options

This fixes the grammar of two HLS option descriptions and makes them less
ambiguous.

Signed-off-by: Werner Robitza <werner.robitza@gmail.com>
Signed-off-by: Lou Logan <lou@lrcd.com>
5 years agoavcodec/libvpxdec: fix setting auto threads
James Zern [Sat, 27 Oct 2018 20:09:27 +0000 (13:09 -0700)]
avcodec/libvpxdec: fix setting auto threads

a thread count of 0 is treated the same as 1, use av_cpu_count() to get
the correct thread count when auto threads is requested.

this matches the fix in libvpxenc:
27df34bf1f avcodec/libvpxenc: fix setting amount of threads used for encoding

Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: James Zern <jzern@google.com>
5 years agolavu/frame: Add error report if av_image_fill_pointers fail.
Jun Zhao [Sun, 28 Oct 2018 02:44:29 +0000 (10:44 +0800)]
lavu/frame: Add error report if av_image_fill_pointers fail.

Add error handle if av_image_fill_pointers fail.

Signed-off-by: Jun Zhao <mypopydev@gmail.com>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
5 years agolavc/decode: Fix the error number report if av_image_fill_pointers fail.
Jun Zhao [Sun, 28 Oct 2018 02:27:22 +0000 (10:27 +0800)]
lavc/decode: Fix the error number report if av_image_fill_pointers fail.

-1 will be map to error number "EPERM", and will be map to the error
message like "Error while decoding stream #0:0: Operation not permitted",
it's a strange error message when debug update_frame_pool fail,
now only return the error code from av_image_fill_pointers in case
of av_image_fill_pointers failure.

Signed-off-by: Jun Zhao <mypopydev@gmail.com>
5 years agoavformat/hlsenc.c: fix the output's duration smaller than input's in sub-range mode.
Charles Liu [Tue, 30 Oct 2018 03:11:27 +0000 (11:11 +0800)]
avformat/hlsenc.c: fix the output's duration smaller than input's in sub-range mode.

In fmp4 & sub-range mode, the output's duration always smaller than expected,
because the size of the last #EXT-X-BYTERANGE is too small.

Signed-off-by: Charles Liu <liuchh83@gmail.com>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
5 years agoavformat/hlsenc.c: the size of init.mp4 is zero.
Charles Liu [Tue, 30 Oct 2018 03:10:27 +0000 (11:10 +0800)]
avformat/hlsenc.c: the size of init.mp4 is zero.

The size of init.mp4 is zero in fmp4 mode,
when the input duraton smaller than the expected segment time.

fix ticket: 7166

Signed-off-by: Charles Liu <liuchh83@gmail.com>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
5 years agoavformat/hlsenc.c: remove the useless variable fmp4_init_mode.
Charles Liu [Tue, 30 Oct 2018 03:09:14 +0000 (11:09 +0800)]
avformat/hlsenc.c: remove the useless variable fmp4_init_mode.

Signed-off-by: Charles Liu <liuchh83@gmail.com>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
5 years agoavformat/hlsenc.c: fix memory leak in fmp4 mode.
Charles Liu [Tue, 30 Oct 2018 03:08:29 +0000 (11:08 +0800)]
avformat/hlsenc.c: fix memory leak in fmp4 mode.

Signed-off-by: Charles Liu <liuchh83@gmail.com>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
5 years agoavformat/hlsenc: fix the duration of m4s segment is unusually smaller than expected.
Charles Liu [Tue, 30 Oct 2018 03:07:14 +0000 (11:07 +0800)]
avformat/hlsenc: fix the duration of m4s segment is unusually smaller than expected.

In fmp4 mode, the duration of the second m4s segment is
unusually smaller than the expected segment time.

Signed-off-by: Charles Liu <liuchh83@gmail.com>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
5 years agoavcodec/vp9: Check in decode_tiles() if there is data remaining
Michael Niedermayer [Sat, 4 Aug 2018 20:21:02 +0000 (22:21 +0200)]
avcodec/vp9: Check in decode_tiles() if there is data remaining

Fixes: Timeout
Fixes: 9330/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VP9_fuzzer-5707345857347584
Fixes: 9775/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VP9_fuzzer-5643845344690176
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 years agoavcodec/vp56: Add vpX_rac_is_end() to check for the end of input
Michael Niedermayer [Sat, 11 Aug 2018 20:28:31 +0000 (22:28 +0200)]
avcodec/vp56: Add vpX_rac_is_end() to check for the end of input

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 years agovaapi_encode_mpeg2: Fix width/height columns/rows confusion
Mark Thompson [Mon, 29 Oct 2018 19:41:24 +0000 (19:41 +0000)]
vaapi_encode_mpeg2: Fix width/height columns/rows confusion

Fixes #7522.

5 years agoavcodec/vp3: reindent unpack_superblocks()
Michael Niedermayer [Mon, 29 Oct 2018 15:28:20 +0000 (16:28 +0100)]
avcodec/vp3: reindent unpack_superblocks()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 years agoavcodec/vp3: Do not recalculate coded_fragment_list for keyframes
Michael Niedermayer [Sun, 28 Oct 2018 13:44:37 +0000 (14:44 +0100)]
avcodec/vp3: Do not recalculate coded_fragment_list for keyframes

This improves decoding speed of keyframes

Fixes: Timeout (102->27sec)
Fixes: 9642/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VP3_fuzzer-6676767875006464
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 years agoavcodec/vp3: Reuse local variable in unpack_superblocks()
Michael Niedermayer [Sun, 28 Oct 2018 11:49:40 +0000 (12:49 +0100)]
avcodec/vp3: Reuse local variable in unpack_superblocks()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 years agoavcodec/vp3: Do not initialize unused tables for keyframes in unpack_superblock()
Michael Niedermayer [Sun, 28 Oct 2018 11:46:52 +0000 (12:46 +0100)]
avcodec/vp3: Do not initialize unused tables for keyframes in unpack_superblock()

Fixes: Timeout (139sec -> 102sec)
Fixes: 9642/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VP3_fuzzer-6676767875006464
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 years agodoc/filters: add small description to geq filter section
Paul B Mahol [Mon, 29 Oct 2018 15:44:23 +0000 (16:44 +0100)]
doc/filters: add small description to geq filter section

Previously there was no description at all.

5 years agoavfilter/af_afftdn: fix memory leaks reported by coverity
Paul B Mahol [Sun, 28 Oct 2018 21:30:06 +0000 (22:30 +0100)]
avfilter/af_afftdn: fix memory leaks reported by coverity

5 years agolibaomenc: Add support for tiles
Mark Thompson [Mon, 22 Oct 2018 22:40:07 +0000 (23:40 +0100)]
libaomenc: Add support for tiles

Adds an option to specify the number of tile rows and columns, then uses
a uniform tiling if possible and otherwise a fixed tiling with equal-sized
tiles to fill the frame.

Also adds -tile-columns and -tile-rows options to make tilings with
power-of-two numbers of tiles, matching the behaviour of the libvpx/VP9
encoder.

5 years agoavfilter/af_afftdn: add alias for sample_noise end
Paul B Mahol [Sun, 28 Oct 2018 14:00:34 +0000 (15:00 +0100)]
avfilter/af_afftdn: add alias for sample_noise end

Added the same one as one mentioned in documentation.

5 years agoavfilter/af_afftdn: switch to activate
Paul B Mahol [Sun, 28 Oct 2018 13:27:32 +0000 (14:27 +0100)]
avfilter/af_afftdn: switch to activate

5 years agolavc/libxavs2: Remove yuv420p10le from fromat list.
Jun Zhao [Sun, 28 Oct 2018 07:13:45 +0000 (15:13 +0800)]
lavc/libxavs2: Remove yuv420p10le from fromat list.

now libxavs2 can't support 10bits mode, so remove the
yuv420p10le from fromat list.

Signed-off-by: Jun Zhao <jun.zhao@intel.com>
5 years agolavc/libdavs2: Remove yuv420p10le from fromat list.
Jun Zhao [Sun, 28 Oct 2018 07:10:47 +0000 (15:10 +0800)]
lavc/libdavs2: Remove yuv420p10le from fromat list.

now libdavs2 can't support 10bits mode, so remove the
yuv420p10le from fromat list.

Signed-off-by: Jun Zhao <jun.zhao@intel.com>
5 years agolavc/libxavs2: enable OpenGop
hwren [Thu, 18 Oct 2018 15:02:10 +0000 (23:02 +0800)]
lavc/libxavs2: enable OpenGop

Signed-off-by: hwren <hwrenx@126.com>
5 years agolavc/libxavs2: fix intra period meaning conflict
hwren [Thu, 18 Oct 2018 15:02:09 +0000 (23:02 +0800)]
lavc/libxavs2: fix intra period meaning conflict

Signed-off-by: hwren <hwrenx@126.com>
5 years agolavc/libxavs2: unified naming style
hwren [Thu, 18 Oct 2018 15:02:08 +0000 (23:02 +0800)]
lavc/libxavs2: unified naming style

Signed-off-by: hwren <hwrenx@126.com>
5 years agoavfilter/vf_pixdesctest: Use 32bit read/write
Michael Niedermayer [Thu, 25 Oct 2018 21:15:54 +0000 (23:15 +0200)]
avfilter/vf_pixdesctest: Use 32bit read/write

This is needed for processing 32bit floats

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>