[FFmpeg-devel] [PATCH] nv-codec-headers: Fix CUdeviceptr definition for ARM64 CPU

2020-09-29 Thread Martin Finkel
Hi, Please see the patch attached. Thanks, Martin 0001-Fix-CUdeviceptr-definition-for-ARM64-CPU.patch Description: Binary data ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe,

Re: [FFmpeg-devel] [PATCH V3 2/2] avcodec: add av1 VAAPI decoder

2020-09-29 Thread Mark Thompson
On 09/09/2020 04:39, Fei Wang wrote: Example cmdline: ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -v verbose \ -c:v av1 -i input.ivf -pix_fmt yuv420p -vsync passthrough -f md5 \ -y out.md5 Signed-off-by: Fei Wang --- Changelog | 1 + configure

Re: [FFmpeg-devel] [PATCH v2 0/7] HEVC native support for Screen content coding

2020-09-29 Thread Mark Thompson
On 10/09/2020 07:42, Haihao Xiang wrote: Resend Linjie's patchset with the updates. As a part of the support for VA-API HEVC SCC decoding (gen12, Tiger Lake+). The full support could be accessed in: https://github.com/intel-media-ci/ffmpeg/pull/231 The VAAPI part would be provided later once

[FFmpeg-devel] [PATCH 1/2] avcodec/cbs_av1: ensure Sequence Header unit content is always reference counted

2020-09-29 Thread James Almer
Prevents a NULL pointer dereference. Signed-off-by: James Almer --- libavcodec/cbs_av1.c | 4 1 file changed, 4 insertions(+) diff --git a/libavcodec/cbs_av1.c b/libavcodec/cbs_av1.c index c66757125f..aef8cf8e64 100644 --- a/libavcodec/cbs_av1.c +++ b/libavcodec/cbs_av1.c @@ -1043,6

[FFmpeg-devel] [PATCH 2/2] avcodec/cbs_h2645: remove dead code in cbs_h2645_replace_ps()

2020-09-29 Thread James Almer
Missed in 0720e15c0330f0f101c02d5c2c6548e964079f6d. PS units are now guaranteed to always be reference counter. Signed-off-by: James Almer --- libavcodec/cbs_h2645.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c index b6d77dd17f..434322492c

Re: [FFmpeg-devel] [PATCH 8/8] avcodec/av1dec: clean state on frame decoding errors

2020-09-29 Thread James Almer
On 9/29/2020 12:57 PM, Mark Thompson wrote: > On 25/09/2020 15:43, James Almer wrote: >> Fixes: member access within null pointer of type 'TileGroupInfo' (aka >> 'struct TileGroupInfo') >> Fixes: >> 25725/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AV1_fuzzer-5166692706287616 >> >> >>

Re: [FFmpeg-devel] [PATCH 5/8] avcodec/av1dec: parse dimensions from the sequence header in extradata

2020-09-29 Thread James Almer
On 9/29/2020 12:52 PM, Mark Thompson wrote: > On 25/09/2020 15:43, James Almer wrote: >> Signed-off-by: James Almer >> --- >>   libavcodec/av1dec.c | 10 ++ >>   1 file changed, 10 insertions(+) >> >> diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c >> index 0bb04a3e44..f6b9fbbac3

Re: [FFmpeg-devel] [PATCH 5/8] avcodec/av1dec: parse dimensions from the sequence header in extradata

2020-09-29 Thread Mark Thompson
On 25/09/2020 15:43, James Almer wrote: Signed-off-by: James Almer --- libavcodec/av1dec.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c index 0bb04a3e44..f6b9fbbac3 100644 --- a/libavcodec/av1dec.c +++ b/libavcodec/av1dec.c @@

[FFmpeg-devel] [PATCH 1/2] avcodec/dvenc: Fix undefined left shift of negative numbers

2020-09-29 Thread Andreas Rheinhardt
The earlier code was based on the assumption that AVFrame.linesize can not be negative. Fixes ticket #8280. Signed-off-by: Andreas Rheinhardt --- libavcodec/dvenc.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/libavcodec/dvenc.c

[FFmpeg-devel] [PATCH 2/2] swresample/audioconvert: Fix left shift of negative value

2020-09-29 Thread Andreas Rheinhardt
Fixes ticket #8219. Signed-off-by: Andreas Rheinhardt --- libswresample/audioconvert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswresample/audioconvert.c b/libswresample/audioconvert.c index d21fc8ef42..89ee7bfae3 100644 --- a/libswresample/audioconvert.c +++

Re: [FFmpeg-devel] [PATCH 1/8] avcodec/cbs: add a flush callback to CodedBitstreamType

2020-09-29 Thread Mark Thompson
On 25/09/2020 15:43, James Almer wrote: Used to reset the codec's private internal state. Signed-off-by: James Almer --- libavcodec/cbs.c | 6 ++ libavcodec/cbs.h | 5 + libavcodec/cbs_internal.h | 3 +++ 3 files changed, 14 insertions(+) diff --git

Re: [FFmpeg-devel] [PATCH 0/6] qsv: Fix compiler errors when using libmfx 2.0 (oneVPL)

2020-09-29 Thread Mark Thompson
On 16/09/2020 07:44, Haihao Xiang wrote: The oneAPI Video Processing Library (oneVPL) is a single interface for encode, decode and video processing, the obsolete features in Intel Media Software Development Kit are removed from oneVPL. The oneVPL specification:

Re: [FFmpeg-devel] [PATCH 8/8] avcodec/av1dec: clean state on frame decoding errors

2020-09-29 Thread Mark Thompson
On 25/09/2020 15:43, James Almer wrote: Fixes: member access within null pointer of type 'TileGroupInfo' (aka 'struct TileGroupInfo') Fixes: 25725/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AV1_fuzzer-5166692706287616 Found-by: continuous fuzzing process

Re: [FFmpeg-devel] [PATCH 7/8] avcodec/av1dec: call ff_cbs_flush() on decoder flush

2020-09-29 Thread Mark Thompson
On 25/09/2020 15:43, James Almer wrote: Signed-off-by: James Almer --- libavcodec/av1dec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c index a30a496b4c..07026b7aeb 100644 --- a/libavcodec/av1dec.c +++ b/libavcodec/av1dec.c @@ -854,6 +854,8

Re: [FFmpeg-devel] [PATCH V3 2/2] avcodec: add av1 VAAPI decoder

2020-09-29 Thread James Almer
On 9/9/2020 12:39 AM, Fei Wang wrote: > +static int vaapi_av1_decode_slice(AVCodecContext *avctx, > + const uint8_t *buffer, > + uint32_t size) > +{ > +const AV1DecContext *s = avctx->priv_data; > +VAAPIDecodePicture *pic =

Re: [FFmpeg-devel] [PATCH 1/6] qsv: add ${includedir}/mfx to the search path for old versions of libmfx

2020-09-29 Thread Mark Thompson
On 16/09/2020 07:44, Haihao Xiang wrote: ${includedir}/mfx has been added to Cflags in libmfx.pc for the current libmfx. We may add ${includedir}/mfx to the search path for olda versions of libmfx so that we may include foo.h instead of mfx/foo.h After applying this change, we won't need to

Re: [FFmpeg-devel] [PATCH 2/2] swresample/audioconvert: Fix left shift of negative value

2020-09-29 Thread Paul B Mahol
On Tue, Sep 29, 2020 at 05:52:44PM +0200, Andreas Rheinhardt wrote: > Fixes ticket #8219. > > Signed-off-by: Andreas Rheinhardt > --- > libswresample/audioconvert.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > lgtm > diff --git a/libswresample/audioconvert.c

Re: [FFmpeg-devel] [PATCH v2 0/7] HEVC native support for Screen content coding

2020-09-29 Thread Linjie Fu
On Tue, Sep 29, 2020 at 22:03 Mark Thompson wrote: > On 10/09/2020 07:42, Haihao Xiang wrote: > > > Resend Linjie's patchset with the updates. > > > > > > As a part of the support for VA-API HEVC SCC decoding (gen12, Tiger > > > Lake+). > > > > > > The full support could be accessed in: > > >

Re: [FFmpeg-devel] [PATCH] avfilter/setparams: add FF_FILTER_FLAG_HWFRAME_AWARE

2020-09-29 Thread Mark Thompson
On 28/09/2020 02:17, Pavel Koshevoy wrote: On Wed, Sep 23, 2020 at 1:32 PM Paul B Mahol wrote: On Mon, Sep 21, 2020 at 09:47:40PM -0600, Pavel Koshevoy wrote: Allow setparams to be used with hw backed frames and avoid an assertion failure in avfilter_config_links. ---

Re: [FFmpeg-devel] [PATCH 8/8] avcodec/av1dec: clean state on frame decoding errors

2020-09-29 Thread Mark Thompson
On 29/09/2020 17:17, James Almer wrote: On 9/29/2020 12:57 PM, Mark Thompson wrote: On 25/09/2020 15:43, James Almer wrote: Fixes: member access within null pointer of type 'TileGroupInfo' (aka 'struct TileGroupInfo') Fixes:

Re: [FFmpeg-devel] [PATCH] nv-codec-headers: Fix CUdeviceptr definition for ARM64 CPU

2020-09-29 Thread Timo Rothenpieler
applied, thanks ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-devel] [PATCH 4/9] avformat/mpegts: make sure mpegts_resync do not run out of the initially requested probe buffer

2020-09-29 Thread Marton Balint
Signed-off-by: Marton Balint --- libavformat/mpegts.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 50d4d5e9bc..432b1c3ea2 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -3051,10 +3051,11 @@ static int

[FFmpeg-devel] [PATCH 9/9] avformat/aviobuf: increase default read buffer size to 2*max_buffer_size for streamed data

2020-09-29 Thread Marton Balint
This should increase the effectiveness of ffio_ensure_seekback by reducing the number of buffer reallocations and memmoves/memcpys because even a small seekback window requires max_buffer_size+window_size buffer space. Signed-off-by: Marton Balint --- libavformat/aviobuf.c | 5 + 1 file

[FFmpeg-devel] [PATCH 1/9] avformat/aviobuf: write data into the IO buffer till the very end of the buffer

2020-09-29 Thread Marton Balint
There was an off-by-one error when checking if the IO buffer still has enough space till the end. One more byte can be safely written. Signed-off-by: Marton Balint --- libavformat/aviobuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/aviobuf.c

[FFmpeg-devel] [PATCH 2/9] avformat/aviobuf: check if requested seekback buffer is already read

2020-09-29 Thread Marton Balint
Existing code did not check if the requested seekback buffer is already read entirely. In this case, nothing has to be done to guarantee seekback. Signed-off-by: Marton Balint --- libavformat/aviobuf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/aviobuf.c

Re: [FFmpeg-devel] [PATCH] avfilter/setparams: add FF_FILTER_FLAG_HWFRAME_AWARE

2020-09-29 Thread Pavel Koshevoy
On Tue, Sep 29, 2020 at 12:14 PM Mark Thompson wrote: > On 29/09/2020 18:14, Pavel Koshevoy wrote: > > On Tue, Sep 29, 2020 at 10:09 AM Mark Thompson wrote: > > > > > > >> - Mark > >> > >> > > It's pretty much this use case, except I'm not using ffmpeg cli but the > > avfilter api to configure

[FFmpeg-devel] [PATCH 5/9] avformat/mpjpegdec: make sure we seek back to the ensured buffer

2020-09-29 Thread Marton Balint
It was possible for the old code to seek back before the most recently read data if start of a new multipart was across read boundaries. Now we read some small sections multiple times to avoid this, but that is OK. Signed-off-by: Marton Balint --- libavformat/mpjpegdec.c | 11 ++- 1

[FFmpeg-devel] [PATCH 3/9] avformat/aviobuf: fix checks in ffio_ensure_seekback

2020-09-29 Thread Marton Balint
The new buf_size was detemined too conservatively, maybe because of the off-by-one issue which was fixed recently in fill_buffer. We can safely substract 1 more from the new buffer size, because max_buffer_size space must only be guaranteed when we are reading the last byte of the requested

[FFmpeg-devel] [PATCH 6/9] avformat/aviobuf: discard part of the IO buffer in ffio_ensure_seekback if needed

2020-09-29 Thread Marton Balint
Previously ffio_ensure_seekback never flushed the buffer, so successive ffio_ensure_seekback calls were all respected. This could eventually cause unlimited memory and CPU usage if a demuxer called ffio_ensure_seekback on all it's read data. Most demuxers however only rely on being able to seek

[FFmpeg-devel] [PATCH 7/9] avformat/aviobuf: do not allocate a new buffer in ffio_ensure_seekback if not needed

2020-09-29 Thread Marton Balint
Let's move unread data to the start of the old buffer instead. Signed-off-by: Marton Balint --- libavformat/aviobuf.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index 75ddf52efc..2f1abe7d81 100644 ---

[FFmpeg-devel] [PATCH 8/9] avformat/aviobuf: fix indentation

2020-09-29 Thread Marton Balint
Signed-off-by: Marton Balint --- libavformat/aviobuf.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index 2f1abe7d81..c4195e310b 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -1019,14

Re: [FFmpeg-devel] [PATCH] avfilter/setparams: add FF_FILTER_FLAG_HWFRAME_AWARE

2020-09-29 Thread Mark Thompson
On 29/09/2020 18:14, Pavel Koshevoy wrote: On Tue, Sep 29, 2020 at 10:09 AM Mark Thompson wrote: On 28/09/2020 02:17, Pavel Koshevoy wrote: On Wed, Sep 23, 2020 at 1:32 PM Paul B Mahol wrote: On Mon, Sep 21, 2020 at 09:47:40PM -0600, Pavel Koshevoy wrote: Allow setparams to be used with

Re: [FFmpeg-devel] [PATCH 8/8] avcodec/av1dec: clean state on frame decoding errors

2020-09-29 Thread James Almer
On 9/29/2020 3:07 PM, Mark Thompson wrote: > On 29/09/2020 17:17, James Almer wrote: >> On 9/29/2020 12:57 PM, Mark Thompson wrote: >>> On 25/09/2020 15:43, James Almer wrote: Fixes: member access within null pointer of type 'TileGroupInfo' (aka 'struct TileGroupInfo') Fixes:

Re: [FFmpeg-devel] [PATCH 5/8] avcodec/av1dec: parse dimensions from the sequence header in extradata

2020-09-29 Thread Mark Thompson
On 29/09/2020 17:23, James Almer wrote: On 9/29/2020 12:52 PM, Mark Thompson wrote: On 25/09/2020 15:43, James Almer wrote: Signed-off-by: James Almer ---   libavcodec/av1dec.c | 10 ++   1 file changed, 10 insertions(+) diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c index

Re: [FFmpeg-devel] [PATCH] avfilter/setparams: add FF_FILTER_FLAG_HWFRAME_AWARE

2020-09-29 Thread Pavel Koshevoy
On Tue, Sep 29, 2020 at 10:09 AM Mark Thompson wrote: > On 28/09/2020 02:17, Pavel Koshevoy wrote: > > On Wed, Sep 23, 2020 at 1:32 PM Paul B Mahol wrote: > > > >> On Mon, Sep 21, 2020 at 09:47:40PM -0600, Pavel Koshevoy wrote: > >>> Allow setparams to be used with hw backed frames and > >>>

Re: [FFmpeg-devel] Question about HEIF/HEIC support

2020-09-29 Thread Dale Curtis
http://ffmpeg.org/pipermail/ffmpeg-devel/2019-November/252827.html was the last discussion on this. At the time I found it broke some mp4 files. - dale On Sat, Sep 26, 2020 at 4:37 AM Tom Needham <06needh...@gmail.com> wrote: > Hello > > I have spent some time researching the possibility of

[FFmpeg-devel] [PATCH 2/2] avcodec/mobiclip: Fix multiple integer overflows

2020-09-29 Thread Michael Niedermayer
Fixes: signed integer overflow: 872415232 * 7 cannot be represented in type 'int' Fixes: signed integer overflow: -2013265888 + -1744830464 cannot be represented in type 'int' Fixes: 25834/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MOBICLIP_fuzzer-5471406434025472 Found-by: continuous

[FFmpeg-devel] [PATCH 1/2] avcodec/adpcm: Check block align for AV_CODEC_ID_ADPCM_PSX

2020-09-29 Thread Michael Niedermayer
Regression since: ca49476ace90ddebc5f92d9d82297f77e528c21e Fixes: out of array write Fixes: 25786/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ADPCM_PSX_fuzzer-5704869380620288 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg

Re: [FFmpeg-devel] [PATCH 5/8] avcodec/av1dec: parse dimensions from the sequence header in extradata

2020-09-29 Thread James Almer
On 9/29/2020 3:10 PM, Mark Thompson wrote: > On 29/09/2020 17:23, James Almer wrote: >> On 9/29/2020 12:52 PM, Mark Thompson wrote: >>> On 25/09/2020 15:43, James Almer wrote: Signed-off-by: James Almer ---    libavcodec/av1dec.c | 10 ++    1 file changed, 10

Re: [FFmpeg-devel] [PATCH 9/9] avformat/aviobuf: increase default read buffer size to 2*max_buffer_size for streamed data

2020-09-29 Thread Paul B Mahol
On Tue, Sep 29, 2020 at 11:10:21PM +0200, Marton Balint wrote: > This should increase the effectiveness of ffio_ensure_seekback by reducing the > number of buffer reallocations and memmoves/memcpys because even a small > seekback window requires max_buffer_size+window_size buffer space. > >

Re: [FFmpeg-devel] [PATCH 7/8] avcodec/av1dec: call ff_cbs_flush() on decoder flush

2020-09-29 Thread James Almer
On 9/29/2020 12:58 PM, Mark Thompson wrote: > On 25/09/2020 15:43, James Almer wrote: >> Signed-off-by: James Almer >> --- >>   libavcodec/av1dec.c | 2 ++ >>   1 file changed, 2 insertions(+) >> >> diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c >> index a30a496b4c..07026b7aeb 100644 >>

Re: [FFmpeg-devel] [PATCH 1/8] avcodec/cbs: add a flush callback to CodedBitstreamType

2020-09-29 Thread James Almer
On 9/29/2020 12:50 PM, Mark Thompson wrote: > On 25/09/2020 15:43, James Almer wrote: >> Used to reset the codec's private internal state. >> >> Signed-off-by: James Almer >> --- >>   libavcodec/cbs.c  | 6 ++ >>   libavcodec/cbs.h  | 5 + >>   libavcodec/cbs_internal.h | 3

Re: [FFmpeg-devel] [PATCH V3 2/2] avcodec: add av1 VAAPI decoder

2020-09-29 Thread Wang, Fei W
> -Original Message- > From: ffmpeg-devel On Behalf Of Mark > Thompson > Sent: Wednesday, September 30, 2020 1:02 AM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH V3 2/2] avcodec: add av1 VAAPI decoder > > On 09/09/2020 04:39, Fei Wang wrote: > > Example cmdline: > >

Re: [FFmpeg-devel] [PATCH V2] dnn/native: add native support for dense

2020-09-29 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of Mingyu > Yin > Sent: 2020年9月22日 15:11 > To: ffmpeg-devel@ffmpeg.org > Subject: [FFmpeg-devel] [PATCH V2] dnn/native: add native support for dense > > Signed-off-by: Mingyu Yin > --- > libavfilter/dnn/Makefile