Re: [FFmpeg-devel] [PATCH] libavcodec/vp9: fix ref-frame size judging method

2019-04-30 Thread Li, Zhong
> From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf > Of Yan Cen > Sent: Tuesday, April 30, 2019 9:46 AM > To: ffmpeg-devel@ffmpeg.org > Cc: Yan, CenX > Subject: [FFmpeg-devel] [PATCH] libavcodec/vp9: fix ref-frame size judging > method > > From: Yan Cen > > There is no need

[FFmpeg-devel] [PATCH 1/3] lavc/qsvdec: add query function and provide error message

2019-04-30 Thread Zhong Li
It is helpful to know why some clips decoding failed. Ticket#7330 is a good example, with this patch it is easily to know bitstream codec level is out of support range. Signed-off-by: Zhong Li --- libavcodec/qsvdec.c | 33 + 1 file changed, 33 insertions(+) diff

[FFmpeg-devel] [PATCH 3/3] lavc/qsv: extactly map profile

2019-04-30 Thread Zhong Li
Currently profile mapping is hard-coded, and not flexible to do extactly map (E.g: libmfx treats H264 constrained baseline to be baseline profile). vaapi profile mapping funtion provides a better soultion than current qsv mapping. Signed-off-by: Zhong Li --- libavcodec/qsv.c | 52 ++

[FFmpeg-devel] [PATCH 2/3] lavc/qsvdec: fix hevc level incorrectly map

2019-04-30 Thread Zhong Li
libmfx hevc level defination is same as h264, not level_idc of SPEC. Signed-off-by: Zhong Li --- libavcodec/qsv.c | 13 + libavcodec/qsv_internal.h | 1 + libavcodec/qsvdec.c | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/libavcodec/qsv.c b/li

Re: [FFmpeg-devel] [PATCH] libavfilter/af_astats: fix msvc compile error

2019-04-30 Thread Matthias Troffaes
On Mon, Apr 29, 2019 at 7:32 PM Paul B Mahol wrote: > On 4/29/19, Matthias Troffaes wrote: > > MSVC requires an explicit cast from void * to void when applying the > > ternary conditional operator to switch between methods that return > > void. The attached patch fixes the problem. > > > > For in

[FFmpeg-devel] [PATCH] avfilter/vf_tonemap: add slice threading

2019-04-30 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavfilter/vf_tonemap.c | 39 ++- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/libavfilter/vf_tonemap.c b/libavfilter/vf_tonemap.c index efd4af5466..d1728c8513 100644 --- a/libavfilter/vf_tonemap.c +++ b/libavf

Re: [FFmpeg-devel] [PATCH] swscale/ppc: VSX-optimize hscale_fast

2019-04-30 Thread Lauri Kasanen
On Wed, 24 Apr 2019 14:02:16 +0300 Lauri Kasanen wrote: > ./ffmpeg -f lavfi -i yuvtestsrc=duration=1:size=1200x1440 -sws_flags > fast_bilinear \ > -s 2400x720 -f rawvideo -vframes 5 -pix_fmt abgr -nostats test.raw > > 4.27 speedup for hyscale_fast: > 24796 UNITS in hyscale_fast,409

[FFmpeg-devel] [PATCH 1/4] swscale/ppc: VSX-optimize hScale8To19_vsx

2019-04-30 Thread Lauri Kasanen
./ffmpeg -f lavfi -i yuvtestsrc=duration=1:size=1200x1440 \ -s 2400x720 -f rawvideo -y -vframes 5 -pix_fmt yuv420p16le -nostats test.raw 2.26 speedup (x86 SSE2 is 2.32): 23772 UNITS in hscale,4096 runs, 0 skips 53862 UNITS in hscale,4096 runs, 0 skips Signed-off-by: Laur

[FFmpeg-devel] [PATCH 2/4] swscale/ppc: Indent

2019-04-30 Thread Lauri Kasanen
Signed-off-by: Lauri Kasanen --- libswscale/ppc/swscale_vsx.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libswscale/ppc/swscale_vsx.c b/libswscale/ppc/swscale_vsx.c index a82cf95..17c15a2 100644 --- a/libswscale/ppc/swscale_vsx.c +++ b/libswscale/ppc/swscale_

[FFmpeg-devel] [PATCH 3/4] swscale/ppc: VSX-optimize hScale16To*

2019-04-30 Thread Lauri Kasanen
./ffmpeg -loop 1 -s 1200x1440 -i tux16.png \ -s 2400x720 -f rawvideo -y -vframes 5 -pix_fmt yuv420p16le -nostats test.raw ./ffmpeg -loop 1 -s 1200x1440 -i tux16.png \ -s 2400x720 -f rawvideo -y -vframes 5 -pix_fmt yuv420p -nostats test.raw 32-bit mul, power8 only 2x speedup for hScale8To

[FFmpeg-devel] [PATCH 4/4] swscale/ppc: Shorten power8 tests via a var

2019-04-30 Thread Lauri Kasanen
Signed-off-by: Lauri Kasanen --- libswscale/ppc/swscale_vsx.c | 27 ++- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/libswscale/ppc/swscale_vsx.c b/libswscale/ppc/swscale_vsx.c index 31d3ba2..a617f76 100644 --- a/libswscale/ppc/swscale_vsx.c +++ b/libsws

Re: [FFmpeg-devel] [PATCH 3/4] swscale/ppc: VSX-optimize hScale16To*

2019-04-30 Thread Lauri Kasanen
./ffmpeg -loop 1 -s 1200x1440 -i tux16.png \ -s 2400x720 -f rawvideo -y -vframes 5 -pix_fmt yuv420p16le -nostats test.raw ./ffmpeg -loop 1 -s 1200x1440 -i tux16.png \ -s 2400x720 -f rawvideo -y -vframes 5 -pix_fmt yuv420p -nostats test.raw 32-bit mul, power8 only 2x speedup for hScale8To

Re: [FFmpeg-devel] [PATCH] lavfi: add gblur_opencl filter

2019-04-30 Thread Dylan Fernando
On Thu, 25 Apr 2019 at 10:42 pm, Dylan Fernando wrote: > --- > configure | 1 + > libavfilter/Makefile | 2 + > libavfilter/allfilters.c | 1 + > libavfilter/opencl/gblur.cl | 62 +++ > libavfilter/opencl_source.h | 1 + > libavfilter/vf_gblur_o

Re: [FFmpeg-devel] [PATCH] lavfi: add gblur_opencl filter

2019-04-30 Thread Paul B Mahol
On 4/30/19, Dylan Fernando wrote: > > Anyone have any feedback? If I'm not mistaken there is already one available. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above,

Re: [FFmpeg-devel] [PATCH v3] avfilter/avf_showwaves: Add draw mode also to showwavespic filter

2019-04-30 Thread Martin Vobruba
See commit a8c2d375ca68b7f001564ced14d8ac0757f53a29 --- doc/filters.texi| 14 ++ libavfilter/avf_showwaves.c | 3 +++ 2 files changed, 17 insertions(+) diff --git a/doc/filters.texi b/doc/filters.texi index e9cbccc..2aabe8a 100644 --- a/doc/filters.texi +++ b/doc/filters

Re: [FFmpeg-devel] [PATCH v3] avfilter/avf_showwaves: Add draw mode also to showwavespic filter

2019-04-30 Thread Paul B Mahol
On 4/30/19, Martin Vobruba wrote: >> See commit a8c2d375ca68b7f001564ced14d8ac0757f53a29 >> --- >> doc/filters.texi| 14 ++ >> libavfilter/avf_showwaves.c | 3 +++ >> 2 files changed, 17 insertions(+) >> >> diff --git a/doc/filters.texi b/doc/filters.texi >> index e9cbccc

Re: [FFmpeg-devel] [PATCH] ffmpeg: Add option to force a specific decode format

2019-04-30 Thread Eoff, Ullysses A
> -Original Message- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of Carl > Eugen Hoyos > Sent: Tuesday, April 23, 2019 12:48 PM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH] ffmpeg: Add option to force a specific > deco

Re: [FFmpeg-devel] [PATCH] avformat/mov: Populate packet duration using `stts` atom instead of guessing.

2019-04-30 Thread Michael Niedermayer
On Mon, Apr 29, 2019 at 03:50:27PM -0700, fumoboy007 wrote: > Fixes #7855 (“Last subtitle in MP4 is displayed forever”). > --- > libavformat/isom.h | 3 + > libavformat/mov.c | 158 + > 2 files changed, 135 insertions(+), 26 deletions(-) breaks "make

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/cinepak: Check slice_size before allocating image

2019-04-30 Thread Michael Niedermayer
On Sun, Apr 28, 2019 at 04:53:53PM +0200, Tomas Härdin wrote: > sön 2019-04-28 klockan 11:42 +0200 skrev Michael Niedermayer: > > Fixes: Timeout (16sec -> 125msec) > > Fixes: > > 14283/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CINEPAK_fuzzer-5742851457024000 > > > > Found-by: continuous f

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/agm: Check output size before allocation

2019-04-30 Thread Michael Niedermayer
On Wed, Apr 24, 2019 at 10:35:09PM +0200, Michael Niedermayer wrote: > Fixes: OOM > Fixes: > 14198/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AGM_fuzzer-5723579234123776 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-

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

2019-04-30 Thread Michael Niedermayer
On Sat, Apr 20, 2019 at 02:22:05AM +0200, Michael Niedermayer wrote: > Fixes: signed integer overflow: -2147483648 + -1 cannot be represented in > type 'int' > Fixes: > 14107/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TRUEMOTION2_fuzzer-5694078680825856 > > Found-by: continuous fuzzing pr

Re: [FFmpeg-devel] [PATCH] avfilter/vf_tonemap: add slice threading

2019-04-30 Thread Vittorio Giovara
On Tue, Apr 30, 2019 at 6:07 AM Paul B Mahol wrote: > Signed-off-by: Paul B Mahol > --- > libavfilter/vf_tonemap.c | 39 ++- > 1 file changed, 34 insertions(+), 5 deletions(-) > > diff --git a/libavfilter/vf_tonemap.c b/libavfilter/vf_tonemap.c > index efd4af

Re: [FFmpeg-devel] [PATCH] avfilter/f_realtime: add option to scale speed

2019-04-30 Thread Paul B Mahol
On 12/25/18, Moritz Barsnick wrote: > Signed-off-by: Moritz Barsnick > --- > This adds two double precision divisions per frame, which seems acceptable. > > I'm not sure scaling the limit by the factor is the correct idea. It feels > right regarding the discontinuities, but not according to the

Re: [FFmpeg-devel] [PATCH] avfilter/vf_tonemap: add slice threading

2019-04-30 Thread Paul B Mahol
On 4/30/19, Vittorio Giovara wrote: > On Tue, Apr 30, 2019 at 6:07 AM Paul B Mahol wrote: > >> Signed-off-by: Paul B Mahol >> --- >> libavfilter/vf_tonemap.c | 39 ++- >> 1 file changed, 34 insertions(+), 5 deletions(-) >> >> diff --git a/libavfilter/vf_tonem

Re: [FFmpeg-devel] [PATCH] avcodec/h263dec: Fixed VA API, VDPAU, and VideoToolbox hardware acceleration due to missing `hw_configs` property.

2019-04-30 Thread fumoboy007
Ah, I see. > On Apr 29, 2019, at 4:52 PM, Michael Niedermayer > wrote: > > On Mon, Apr 29, 2019 at 02:16:53PM -0700, fumoboy...@me.com wrote: >> Btw, what’s the difference between `h263` and `h263p`? > > Its described probably best with the encoders: >.name = "h263p", >.long_

Re: [FFmpeg-devel] [PATCH] avformat/mov: Populate packet duration using `stts` atom instead of guessing.

2019-04-30 Thread fumoboy007
Oops. Will fix. > On Apr 30, 2019, at 10:58 AM, Michael Niedermayer > wrote: > breaks "make fate" > > make: *** [fate-filter-fps-cfr] Error 1 > make: *** [fate-filter-fps-r] Error 1 > make: *** [fate-filter-fps] Error 1 > make: *** [fate-copy-trac236] Error 1 > make: *** [fate-gaplessenc-itunes

Re: [FFmpeg-devel] [PATCH] libavcodec/vp9: fix ref-frame size judging method

2019-04-30 Thread Ronald S. Bultje
Hi, On Mon, Apr 29, 2019 at 10:03 PM Yan Cen wrote: > From: Yan Cen > > There is no need all reference frame demension is valid in libvpx. I think you're touching on a bigger issue here: libvpx allows having invalid (or even missing) references, and we don't. Note that this means we lack per-

[FFmpeg-devel] [PATCH] avcodec/wmv2dec: Check input bits vs. coded MBs

2019-04-30 Thread Michael Niedermayer
Fixes: Timeout (94sec ->8sec) Fixes: 14387/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMV2_fuzzer-5723546887651328 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/wmv2dec.c | 9

Re: [FFmpeg-devel] [PATCH 1/4] swscale/ppc: VSX-optimize hScale8To19_vsx

2019-04-30 Thread Lauri Kasanen
Copy-paste thinko in the title I see. Will remove the _vsx suffix from the title. - Lauri ___ 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