Re: [FFmpeg-devel] [PATCH v5] avutil/mips: Avoid instruction exception caused by gssqc1/gslqc1.

2019-07-31 Thread Reimar Döffinger
Looks good to me On 31.07.2019, at 03:30, Shiyou Yin wrote: > Ensure the address accesed by gssqc1/gslqc1 are 16-byte aligned. > --- > libavcodec/mips/simple_idct_mmi.c | 2 +- > libavutil/mips/mmiutils.h | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/libavcod

[FFmpeg-devel] [PATCH V2] avfilter/vf_convolution: add x86 SIMD for filter_3x3()

2019-07-31 Thread Ruiling Song
Tested using a simple command (apply edge enhance): ./ffmpeg_g -i ~/Downloads/bbb_sunflower_1080p_30fps_normal.mp4 \ -vf convolution="0 0 0 -1 1 0 0 0 0:0 0 0 -1 1 0 0 0 0:0 0 0 -1 1 0 0 0 0:0 0 0 -1 1 0 0 0 0:5:1:1:1:0:128:128:128" \ -an -vframes 1000 -f null /dev/null The fps increase from 15

Re: [FFmpeg-devel] [PATCH] avfilter/vf_convolution: add x86 SIMD for filter_3x3()

2019-07-31 Thread Song, Ruiling
> -Original Message- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf > Of Paul B Mahol > Sent: Wednesday, July 17, 2019 8:42 PM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH] avfilter/vf_convolution: add x86

Re: [FFmpeg-devel] [PATCH] avformat/hlsenc: merge mpegts and fmp4 workflow to one workflow

2019-07-31 Thread Liu Steven
ignore this patch please, i will resend the v2 version. > 在 2019年7月31日,下午2:38,Steven Liu 写道: > > write mpegts or fmp4 context into buffer, and flush the buffer into > output file when split fragment. merge two format split workflow into > one workflow > > Signed-off-by: Steven Liu > --- > liba

[FFmpeg-devel] [PATCH v2] avformat/hlsenc: merge mpegts and fmp4 workflow to one workflow

2019-07-31 Thread Steven Liu
write mpegts or fmp4 context into buffer, and flush the buffer into output file when split fragment. merge two format split workflow into one workflow Signed-off-by: Steven Liu --- libavformat/hlsenc.c | 200 --- 1 file changed, 92 insertions(+), 108 delet

Re: [FFmpeg-devel] [PATCH v15 1/2] lavc/svt_hevc: add libsvt hevc encoder wrapper

2019-07-31 Thread Sun, Jing A
-Original Message- From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of Li, Zhong Sent: Wednesday, July 31, 2019 11:33 AM To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH v15 1/2] lavc/svt_hevc: add libsvt hevc encoder wrapper > > >

[FFmpeg-devel] [PATCH v16 2/2] doc: Add libsvt_hevc encoder docs

2019-07-31 Thread Jing Sun
Add docs for libsvt_hevc encoder in encoders.texi and general.texi Signed-off-by: Jun Zhao Signed-off-by: Zhengxu Huang Signed-off-by: Hassene Tmar Signed-off-by: Jing Sun --- doc/encoders.texi | 149 ++ doc/general.texi | 8 +++ 2 files

[FFmpeg-devel] [PATCH v16 1/2] lavc/svt_hevc: add libsvt hevc encoder wrapper

2019-07-31 Thread Jing Sun
Signed-off-by: Zhengxu Huang Signed-off-by: Hassene Tmar Signed-off-by: Jun Zhao Signed-off-by: Jing Sun --- configure| 4 + libavcodec/Makefile | 1 + libavcodec/allcodecs.c | 1 + libavcodec/libsvt_hevc.c | 501 +++ lib

Re: [FFmpeg-devel] [PATCH v15 1/2] lavc/svt_hevc: add libsvt hevc encoder wrapper

2019-07-31 Thread Sun, Jing A
-Original Message- From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of James Almer Sent: Wednesday, July 31, 2019 11:40 AM To: ffmpeg-devel@ffmpeg.org Subject: Re: [FFmpeg-devel] [PATCH v15 1/2] lavc/svt_hevc: add libsvt hevc encoder wrapper > Simply remove the void*

[FFmpeg-devel] [PATCH 1/3] tools/target_dec_fuzzer: Limit number off all pixels decoded

2019-07-31 Thread Michael Niedermayer
This should reduces the number of uninteresting timeouts encountered Signed-off-by: Michael Niedermayer --- tools/target_dec_fuzzer.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c index 8ba25b4e8a..0c398da95b 10064

[FFmpeg-devel] [PATCH 2/3] tools/target_dec_fuzzer: Assert that max pixels is not violated

2019-07-31 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- tools/target_dec_fuzzer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c index 0c398da95b..a3c735e339 100644 --- a/tools/target_dec_fuzzer.c +++ b/tools/target_dec_fuzzer.c @@ -259,6 +259,8 @@ int

[FFmpeg-devel] [PATCH 3/3] tools/target_dec_fuzzer: Print max_pixels and iterations at the end

2019-07-31 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- tools/target_dec_fuzzer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c index a3c735e339..56a8a40e68 100644 --- a/tools/target_dec_fuzzer.c +++ b/tools/target_dec_fuzzer.c @@ -287,6 +287,8 @@ maxi

Re: [FFmpeg-devel] [PATCH 2/3] avformat: Support s337m in mxf/wav/w64

2019-07-31 Thread Tomas Härdin
tis 2019-07-30 klockan 21:07 +0200 skrev Carl Eugen Hoyos: > Am Di., 30. Juli 2019 um 21:04 Uhr schrieb Tomas Härdin : > > tis 2019-07-30 klockan 15:24 +0200 skrev Carl Eugen Hoyos: > > > > > > > Am 30.07.2019 um 14:02 schrieb Tomas Härdin : > > > > > > > > fre 2019-07-26 klockan 18:45 +0200 skre

Re: [FFmpeg-devel] [PATCH 2/2] avformat/mpc: deallocate frames array on errors

2019-07-31 Thread Michael Niedermayer
On Wed, Jul 24, 2019 at 11:35:38PM +0200, Michael Niedermayer wrote: > Fixes: memleak on error path > Fixes: > 15984/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5679918412726272 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > S

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/apedec: Fix multiple integer overflows and undefined behaviorin filter_3800()

2019-07-31 Thread Michael Niedermayer
On Sun, Jul 21, 2019 at 11:14:44AM +0200, Michael Niedermayer wrote: > Fixes: left shift of negative value -4 > Fixes: signed integer overflow: -15091694 * 167 cannot be represented in type > 'int' > Fixes: signed integer overflow: 1898547155 + 453967445 cannot be represented > in type 'int' > Fi

Re: [FFmpeg-devel] [PATCH] avcodec/truemotion2: Fix several integer overflows in tm2_motion_block()

2019-07-31 Thread Michael Niedermayer
On Tue, Jul 09, 2019 at 06:00:00PM +0200, Michael Niedermayer wrote: > Fixes: > 15524/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TRUEMOTION2_fuzzer-5173148372172800 > Fixes: signed integer overflow: 13701388 - -2134868270 cannot be represented > in type 'int' > > Found-by: continuous fuzz

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/vc1_block: Fix integer overflow in ff_vc1_pred_dc()

2019-07-31 Thread Michael Niedermayer
On Fri, Jul 05, 2019 at 01:28:34AM +0200, Michael Niedermayer wrote: > Fixes: signed integer overflow: 32796 * 65536 cannot be represented in type > 'int' > Fixes: > 15430/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VC1IMAGE_fuzzer-5735424087031808 > > Found-by: continuous fuzzing process

Re: [FFmpeg-devel] [PATCH 3/3] avcodec/vc1_pred: Fix invalid shift in scaleforsame()

2019-07-31 Thread Michael Niedermayer
On Thu, Jul 11, 2019 at 02:29:18PM +0200, Michael Niedermayer wrote: > Fixes: left shift of negative value -1 > Fixes: > 15531/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VC1IMAGE_fuzzer-5759556258365440 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/mas

Re: [FFmpeg-devel] [PATCH] h264_mp4toannexb: Remove unnecessary check

2019-07-31 Thread Andreas Rheinhardt
Andreas Rheinhardt: > There can be at most 31 SPS and 255 PPS in the mp4/Matroska extradata. > Given that each has a size of at most 2^16-1, the length of the output > derived from these parameter sets can never overflow an ordinary 32 bit > integer. So use a simple uint32_t instead of uint64_t and

Re: [FFmpeg-devel] libavformat/mpegtsenc: fix incorrect PCR with multiple programs [v3]

2019-07-31 Thread Marton Balint
On Sun, 28 Jul 2019, Andreas Håkon wrote: Hi, This last version fixes the small bug discovered by Michael Niedermayer: https://patchwork.ffmpeg.org/patch/14099/ This version is finally clean. From 8381febd0e881cfcd53583b0ccdd7eb2c580e422 Mon Sep 17 00:00:00 2001 From: Andreas Hakon Date:

Re: [FFmpeg-devel] libavformat/mpegtsenc: fix incorrect PCR with multiple programs [v4]

2019-07-31 Thread Andriy Gelman
Andreas, On Mon, 29. Jul 11:11, Andreas Håkon wrote: > Hi, > > An updated version that fixes all previous bugs: > https://patchwork.ffmpeg.org/patch/14109/ > https://patchwork.ffmpeg.org/patch/14099/ > https://patchwork.ffmpeg.org/patch/14036/ > > It passes the tests pointed by Michael Niedermay

[FFmpeg-devel] [PATCH 2/2] avformat/mpegtsenc: Remove redundant goto after malloc fail

2019-07-31 Thread Andriy Gelman
From: Andriy Gelman --- libavformat/mpegtsenc.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index fc0ea225c6..1541a7a073 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -846,10 +846,8 @@ static

[FFmpeg-devel] [PATCH 1/2] lavfi/zmq: Avoid mem copy past the end of input buffer

2019-07-31 Thread Andriy Gelman
From: Andriy Gelman --- libavfilter/f_zmq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/f_zmq.c b/libavfilter/f_zmq.c index 89da5bef06..744c721305 100644 --- a/libavfilter/f_zmq.c +++ b/libavfilter/f_zmq.c @@ -139,7 +139,7 @@ static int recv_msg(AVFilterContex

Re: [FFmpeg-devel] [PATCH, v2 3/3] lavc/libvpxenc: add dynamic resolution encode support for libvpx

2019-07-31 Thread James Zern
Hi, On Tue, Jul 30, 2019 at 10:06 PM Linjie Fu wrote: > [...] > diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c > index feb52ea..800ba18 100644 > --- a/libavcodec/libvpxenc.c > +++ b/libavcodec/libvpxenc.c > @@ -1067,6 +1067,15 @@ static int vpx_encode(AVCodecContext *avctx, AVPacket

[FFmpeg-devel] [PATCH 1/2] avcodec/indeo2: Check remaining input more often

2019-07-31 Thread Michael Niedermayer
Fixes: Timeout (95sec -> 30ms) Fixes: 14765/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_INDEO2_fuzzer-5692455527120896 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpe Signed-off-by: Michael Niedermayer --- libavcodec/indeo2.c | 11 ++

[FFmpeg-devel] [PATCH 2/2] avcodec/diracdec: Check that slices are fewer than pixels

2019-07-31 Thread Michael Niedermayer
Fixes: Timeout (197sec ->144ms) Fixes: 15034/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DIRAC_fuzzer-5733549405110272 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/diracdec.c | 4 +++-

Re: [FFmpeg-devel] [PATCH] avcodec/dsddec: add slice threading support

2019-07-31 Thread David Bryant
On 7/30/19 1:43 AM, Carl Eugen Hoyos wrote: > Am So., 28. Juli 2019 um 23:35 Uhr schrieb Paul B Mahol : >> Hi, >> >> patch attached. > As just posted on irc: > On an 8-core Intel cpu, this makes decoding slower by a factor two, > heating the cpu > ten times as much, on a multi-core powerpc, decodi

[FFmpeg-devel] [PATCH] lavu/hwcontext_vaapi: cope with race map for YUV420P

2019-07-31 Thread Linjie Fu
There is a race condition for AV_PIX_FMT_YUV420P when mapping from pix_fmt to fourcc, both VA_FOURCC_I420 and VA_FOURCC_YV12 could be find by pix_fmt. Currently, vaapi_get_image_format will go through the query results of pix_fmt and returned the first matched result according to the declared orde

[FFmpeg-devel] [PATCH] dnn: rename function from dnn_execute_layer_pad to avfilter_dnn_execute_layer_pad

2019-07-31 Thread Guo, Yejun
background: DNN (deep neural network) is a sub module of libavfilter, and FATE/dnn is unit test for the DNN module, one unit test for one dnn layer. The unit tests are not based on the APIs exported by libavfilter, they just directly call into the functions within DNN submodule. (It is not easy for

[FFmpeg-devel] [PATCH v16 1/2] lavc/svt_hevc: add libsvt hevc encoder wrapper

2019-07-31 Thread Jing Sun
Signed-off-by: Zhengxu Huang Signed-off-by: Hassene Tmar Signed-off-by: Jun Zhao Signed-off-by: Jing Sun --- configure| 4 + libavcodec/Makefile | 1 + libavcodec/allcodecs.c | 1 + libavcodec/libsvt_hevc.c | 500 +++ lib

Re: [FFmpeg-devel] [PATCH v16 1/2] lavc/svt_hevc: add libsvt hevc encoder wrapper

2019-07-31 Thread Sun, Jing A
-Original Message- From: Sun, Jing A Sent: Thursday, August 1, 2019 3:53 PM To: ffmpeg-devel@ffmpeg.org Cc: Sun, Jing A ; Huang, Zhengxu ; Tmar, Hassene ; Jun Zhao Subject: [PATCH v16 1/2] lavc/svt_hevc: add libsvt hevc encoder wrapper [Patch content] This update removed the code line

Re: [FFmpeg-devel] [PATCH v16 1/2] lavc/svt_hevc: add libsvt hevc encoder wrapper

2019-07-31 Thread Sun, Jing A
-Original Message- From: Sun, Jing A Sent: Thursday, August 1, 2019 3:53 PM To: ffmpeg-devel@ffmpeg.org Cc: Sun, Jing A ; Huang, Zhengxu ; Tmar, Hassene ; Jun Zhao Subject: [PATCH v16 1/2] lavc/svt_hevc: add libsvt hevc encoder wrapper [Patch content] This update removed the code line

[FFmpeg-devel] Recall: [PATCH v16 1/2] lavc/svt_hevc: add libsvt hevc encoder wrapper

2019-07-31 Thread Sun, Jing A
Sun, Jing A would like to recall the message, "[PATCH v16 1/2] lavc/svt_hevc: add libsvt hevc encoder wrapper". ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or e

Re: [FFmpeg-devel] [PATCH] avcodec/dsddec: add slice threading support

2019-07-31 Thread Paul B Mahol
On Thu, Aug 1, 2019 at 3:56 AM David Bryant wrote: > > On 7/30/19 1:43 AM, Carl Eugen Hoyos wrote: > > Am So., 28. Juli 2019 um 23:35 Uhr schrieb Paul B Mahol < > one...@gmail.com>: > >> Hi, > >> > >> patch attached. > > As just posted on irc: > > On an 8-core Intel cpu, this makes decoding slowe

[FFmpeg-devel] [PATCH] DSD and DST speed improvements

2019-07-31 Thread Paul B Mahol
Hi, patches attached. This time DSD decoding is approx %50 faster on old Celeron N3050 CPUs and 2 threads. 0001-avformat-dsfdec-set-packet-pts-duration-pos-correctl.patch Description: Binary data 0002-avcodec-dsddec-add-slice-threading-support.patch Description: Binary data 0003-avcodec-dst