ffmpeg-devel@ffmpeg.org

2022-07-21 Thread Michael Niedermayer
Fixes: out of array access Fixes: 49271/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HEVC_fuzzer-5424984922652672 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/hevc_filter.c | 13 ++

[FFmpeg-devel] [PATCH 1/2] avcodec/tiff: Check tile_length and tile_width

2022-07-21 Thread Michael Niedermayer
Fixes: Division by 0 Fixes: 49235/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TIFF_fuzzer-5495613847896064 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/tiff.c | 3 +++ 1 file changed,

Re: [FFmpeg-devel] [PATCH] lavf/sr: fix the segmentation fault caused by incorrect input frame free.

2022-07-21 Thread Gyan Doshi
On 2022-07-22 10:52 am, Andreas Rheinhardt wrote: Guo, Yejun: -Original Message- From: ffmpeg-devel On Behalf Of Fu, Ting Sent: 2022年7月21日 17:57 To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH] lavf/sr: fix the segmentation fault caused by incorrec

Re: [FFmpeg-devel] [PATCH] lavf/sr: fix the segmentation fault caused by incorrect input frame free.

2022-07-21 Thread Andreas Rheinhardt
Guo, Yejun: > > > -Original Message- > From: ffmpeg-devel On Behalf Of Fu, Ting > Sent: 2022年7月21日 17:57 > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH] lavf/sr: fix the segmentation fault > caused by incorrect input frame free. > > Kindly ping >

Re: [FFmpeg-devel] [PATCH v11 10/13] lavu/hwcontext_qsv: make qsv hwdevice works with oneVPL

2022-07-21 Thread Xiang, Haihao
On Thu, 2022-07-21 at 23:19 +0100, Mark Thompson wrote: > On 20/07/2022 09:40, Xiang, Haihao wrote: > > From: Haihao Xiang > > > > In oneVPL, MFXLoad() and MFXCreateSession() are required to create a > > workable mfx session[1] > > > > Add config filters for D3D9/D3D11 session (galinart) > > >

Re: [FFmpeg-devel] [PATCH v10 10/13] lavu/hwcontext_qsv: make qsv hwdevice works with oneVPL

2022-07-21 Thread Xiang, Haihao
On Thu, 2022-07-21 at 20:30 +, Soft Works wrote: > > -Original Message- > > From: ffmpeg-devel On Behalf Of > > Xiang, Haihao > > Sent: Tuesday, July 19, 2022 9:19 AM > > To: an...@khirnov.net; ffmpeg-devel@ffmpeg.org > > Cc: Galin, Artem > > Subject: Re: [FFmpeg-devel] [PATCH v10 10/

Re: [FFmpeg-devel] [PATCH] lavf/sr: fix the segmentation fault caused by incorrect input frame free.

2022-07-21 Thread Guo, Yejun
-Original Message- From: ffmpeg-devel On Behalf Of Fu, Ting Sent: 2022年7月21日 17:57 To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH] lavf/sr: fix the segmentation fault caused by incorrect input frame free. Kindly ping > -Original Message- > F

[FFmpeg-devel] [PATCH v3 4/4] avfilter/hwmap, hwupload: use new av_hwdevice_ctx_get_or_create_derived method

2022-07-21 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_hwmap.c| 4 ++-- libavfilter/vf_hwupload.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libavfilter/vf_hwmap.c b/libavfilter/vf_hwmap.c index 2e03dfc1fe..b79cf6732c 100644 --- a/libavfilter/vf_hwmap.c +++

[FFmpeg-devel] [PATCH v3 3/4] lavu: bump minor version and add doc/APIchanges entry for av_hwdevice_ctx_get_or_create_derived()

2022-07-21 Thread softworkz
From: softworkz Signed-off-by: softworkz --- doc/APIchanges | 6 ++ libavutil/version.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/APIchanges b/doc/APIchanges index b3563cd528..ba21f60953 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -14,6 +14,12 @@

[FFmpeg-devel] [PATCH v3 2/4] avutils/hwcontext: add derive-device function which searches for existing devices in both directions

2022-07-21 Thread softworkz
From: softworkz The test /libavutil/tests/hwdevice checks that when deriving a device from a source device and then deriving back to the type of the source device, the result is matching the original source device, i.e. the derivation mechanism doesn't create a new device in this case. Previousl

[FFmpeg-devel] [PATCH v3 1/4] avutil/buffer: add av_ref_from_buffer() function

2022-07-21 Thread softworkz
From: softworkz This allows to create AVBufferRef from AVBuffer directly. Signed-off-by: softworkz --- libavutil/buffer.c | 16 libavutil/buffer.h | 8 2 files changed, 24 insertions(+) diff --git a/libavutil/buffer.c b/libavutil/buffer.c index 54590be566..f9df0ad6e

[FFmpeg-devel] [PATCH v3 0/4] Add derive-device function which searches for existing devices in both directions

2022-07-21 Thread ffmpegagent
This is an updated version of: [PATCH v4 1/1] avutils/hwcontext: When deriving a hwdevice, search for existing device in both directions There has been an objection that the earlier patchset would change API behavior, and that this change should be limited to ffmpeg cli. To achieve this, the API

Re: [FFmpeg-devel] [PATCH v11 10/13] lavu/hwcontext_qsv: make qsv hwdevice works with oneVPL

2022-07-21 Thread Mark Thompson
On 20/07/2022 09:40, Xiang, Haihao wrote: From: Haihao Xiang In oneVPL, MFXLoad() and MFXCreateSession() are required to create a workable mfx session[1] Add config filters for D3D9/D3D11 session (galinart) The default device is changed to d3d11va for oneVPL when both d3d11va and dxva2 are en

Re: [FFmpeg-devel] [PATCH v5 0/6] Implement SEI parsing for QSV decoders

2022-07-21 Thread Andreas Rheinhardt
Xiang, Haihao: > On Fri, 2022-07-01 at 20:48 +, ffmpegagent wrote: >> Missing SEI information has always been a major drawback when using the QSV >> decoders. I used to think that there's no chance to get at the data without >> explicit implementation from the MSDK side (or doing something weir

Re: [FFmpeg-devel] [PATCH 2/5] lavc/aarch64: Add neon implementation for sse4

2022-07-21 Thread Martin Storsjö
On Fri, 15 Jul 2022, Hubert Mazur wrote: Provide neon implementation for sse4 function. Performance comparison tests are shown below. - sse_2_c: 74.0 - sse_2_neon: 24.0 Benchmarks and tests are run with checkasm tool on AWS Graviton 3. Signed-off-by: Hubert Mazur --- libavcodec/aarch64/me_cm

Re: [FFmpeg-devel] [PATCH 3/8] avutil/mem: Add av_fast_realloc_array()

2022-07-21 Thread Tomas Härdin
tis 2022-07-12 klockan 16:12 +0200 skrev Andreas Rheinhardt: > > Anton really dislikes the av_fast_* naming and instead wants this to > be > called av_realloc_array_reuse(). I don't care either way. Any more > opinions on this (or on the patch itself)? That's going to cause some "impedance mismat

Re: [FFmpeg-devel] [PATCH v5 0/6] Implement SEI parsing for QSV decoders

2022-07-21 Thread Soft Works
> -Original Message- > From: Xiang, Haihao > Sent: Tuesday, July 19, 2022 8:55 AM > To: ffmpeg-devel@ffmpeg.org > Cc: andreas.rheinha...@outlook.com; kier...@obe.tv; haihao.xiang-at- > intel@ffmpeg.org; softwo...@hotmail.com > Subject: Re: [FFmpeg-devel] [PATCH v5 0/6] Implement SEI

Re: [FFmpeg-devel] [PATCH v2 3/3] hwcontext_vaapi: #if guard VAAPI_DRM specifics

2022-07-21 Thread Mark Thompson
On 20/07/2022 11:56, Emil Velikov wrote: From: Emil Velikov Similar to the VAAPI_X11 bits, guard all the VAAPI_DRM parts behind a compiler guard. Signed-off-by: Emil Velikov --- libavutil/hwcontext_vaapi.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/libavutil/hwcontext_

Re: [FFmpeg-devel] [PATCH v2 0/3] hwcontext_vaapi: dlopen libva-x11 and libva-drm

2022-07-21 Thread Mark Thompson
On 20/07/2022 17:41, Emil Velikov wrote: On Tue, 19 Jul 2022 at 19:16, Nicolas George wrote: Emil Velikov (12022-07-19): As you may know the libva* set of libraries share an internal ABI between them. In a resent libva commit, the va_fool API was removed. Thus if one is to mix different vers

Re: [FFmpeg-devel] [PATCH v10 10/13] lavu/hwcontext_qsv: make qsv hwdevice works with oneVPL

2022-07-21 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Xiang, Haihao > Sent: Tuesday, July 19, 2022 9:19 AM > To: an...@khirnov.net; ffmpeg-devel@ffmpeg.org > Cc: Galin, Artem > Subject: Re: [FFmpeg-devel] [PATCH v10 10/13] lavu/hwcontext_qsv: > make qsv hwdevice works with oneVPL >

Re: [FFmpeg-devel] [PATCH 5/6] avcodec/ffv1dec: consider run increase in minimal golomb frame size

2022-07-21 Thread Andreas Rheinhardt
Michael Niedermayer: > On Thu, Jul 21, 2022 at 12:17:22AM +0200, Andreas Rheinhardt wrote: >> Michael Niedermayer: >>> On Tue, Jul 19, 2022 at 08:37:38AM -0300, James Almer wrote: On 7/19/2022 8:34 AM, Michael Niedermayer wrote: > Fixes: Timeout > Fixes: > 49160/clusterf

[FFmpeg-devel] [PATCH] avfilter/vf_showinfo: remove backspaces

2022-07-21 Thread Michael Niedermayer
They mess with storing editing and comparing the results Signed-off-by: Michael Niedermayer --- libavfilter/vf_showinfo.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index 2c8514fc80..9b4a9fc981 100644 ---

Re: [FFmpeg-devel] [PATCH 3/6] avcodec/mss4: Check image size with av_image_check_size2()

2022-07-21 Thread Michael Niedermayer
On Sun, Jul 03, 2022 at 02:31:49AM +0200, Michael Niedermayer wrote: > Fixes: Timeout > Fixes: > 48418/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MTS2_fuzzer-4834851466903552 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed

Re: [FFmpeg-devel] [PATCH 2/3] avformat/mpc8: Check and propagate more errors

2022-07-21 Thread Michael Niedermayer
On Mon, Jul 11, 2022 at 11:44:16PM +0200, Michael Niedermayer wrote: > Fixes: Timeout > Fixes: > 48846/clusterfuzz-testcase-minimized-ffmpeg_dem_MPC8_fuzzer-5278532493770752 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-by:

Re: [FFmpeg-devel] [PATCH 3/3] avformat/flvdec: Check for EOF in index reading

2022-07-21 Thread Michael Niedermayer
On Tue, Jul 12, 2022 at 08:43:22PM +0200, Michael Niedermayer wrote: > Fixes: Timeout > Fixes: > 47992/clusterfuzz-testcase-minimized-ffmpeg_dem_LIVE_FLV_fuzzer-6020443879899136 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off

Re: [FFmpeg-devel] [PATCH 2/3] avformat/nutdec: Check get_packetheader() in mainheader

2022-07-21 Thread Michael Niedermayer
On Tue, Jul 12, 2022 at 08:43:21PM +0200, Michael Niedermayer wrote: > Fixes; Timeout > Fixes: > 48794/clusterfuzz-testcase-minimized-ffmpeg_dem_NUT_fuzzer-6524604713140224 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-by:

Re: [FFmpeg-devel] [PATCH 1/2] avformat/mov: Check for EOF in mov_read_iloc()

2022-07-21 Thread Michael Niedermayer
On Wed, Jul 20, 2022 at 01:34:18AM +0200, Michael Niedermayer wrote: > Fixes: Timeout > Fixes: > 49216/clusterfuzz-testcase-minimized-ffmpeg_IO_DEMUXER_fuzzer-6563000529584128 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-b

Re: [FFmpeg-devel] [PATCH 6/6] tools/target_dec_fuzzer: Adjust threshold for MWSC

2022-07-21 Thread Michael Niedermayer
On Tue, Jul 19, 2022 at 01:34:53PM +0200, Michael Niedermayer wrote: > Fixes: Timeout > Fixes: > 49172/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MWSC_fuzzer-5213749102903296 > > Signed-off-by: Michael Niedermayer > --- > tools/target_dec_fuzzer.c | 1 + > 1 file changed, 1 insertion(+)

Re: [FFmpeg-devel] [PATCH 2/6] avcodec/exr: Check x/ysize

2022-07-21 Thread Michael Niedermayer
On Tue, Jul 19, 2022 at 01:34:49PM +0200, Michael Niedermayer wrote: > Fixes: OOM > Fixes: > 48911/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_EXR_fuzzer-6352002510094336 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-

Re: [FFmpeg-devel] [PATCH 4/6] avformat/asfdec_f: Use 64bit for packet start time

2022-07-21 Thread Michael Niedermayer
On Tue, Jul 19, 2022 at 01:34:51PM +0200, Michael Niedermayer wrote: > Fixes: signed integer overflow: 2147483647 + 32 cannot be represented in type > 'int' > Fixes: > 49014/clusterfuzz-testcase-minimized-ffmpeg_dem_ASF_fuzzer-6314973315334144 > > Found-by: continuous fuzzing process > https://

Re: [FFmpeg-devel] FFmpeg 5.1

2022-07-21 Thread Michael Niedermayer
On Thu, Jul 07, 2022 at 10:47:57PM +0200, Michael Niedermayer wrote: > On Tue, Jun 07, 2022 at 01:35:00PM +0200, Michael Niedermayer wrote: > > Hi all > > > > As was discussed previously the 5.1 release should be in june/july > > That means in the next weeks probably! > > If you know of any regres

Re: [FFmpeg-devel] [PATCH v2 4/4] avformat/argo_cvg: expose loop/reverb/checksum via metadata

2022-07-21 Thread Zane van Iperen
On 21/7/22 08:00, Andreas Rheinhardt wrote: +if (av_dict_set_int(&st->metadata, "loop", ctx->header.loop, 0) < 0) +return AVERROR(ENOMEM); + +if (av_dict_set_int(&st->metadata, "reverb", ctx->header.reverb, 0) < 0) +return AVERROR(ENOMEM); + +if (av_dict_set_int(&s

Re: [FFmpeg-devel] libavformat/movenc: Is packets being more than INT_MAX apart always an error?

2022-07-21 Thread facefunk
Wow! Thanks! That really works. I had no idea we could just play with timescale like that. On Wed, 20 Jul 2022 at 13:41, "zhilizhao(赵志立)" wrote: > > > > On Jul 20, 2022, at 8:18 PM, facefunk wrote: > > > > It's commonly the case with forced subtitle tracks that samples are more > > than INT_MA

Re: [FFmpeg-devel] [PATCH] lavf/sr: fix the segmentation fault caused by incorrect input frame free.

2022-07-21 Thread Fu, Ting
Kindly ping > -Original Message- > From: ffmpeg-devel On Behalf Of Paul B > Mahol > Sent: Monday, June 27, 2022 07:03 PM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH] lavf/sr: fix the segmentation fault caused > by incorrect input frame free. > >

[FFmpeg-devel] [PATCH V2] lavf/dnn: dump OpenVINO model input/output names to OVMdel struct.

2022-07-21 Thread Ting Fu
Dump all input/output names to OVModel struct. In case other funcs use them for reporting errors or locating issues. Signed-off-by: Ting Fu --- libavfilter/dnn/dnn_backend_openvino.c | 66 +++--- 1 file changed, 48 insertions(+), 18 deletions(-) diff --git a/libavfilter/dnn/