Re: [FFmpeg-devel] [PATCH 11/15] lavc/videotoolbox: call VTRegisterSupplementalVideoDecoderIfAvailable

2021-11-14 Thread Hendrik Leppkes
On Sun, Nov 14, 2021 at 3:40 AM Ridley Combs wrote: > > > > > On Nov 13, 2021, at 18:38, Marvin Scholz wrote: > > > > On 13 Nov 2021, at 22:09, rcombs wrote: > > > >> This is required for VP9 to work. > >> --- > >> libavcodec/videotoolbox.c | 7 +++ > >> 1 file changed, 7 insertions(+) > >> >

[FFmpeg-devel] [PATCH] avfilter: add colorspectrum source video filter

2021-11-14 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- doc/filters.texi | 15 ++- libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/vsrc_testsrc.c | 92 ++ 4 files changed, 108 insertions(+), 1 deletion(-) diff --git a/doc/filters.texi b

Re: [FFmpeg-devel] [PATCH v3 0/3] Dolby Vision RPU Side Data

2021-11-14 Thread Derek Buitenhuis
On 11/10/2021 2:22 PM, Derek Buitenhuis wrote: > Only patch 2 ha`s changed, as per Andreas' review. > > Derek Buitenhuis (3): > avutil: Add Dolby Vision RPU side data type > avcodec/hevcdec: Export Dolby Vision RPUs as side data > fate: Add test for Dolby Vision RPU side data I'll give this

Re: [FFmpeg-devel] [PATCH][RFC] avformat/http: Add short_seek_size option

2021-11-14 Thread Derek Buitenhuis
On 10/26/2021 4:14 PM, Derek Buitenhuis wrote: > In 45bfe8b838275235412777dd430206d9a24eb3ee, short_seek_threshold was removed > from the public AVIO struct. Although this option was private and not intended > to be used by public API users, it was nonetheless, because it provided > functionality

Re: [FFmpeg-devel] [PATCH] ffmpeg: remove ffmpeg_videotoolbox

2021-11-14 Thread Michael Niedermayer
On Sat, Nov 13, 2021 at 03:41:29PM -0600, rcombs wrote: > This was almost completely redundant. The only functionality that's no longer > available after this removal is the videotoolbox_pixfmt arg, which has been > obsolete for several years. > --- > fftools/Makefile | 4 - > fftoo

Re: [FFmpeg-devel] [PATCH 02/15] swscale: add P216/P410/P416 input

2021-11-14 Thread James Almer
On 11/13/2021 6:09 PM, rcombs wrote: --- libswscale/input.c | 14 ++ libswscale/utils.c | 6 ++ 2 files changed, 20 insertions(+) diff --git a/libswscale/input.c b/libswscale/input.c index 336f957c8c..5c8a28c665 100644 --- a/libswscale/input.c +++ b/libswscale/input.c @@ -12

Re: [FFmpeg-devel] [PATCH] ffmpeg: remove ffmpeg_videotoolbox

2021-11-14 Thread James Almer
On 11/13/2021 6:41 PM, rcombs wrote: This was almost completely redundant. The only functionality that's no longer available after this removal is the videotoolbox_pixfmt arg, which has been obsolete for several years. --- fftools/Makefile | 4 - fftools/ffmpeg.c |

Re: [FFmpeg-devel] [PATCH v2 1/2] swscale/input: unify grayf32 funcs with rgbf32 funcs

2021-11-14 Thread Michael Niedermayer
On Sat, Nov 13, 2021 at 06:56:52PM -0800, mindm...@gmail.com wrote: > From: Mark Reid > > This is ment to be a cosmetic change > > old timings: > 42780 UNITS in grayf32le, 1 runs, 0 skips > 56720 UNITS in grayf32le, 2 runs, 0 skips > 67265 UNITS in grayf32le, 4

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/speexdec: Check frames_per_packet more completely

2021-11-14 Thread Michael Niedermayer
On Fri, Oct 15, 2021 at 11:17:04PM +0200, Michael Niedermayer wrote: > On Fri, Oct 15, 2021 at 07:30:20PM +0200, Paul B Mahol wrote: > > On Fri, Oct 15, 2021 at 7:26 PM Michael Niedermayer > > wrote: > > > > > On Fri, Oct 15, 2021 at 08:52:39AM +0200, Paul B Mahol wrote: > > > > On Fri, Oct 15, 2

Re: [FFmpeg-devel] [PATCH] avformat/dhav: Limit get_duration() iterations

2021-11-14 Thread Michael Niedermayer
On Sun, Oct 17, 2021 at 04:09:09PM +0200, Michael Niedermayer wrote: > Fixes: Timeout > Fixes: > 39971/clusterfuzz-testcase-minimized-ffmpeg_IO_DEMUXER_fuzzer-5756969890217984 > Fixes: > 39977/clusterfuzz-testcase-minimized-ffmpeg_dem_DHAV_fuzzer-5327123053674496 > > Found-by: continuous fuzzing

[FFmpeg-devel] [PATCH 1/3] ffmpeg: allocate the output hwaccel AVFrame only once

2021-11-14 Thread James Almer
Signed-off-by: James Almer --- fftools/ffmpeg.c| 3 +++ fftools/ffmpeg.h| 1 + fftools/ffmpeg_hw.c | 17 ++--- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index d141f34df9..26030ed25e 100644 --- a/fftools/ffmpeg.c +++

[FFmpeg-devel] [PATCH 2/3] ffmpeg: remove unused hwaccel_get_buffer function pointer

2021-11-14 Thread James Almer
As well as the custom get_buffer2() implementation which would become a redundant wrapper for avcodec_default_get_buffer2() after this Signed-off-by: James Almer --- fftools/ffmpeg.c | 11 --- fftools/ffmpeg.h | 1 - 2 files changed, 12 deletions(-) diff --git a/fftools/ffmpeg.c b/ffto

[FFmpeg-devel] [PATCH 3/3] ffmpeg: remove unused hw_frames_ctx AVBufferRef from InputStream

2021-11-14 Thread James Almer
Signed-off-by: James Almer --- fftools/ffmpeg.c | 6 -- fftools/ffmpeg.h | 1 - 2 files changed, 7 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index bde5a2f603..05e2a75f1f 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -2925,12 +2925,6 @@ static enum AVPixelFormat

[FFmpeg-devel] [PATCH 2/2] avformat/avidec: Check read_odml_index() for failure

2021-11-14 Thread Michael Niedermayer
Fixes: Timeout Fixes: 40950/clusterfuzz-testcase-minimized-ffmpeg_dem_AVI_fuzzer-6478873068437504 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavformat/avidec.c | 7 +-- 1 file changed, 5 inser

[FFmpeg-devel] [PATCH 1/2] avcodec/txd: Move input size checks before allocation

2021-11-14 Thread Michael Niedermayer
Fixes: Timeout Fixes: 40882/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TXD_fuzzer-4893364584054784 Signed-off-by: Michael Niedermayer --- libavcodec/txd.c | 30 +++--- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/libavcodec/txd.c b/libavcodec/tx

Re: [FFmpeg-devel] [PATCH] avformat/concatdec: fix NEEDS_UNSAFE flag value

2021-11-14 Thread Nicolas George
Googleplex (12021-11-12): > NEEDS_UNSAFE has the same value as NEEDS_FILE, > causing "duration not allowed if safe" error > while duration directive doesn't require unsafe mode. > > Signed-off-by: Googleplex > --- > libavformat/concatdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

[FFmpeg-devel] [PATCH v3 1/1] avutil/frame: Document the possibility of negative line sizes

2021-11-14 Thread Soft Works
Signed-off-by: softworkz --- v3: fixed patch, removed comment about 0 line size libavutil/frame.h | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/libavutil/frame.h b/libavutil/frame.h index ff2540a20f..31def23d8b 100644 --- a/libavutil/frame.h +++ b/libavut

Re: [FFmpeg-devel] Collection Ping (softworkz)

2021-11-14 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Marton Balint > Sent: Saturday, November 13, 2021 8:13 PM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] Collection Ping (softworkz) > > > > On Wed, 10 Nov 2021, Soft Works wrot

Re: [FFmpeg-devel] [EXT] Re: [PATCH v1 2/2] avcodec/v4l2_buffer: export v4l2 buffer dma-buf

2021-11-14 Thread Ming Qian
> -Original Message- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of > Lynne > Sent: Friday, November 12, 2021 4:50 PM > To: FFmpeg development discussions and patches > Subject: [EXT] Re: [FFmpeg-devel] [PATCH v1 2/2] avcodec/v4l2_buffer: export > v4l2 buffer dm

Re: [FFmpeg-devel] [EXT] Re: [PATCH v1 2/2] avcodec/v4l2_buffer: export v4l2 buffer dma-buf

2021-11-14 Thread Ming Qian
> -Original Message- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of > Ming Qian > Sent: Monday, November 15, 2021 10:49 AM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [EXT] Re: [PATCH v1 2/2] avcodec/v4l2_buffer: > export v4l2

[FFmpeg-devel] [PATCH v3 1/2] libavutil/common: clip nan value to amin

2021-11-14 Thread mindmark
From: Mark Reid Changes av_clipf to return amin if a is nan. Before if a is nan av_clipf_c returned nan and av_clipf_sse would return amax. Now the both should behave the same. This works because nan > amin is false. The max(nan, amin) will be amin. --- libavutil/common.h | 12 ++--

[FFmpeg-devel] [PATCH v3 2/2] swscale/input: clip rgbf32 values before lrintf

2021-11-14 Thread mindmark
From: Mark Reid if the float pixel * 65535.0f > 2147483647.0f lrintf may overfow and return negative values, depending on implementation. nan and +/-inf values may also be implementation defined clip the value first so lrintf always works. values < 0.0f, -inf, nan = 0.0f values > 65535.0f,

Re: [FFmpeg-devel] [PATCH 4/7] libavutil/hwcontext_vulkan: Allocate vkFrame in one memory

2021-11-14 Thread Chen, Wenbin
> 9 Nov 2021, 10:18 by wenbin.c...@intel.com: > > > The vaapi can import external frame, but the planes of the external > > frames should be in the same drm object. I add a new function to > > allocate vkFrame in one memory and vulkan device will choose a way > > to allocate memory according to on