Re: [FFmpeg-devel] [PATCH V3 3/3] avfilter/dnn: unify the layer load function in native mode

2019-10-14 Thread Guo, Yejun
> -Original Message- > From: Guo, Yejun > Sent: Wednesday, October 09, 2019 10:08 PM > To: ffmpeg-devel@ffmpeg.org > Cc: Guo, Yejun > Subject: [PATCH V3 3/3] avfilter/dnn: unify the layer load function in native > mode > > Signed-off-by: Guo, Yejun > --- >

Re: [FFmpeg-devel] [PATCH] avcodec/mips: msa optimizations for vc1dsp

2019-10-14 Thread Shiyou Yin
>diff --git a/libavcodec/mips/vc1dsp_msa.c b/libavcodec/mips/vc1dsp_msa.c >new file mode 100644 >index 000..1619ea4 >--- /dev/null >+++ b/libavcodec/mips/vc1dsp_msa.c >@@ -0,0 +1,483 @@ >+/* >+ * Loongson SIMD optimized vc1dsp >+ * >+ * Copyright (c) 2019 Loongson Technology Corporation

[FFmpeg-devel] [PATCH] avcodec/h2645_parse: Reset nal_buffer_size on uninit

2019-10-14 Thread Andriy Gelman
From: Andriy Gelman Without reseting nal_buffer_size, av_fast_realloc will fail if ff_h2645_packet_split is called with the unitialized pkt as argument. --- libavcodec/h2645_parse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/h2645_parse.c b/libavcodec/h2645_parse.c index

Re: [FFmpeg-devel] [PATCH v5] avcodec/v210dec: add the frame and slice threading support

2019-10-14 Thread Limin Wang
On Mon, Oct 14, 2019 at 10:12:45PM +0200, Michael Niedermayer wrote: > On Sun, Oct 13, 2019 at 06:45:16AM +0800, Limin Wang wrote: > > On Sat, Oct 12, 2019 at 11:46:58PM +0200, Michael Niedermayer wrote: > > > On Sat, Oct 12, 2019 at 06:58:21PM +0800, lance.lmw...@gmail.com wrote: > > > > From:

[FFmpeg-devel] [PATCH 3/3] avformat/vividas: Fix n_sb_blocks Check

2019-10-14 Thread Michael Niedermayer
Fixes: signed integer overflow: 1540265776 * 2 cannot be represented in type 'int' Fixes: 18160/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5758808818712576 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael

[FFmpeg-devel] [PATCH 2/3] avcodec/snowenc: Set mb_num to avoid ratecontrol floating point divisions by 0.0

2019-10-14 Thread Michael Niedermayer
Fixes: Ticket7990 Signed-off-by: Michael Niedermayer --- libavcodec/snowenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c index 4166ce4e1d..3f2a75a670 100644 --- a/libavcodec/snowenc.c +++ b/libavcodec/snowenc.c @@ -81,6 +81,7 @@

[FFmpeg-devel] [PATCH 1/3] avcodec/snowenc: Fix 2 undefined shifts

2019-10-14 Thread Michael Niedermayer
Fixes: Ticket7990 Signed-off-by: Michael Niedermayer --- libavcodec/snowenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c index df1729a083..4166ce4e1d 100644 --- a/libavcodec/snowenc.c +++ b/libavcodec/snowenc.c @@ -312,7

Re: [FFmpeg-devel] [PATCH] avfilter: fix typo in comments

2019-10-14 Thread Lou Logan
mypopy wrote: >On Wed, Oct 9, 2019 at 8:06 PM wrote: >> >> From: Zhao Zhili >> >> --- >> libavfilter/avfilter.h | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h >> index 9d70e7118b..3eaa8a4089 100644 >> ---

Re: [FFmpeg-devel] [FFmpeg-cvslog] avfilter/vf_lenscorrection: make width/height int

2019-10-14 Thread Michael Niedermayer
On Mon, Oct 14, 2019 at 06:16:21PM +, Paul B Mahol wrote: > ffmpeg | branch: master | Paul B Mahol | Mon Oct 14 > 20:14:03 2019 +0200| [79522411fa53b68743302d16d28156db95466a21] | committer: > Paul B Mahol > > avfilter/vf_lenscorrection: make width/height int > > Somehow previous correct

Re: [FFmpeg-devel] [PATCH v5] avcodec/v210dec: add the frame and slice threading support

2019-10-14 Thread Michael Niedermayer
On Sun, Oct 13, 2019 at 06:45:16AM +0800, Limin Wang wrote: > On Sat, Oct 12, 2019 at 11:46:58PM +0200, Michael Niedermayer wrote: > > On Sat, Oct 12, 2019 at 06:58:21PM +0800, lance.lmw...@gmail.com wrote: > > > From: Limin Wang > > > > > > The multithread is avoid one core cpu is full with

Re: [FFmpeg-devel] [PATCH 1/5] avcodec/binkaudio: Check sample rate

2019-10-14 Thread Michael Niedermayer
On Sun, Oct 13, 2019 at 10:51:49AM +1100, Peter Ross wrote: > On Sat, Oct 12, 2019 at 06:53:05PM -0300, James Almer wrote: > > On 10/12/2019 5:47 PM, Michael Niedermayer wrote: > > > On Fri, Oct 11, 2019 at 08:51:54PM +1100, Peter Ross wrote: > > >> On Fri, Oct 11, 2019 at 12:40:07AM +0200,

Re: [FFmpeg-devel] [PATCH 4/4] tools/target_dec_fuzzer: Also fuzz keyframe & disposal flags

2019-10-14 Thread Michael Niedermayer
On Sat, Oct 12, 2019 at 06:00:39PM -0300, James Almer wrote: > On 10/12/2019 5:34 PM, Michael Niedermayer wrote: > > This should improve coverage > > > > Signed-off-by: Michael Niedermayer > > --- > > tools/target_dec_fuzzer.c | 4 > > 1 file changed, 4 insertions(+) > > > > diff --git

Re: [FFmpeg-devel] [FFmpeg-cvslog] avfilter/vf_lenscorrection: fix division by zero

2019-10-14 Thread Michael Niedermayer
On Sun, Oct 13, 2019 at 09:30:42PM +, Paul B Mahol wrote: > ffmpeg | branch: master | Paul B Mahol | Sun Oct 13 > 23:28:16 2019 +0200| [19587c9332f5be4f6bc6d7b2b8ef3fd21dfeaa01] | committer: > Paul B Mahol > > avfilter/vf_lenscorrection: fix division by zero > > Fixes #8265 > > >

Re: [FFmpeg-devel] [PATCH] avcodec/nvenc: multiple reference frames support

2019-10-14 Thread Timo Rothenpieler
On 14.10.2019 17:43, Hendrik Leppkes wrote: Since some users seem to have blindly passed -refs to their commandline which now fails without really telling them why, any thoughts on moving the capability check error messages onto a high log level so that they are shown by default, since they are

Re: [FFmpeg-devel] [PATCH] avcodec/nvenc: multiple reference frames support

2019-10-14 Thread Hendrik Leppkes
On Fri, Sep 27, 2019 at 8:07 PM Timo Rothenpieler wrote: > > applied, but after some discussion on IRC, I opted to rename the current > -refs option to -dpb_size, and use -refs for this one. > > -refs now matches what libx264 uses it for and what probably the > majority of users expect. Since

Re: [FFmpeg-devel] [PATCH] ffprobe: fix output of packets_and_frames section in JSON format

2019-10-14 Thread James Almer
On 10/11/2019 1:36 PM, James Almer wrote: > The "type" entry was hardcoded with an trailing comma, even if it was > the only entry in the section. > > Fixes ticket #8228. > > Signed-off-by: James Almer > --- > fftools/ffprobe.c | 10 +++--- > 1 file changed, 7 insertions(+), 3 deletions(-)

[FFmpeg-devel] [PATCH v5 3/4] lavc/libxavs2: optimize using of spaces and indents

2019-10-14 Thread hwren
Signed-off-by: hwren --- libavcodec/libxavs2.c | 51 +++ 1 file changed, 23 insertions(+), 28 deletions(-) diff --git a/libavcodec/libxavs2.c b/libavcodec/libxavs2.c index b5c07ec..8077607 100644 --- a/libavcodec/libxavs2.c +++

[FFmpeg-devel] [PATCH v5 2/4] lavc/libxavs2: optimize data access

2019-10-14 Thread hwren
Optimize data access from multiplication to iteration. Signed-off-by: hwren --- libavcodec/libxavs2.c | 45 + 1 file changed, 29 insertions(+), 16 deletions(-) diff --git a/libavcodec/libxavs2.c b/libavcodec/libxavs2.c index 0179a1e..b5c07ec 100644

[FFmpeg-devel] [PATCH v5 1/4] lavc/libxavs2: fix parameter setting result determination

2019-10-14 Thread hwren
Signed-off-by: hwren --- libavcodec/libxavs2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/libxavs2.c b/libavcodec/libxavs2.c index d5c4557..0179a1e 100644 --- a/libavcodec/libxavs2.c +++ b/libavcodec/libxavs2.c @@ -31,7 +31,7 @@ int err; \

[FFmpeg-devel] [PATCH v5 4/4] lavc/libxavs2: replace 'FrameRate' with 'fps'

2019-10-14 Thread hwren
Remove deprecated parameter FrameRate (frame rate code) and use fps (frame rate) instead. Avoid encoder warnings. Signed-off-by: hwren --- libavcodec/libxavs2.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/libavcodec/libxavs2.c b/libavcodec/libxavs2.c index

Re: [FFmpeg-devel] [PATCH v4 4/4] lavc/libxavs2: replace 'FrameRate' with 'fps'

2019-10-14 Thread hwren
Sorry, these patches were sent by accident, the changes will be in the new version. Huiwen Ren At 2019-10-14 21:15:33, "hwren" wrote: >Remove deprecated parameter FrameRate (frame rate code) and use fps (frame >rate) instead. >Avoid encoder warnings. > >Signed-off-by: hwren >--- >

[FFmpeg-devel] [PATCH v4 4/4] lavc/libxavs2: replace 'FrameRate' with 'fps'

2019-10-14 Thread hwren
Remove deprecated parameter FrameRate (frame rate code) and use fps (frame rate) instead. Avoid encoder warnings. Signed-off-by: hwren --- libavcodec/libxavs2.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/libavcodec/libxavs2.c b/libavcodec/libxavs2.c index

[FFmpeg-devel] [PATCH v4 3/4] lavc/libxavs2: optimize using of spaces and indents

2019-10-14 Thread hwren
Signed-off-by: hwren --- libavcodec/libxavs2.c | 51 +++ 1 file changed, 23 insertions(+), 28 deletions(-) diff --git a/libavcodec/libxavs2.c b/libavcodec/libxavs2.c index b5c07ec..8077607 100644 --- a/libavcodec/libxavs2.c +++

[FFmpeg-devel] [PATCH v4 2/4] lavc/libxavs2: optimize data access

2019-10-14 Thread hwren
Optimize data access from multiplication to iteration. Signed-off-by: hwren --- libavcodec/libxavs2.c | 45 + 1 file changed, 29 insertions(+), 16 deletions(-) diff --git a/libavcodec/libxavs2.c b/libavcodec/libxavs2.c index 0179a1e..b5c07ec 100644

Re: [FFmpeg-devel] [PATCH v3 4/4] lavc/libxavs2: replace 'FrameRate' with 'fps'

2019-10-14 Thread hwren
At 2019-10-14 19:22:38, "Moritz Barsnick" wrote: >On Mon, Oct 14, 2019 at 14:52:44 +0800, hwr...@126.com wrote: >> From: hwren >> +float framerate; >[...] >> +if (avctx->framerate.den > 0 && avctx->framerate.num > 0) { >> +framerate = (float)avctx->framerate.num / >>

Re: [FFmpeg-devel] [PATCH v3 4/4] lavc/libxavs2: replace 'FrameRate' with 'fps'

2019-10-14 Thread Moritz Barsnick
On Mon, Oct 14, 2019 at 14:52:44 +0800, hwr...@126.com wrote: > From: hwren > +float framerate; [...] > +if (avctx->framerate.den > 0 && avctx->framerate.num > 0) { > +framerate = (float)avctx->framerate.num / > (float)avctx->framerate.den; > +} It should suffice to cast

Re: [FFmpeg-devel] [FFmpeg-cvslog] avfilter/vf_scroll: add support for commands

2019-10-14 Thread Paul B Mahol
On 10/14/19, Nicolas George wrote: > Paul B Mahol (12019-10-14): >> ffmpeg | branch: master | Paul B Mahol | Tue Oct 8 >> 13:18:12 2019 +0200| [7fcb84165e2229733cafa85ee2b82ce3fc2cbdb8] | >> committer: Paul B Mahol >> >> avfilter/vf_scroll: add support for commands >> >> >

Re: [FFmpeg-devel] [FFmpeg-cvslog] avfilter/vf_scroll: add support for commands

2019-10-14 Thread Nicolas George
Paul B Mahol (12019-10-14): > ffmpeg | branch: master | Paul B Mahol | Tue Oct 8 > 13:18:12 2019 +0200| [7fcb84165e2229733cafa85ee2b82ce3fc2cbdb8] | committer: > Paul B Mahol > > avfilter/vf_scroll: add support for commands > > >

[FFmpeg-devel] [PATCH v1 1/4] avfilter/vf_unsharp: rename config_props -> config_input, link -> inlink

2019-10-14 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/vf_unsharp.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libavfilter/vf_unsharp.c b/libavfilter/vf_unsharp.c index af05833a5d..95b4968d41 100644 --- a/libavfilter/vf_unsharp.c +++

[FFmpeg-devel] [PATCH v1 2/4] avfilter/vf_unsharp: add 10bit support

2019-10-14 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/unsharp.h| 3 + libavfilter/vf_unsharp.c | 162 +-- 2 files changed, 90 insertions(+), 75 deletions(-) diff --git a/libavfilter/unsharp.h b/libavfilter/unsharp.h index a60b30f31a..253e32dd19

[FFmpeg-devel] [PATCH v1 3/4] avfilter/vf_unsharp: activate more pixel format which tested by ffplay

2019-10-14 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/vf_unsharp.c | 4 1 file changed, 4 insertions(+) diff --git a/libavfilter/vf_unsharp.c b/libavfilter/vf_unsharp.c index 751bafe73a..aa83a6bd7c 100644 --- a/libavfilter/vf_unsharp.c +++ b/libavfilter/vf_unsharp.c @@ -201,6

[FFmpeg-devel] [PATCH v1 4/4] fate/filter-video: add 10bit test for unsharp filter

2019-10-14 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- tests/fate/filter-video.mak | 3 ++ tests/ref/fate/filter-unsharp-yuv420p10 | 55 + 2 files changed, 58 insertions(+) create mode 100644 tests/ref/fate/filter-unsharp-yuv420p10 diff --git

Re: [FFmpeg-devel] [PATCH] avfilter/vf_bwdif: fix heap-buffer overflow

2019-10-14 Thread Thomas Mundt
Am So., 13. Okt. 2019 um 23:22 Uhr schrieb Paul B Mahol : > Fixes #8261 > > Signed-off-by: Paul B Mahol > --- > libavfilter/vf_bwdif.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/libavfilter/vf_bwdif.c b/libavfilter/vf_bwdif.c > index 37165584cf..b6aed7a450

Re: [FFmpeg-devel] [PATCH 1/4] tools/target_dec_fuzzer: Also fuzz block_align

2019-10-14 Thread Michael Niedermayer
On Sat, Oct 12, 2019 at 10:34:00PM +0200, Michael Niedermayer wrote: > This should improve coverage > > Signed-off-by: Michael Niedermayer > --- > tools/target_dec_fuzzer.c | 1 + > 1 file changed, 1 insertion(+) will apply this and the next patch of this set as the fuzzer in the last few days

Re: [FFmpeg-devel] [PATCH v2 1/5] avformat/chromaprint: Fix fp_format option

2019-10-14 Thread Gyan
On 13-10-2019 06:56 PM, Gyan wrote: On 06-10-2019 11:19 AM, Andriy Gelman wrote: From: Andriy Gelman The fp_format option was incorrectly declared, meaning that it could not be set on the cli (via recommended settings raw/compressed/base64). This is fixed in the commit. ---  

Re: [FFmpeg-devel] [PATCH v2 3/5] avformat/chromaprint: Improve logging message

2019-10-14 Thread Gyan
On 13-10-2019 06:55 PM, Gyan wrote: On 06-10-2019 11:19 AM, Andriy Gelman wrote: From: Andriy Gelman Setting silence_threshold requires that -algorithm 3 option is also set. Add this to the logging message. ---   libavformat/chromaprint.c | 2 +-   1 file changed, 1 insertion(+), 1

[FFmpeg-devel] [PATCH v3 2/4] lavc/libxavs2: optimize data access

2019-10-14 Thread hwrenx
From: hwren Optimize data access from multiplication to iteration. Signed-off-by: hwren --- libavcodec/libxavs2.c | 45 + 1 file changed, 29 insertions(+), 16 deletions(-) diff --git a/libavcodec/libxavs2.c b/libavcodec/libxavs2.c index

[FFmpeg-devel] [PATCH v3 3/4] lavc/libxavs2: optimize using of spaces and indents

2019-10-14 Thread hwrenx
From: hwren Signed-off-by: hwren --- libavcodec/libxavs2.c | 51 +++ 1 file changed, 23 insertions(+), 28 deletions(-) diff --git a/libavcodec/libxavs2.c b/libavcodec/libxavs2.c index b5c07ec..8077607 100644 --- a/libavcodec/libxavs2.c +++

[FFmpeg-devel] [PATCH v3 1/4] lavc/libxavs2: fix parameter setting result determination

2019-10-14 Thread hwrenx
From: hwren Signed-off-by: hwren --- libavcodec/libxavs2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/libxavs2.c b/libavcodec/libxavs2.c index d5c4557..0179a1e 100644 --- a/libavcodec/libxavs2.c +++ b/libavcodec/libxavs2.c @@ -31,7 +31,7 @@ int err; \

[FFmpeg-devel] [PATCH v3 4/4] lavc/libxavs2: replace 'FrameRate' with 'fps'

2019-10-14 Thread hwrenx
From: hwren Remove deprecated parameter FrameRate (frame rate code) and use fps (frame rate) instead. Avoid encoder warnings. Signed-off-by: hwren --- libavcodec/libxavs2.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/libavcodec/libxavs2.c