Re: [FFmpeg-devel] [PATCH] speedhq: fix behavior of single-field decoding

2017-07-29 Thread Michael Niedermayer
On Fri, Jul 28, 2017 at 11:57:24AM +0200, Steinar H. Gunderson wrote: > The height convention for decoding frames with only a single field made sense > for compatibility with legacy decoders, but doesn't really match the > convention > used by NDI, which is the primary (only?) user. Thus, change

Re: [FFmpeg-devel] [PATCH 1/5] lavc/htmlsubtitles: improve handling broken garbage

2017-07-29 Thread Michael Niedermayer
On Sat, Jul 29, 2017 at 09:27:47PM +0200, Clément Bœsch wrote: > This commit switches off forced correct nesting of tags and only keeps > it for font tags. See long explanations in the code for the rationale. > > This results in various FATE changes which I'll explain here: > > - various

Re: [FFmpeg-devel] [PATCH v2] mdct15: add inverse transform postrotation SIMD

2017-07-29 Thread James Almer
On 7/29/2017 9:48 PM, Rostislav Pehlivanov wrote: > Speeds up decoding by 8% in total in the avx2 case. > > 20ms frames: > Before (c): 17774 decicycles in postrotate, 262065 runs, 79 skips > After (sse3): 9624 decicycles in postrotate, 262113 runs, 31 skips > After (avx2): 7169

[FFmpeg-devel] [PATCH v2] mdct15: add inverse transform postrotation SIMD

2017-07-29 Thread Rostislav Pehlivanov
Speeds up decoding by 8% in total in the avx2 case. 20ms frames: Before (c): 17774 decicycles in postrotate, 262065 runs, 79 skips After (sse3): 9624 decicycles in postrotate, 262113 runs, 31 skips After (avx2): 7169 decicycles in postrotate, 262104 runs, 40 skips 10ms

Re: [FFmpeg-devel] [PATCH] examples/vaapi_enc: Add a VAAPI encoding example.

2017-07-29 Thread Mark Thompson
On 28/07/17 07:01, Jun Zhao wrote: > From d5414b451012b3a0169740a26f452785eb44cce5 Mon Sep 17 00:00:00 2001 > From: Jun Zhao > Date: Fri, 28 Jul 2017 01:39:27 -0400 > Subject: [PATCH] examples/vaapi_enc: Add a VAAPI encoding example. > > Add a VAAPI encoding example. > > Use

Re: [FFmpeg-devel] [PATCH V6] examples/hw_decode: Add a HWAccel decoding example.

2017-07-29 Thread Mark Thompson
On 26/07/17 02:27, Jun Zhao wrote: > V6: fix memory leak issue when get EAGAIN/EOF for avcodec_receive_frame. > V5: remove qsv/cuda in the example and Mark have test dxva2|d3d11va, >videotoolbox might work as well. > V4: fix potential memory leak issue base on Steven Liu's review. > V3:

Re: [FFmpeg-devel] [PATCH] mdct15: add inverse transform postrotation SIMD

2017-07-29 Thread Rostislav Pehlivanov
On 29 July 2017 at 22:37, James Almer wrote: > On 7/29/2017 5:38 PM, Rostislav Pehlivanov wrote: > > Speeds up decoding by 8% in total. > > > > 20ms frames: > > Before: 17774 decicycles in postrotate, 262065 runs, 79 skips > > After: 7169 decicycles in postrotate,

Re: [FFmpeg-devel] [PATCH] mdct15: add inverse transform postrotation SIMD

2017-07-29 Thread James Almer
On 7/29/2017 5:38 PM, Rostislav Pehlivanov wrote: > Speeds up decoding by 8% in total. > > 20ms frames: > Before: 17774 decicycles in postrotate, 262065 runs, 79 skips > After: 7169 decicycles in postrotate, 262104 runs, 40 skips > > 10ms frames: > Before: 9058 decicycles in

[FFmpeg-devel] [PATCH] avfilter: add floodfill filter

2017-07-29 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/vf_floodfill.c | 212 + 3 files changed, 214 insertions(+) create mode 100644 libavfilter/vf_floodfill.c diff --git

[FFmpeg-devel] [PATCH] mdct15: add inverse transform postrotation SIMD

2017-07-29 Thread Rostislav Pehlivanov
Speeds up decoding by 8% in total. 20ms frames: Before: 17774 decicycles in postrotate, 262065 runs, 79 skips After: 7169 decicycles in postrotate, 262104 runs, 40 skips 10ms frames: Before: 9058 decicycles in postrotate, 524209 runs, 79 skips After: 3915 decicycles in

Re: [FFmpeg-devel] [PATCH 7/7] lavfi/vf_stack: move to activate design.

2017-07-29 Thread Paul B Mahol
On 7/29/17, Paul B Mahol wrote: > On 7/17/17, Nicolas George wrote: >> Signed-off-by: Nicolas George >> --- >> libavfilter/Makefile | 4 ++-- >> libavfilter/vf_stack.c | 32 +--- >> 2 files changed, 15

[FFmpeg-devel] [PATCH 4/5] lavc/htmlsubtitles: handle colors starting with many '#'

2017-07-29 Thread Clément Bœsch
--- libavcodec/htmlsubtitles.c | 4 tests/ref/fate/sub-srt-badsyntax | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libavcodec/htmlsubtitles.c b/libavcodec/htmlsubtitles.c index 29f763bee1..2b47c426ee 100644 --- a/libavcodec/htmlsubtitles.c +++

[FFmpeg-devel] [PATCH 3/5] lavc/htmlsubtitles: improve line breaks handling

2017-07-29 Thread Clément Bœsch
--- libavcodec/htmlsubtitles.c | 5 +++-- libavcodec/tests/htmlsubtitles.c| 2 ++ tests/ref/fate/libavcodec-htmlsubtitles | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libavcodec/htmlsubtitles.c b/libavcodec/htmlsubtitles.c index 69d855df21..29f763bee1

[FFmpeg-devel] [PATCH 5/5] lavc/htmlsubtitles: reindent after previous commits

2017-07-29 Thread Clément Bœsch
--- libavcodec/htmlsubtitles.c | 76 ++ 1 file changed, 36 insertions(+), 40 deletions(-) diff --git a/libavcodec/htmlsubtitles.c b/libavcodec/htmlsubtitles.c index 2b47c426ee..f4501816e5 100644 --- a/libavcodec/htmlsubtitles.c +++

[FFmpeg-devel] [PATCH 2/5] lavc/tests: add htmlsubtitles

2017-07-29 Thread Clément Bœsch
--- libavcodec/Makefile | 1 + libavcodec/tests/.gitignore | 1 + libavcodec/tests/htmlsubtitles.c| 49 + tests/fate/libavcodec.mak | 4 +++ tests/ref/fate/libavcodec-htmlsubtitles | 7 + 5 files

[FFmpeg-devel] [PATCH 1/5] lavc/htmlsubtitles: improve handling broken garbage

2017-07-29 Thread Clément Bœsch
This commit switches off forced correct nesting of tags and only keeps it for font tags. See long explanations in the code for the rationale. This results in various FATE changes which I'll explain here: - various swapping in font attributes, this is mostly noise due to the old reverse stack

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/dirac_dwt: Fix multiple integer overflows in COMPOSE_DD97iH0()

2017-07-29 Thread Michael Niedermayer
On Fri, Jul 28, 2017 at 03:22:40AM +0200, Michael Niedermayer wrote: > Fixes: runtime error: signed integer overflow: 9 * 335544320 cannot be > represented in type 'int' > Fixes: 2739/clusterfuzz-testcase-minimized-6737297955356672 > > Found-by: continuous fuzzing process >

[FFmpeg-devel] [PATCH 1/2] avcodec/diracdec: Check weight_log2denom

2017-07-29 Thread Michael Niedermayer
Fixes: runtime error: shift exponent -1 is negative Fixes: 2742/clusterfuzz-testcase-minimized-5724322402402304 Fixes: 2744/clusterfuzz-testcase-minimized-4672435653705728 Fixes: 2749/clusterfuzz-testcase-minimized-5298741273690112 Found-by: continuous fuzzing process

[FFmpeg-devel] [PATCH 2/2] avcodec/diracdsp: fix integer overflow

2017-07-29 Thread Michael Niedermayer
Fixes: runtime error: signed integer overflow: 11 * 225726413 cannot be represented in type 'int' Fixes: 2764/clusterfuzz-testcase-minimized-5382561922547712 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer

[FFmpeg-devel] [PATCH] lavc/makefile: Add missing file dependencies.

2017-07-29 Thread Matt Oliver
ac3dsp.c uses tables from ac3.c ac3.c uses tables from ac3tab.c hevc_ps uses tables from hevc_data.c intrax8.c uses tables from msmpeg4data.c --- libavcodec/Makefile | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavcodec/Makefile b/libavcodec/Makefile index

Re: [FFmpeg-devel] [PATCH 3/7] lavfi/framesync2: rename all conflicting symbols.

2017-07-29 Thread Paul B Mahol
On 7/17/17, Nicolas George wrote: > Signed-off-by: Nicolas George > --- > libavfilter/framesync2.c | 42 +- > libavfilter/framesync2.h | 30 +++--- > 2 files changed, 36 insertions(+), 36

Re: [FFmpeg-devel] [PATCH 1/2] lavf/framesync: detect EOF immediately.

2017-07-29 Thread Paul B Mahol
On 12/24/16, Nicolas George wrote: > Fix an infinite loop in forward_status_change(). > > Signed-off-by: Nicolas George > --- > libavfilter/framesync.c | 10 +- > 1 file changed, 9 insertions(+), 1 deletion(-) > lgtm

Re: [FFmpeg-devel] [PATCH 7/7] lavfi/vf_stack: move to activate design.

2017-07-29 Thread Paul B Mahol
On 7/17/17, Nicolas George wrote: > Signed-off-by: Nicolas George > --- > libavfilter/Makefile | 4 ++-- > libavfilter/vf_stack.c | 32 +--- > 2 files changed, 15 insertions(+), 21 deletions(-) > > > Works as expected. Including

Re: [FFmpeg-devel] [PATCH 2/7] lavfi: copy framesync into framesync2.

2017-07-29 Thread Paul B Mahol
On 7/17/17, Nicolas George wrote: > framesync2 will be the base for the version using activate. > Most of the logic will be the same, but the code cannot be shared. > Copying the file initially without change will make the diff > easier to read. > > Signed-off-by: Nicolas George

Re: [FFmpeg-devel] [PATCH] avfilter: add VIF filter

2017-07-29 Thread Paul B Mahol
On 7/29/17, Moritz Barsnick wrote: > On Sat, Jul 29, 2017 at 14:16:29 +0530, Ashish Pratap Singh wrote: > >> +Both input videos must have the same resolution and pixel format for >> +this filter to work correctly. Also it assumes that both inputs >> +have the same number of

Re: [FFmpeg-devel] [PATCH] avfilter: add VIF filter

2017-07-29 Thread Moritz Barsnick
On Sat, Jul 29, 2017 at 14:16:29 +0530, Ashish Pratap Singh wrote: > +Both input videos must have the same resolution and pixel format for > +this filter to work correctly. Also it assumes that both inputs > +have the same number of frames, which are compared one by one. Nit, for all these

Re: [FFmpeg-devel] [PATCH] build: Allow libffmpeg to be built for Chromium-based browsers

2017-07-29 Thread Nicolas George
Le decadi 10 thermidor, an CCXXV, James Le Cuirot a écrit : > This Makefile snippet allows libffmpeg to be created without the help > of Chromium's build system. It uses the CONFIG_SHARED variable to > decide whether to link the FFmpeg libraries statically or > dynamically. In the latter case,

Re: [FFmpeg-devel] [PATCH] build: Allow libffmpeg to be built for Chromium-based browsers

2017-07-29 Thread Reimar Döffinger
On 28.07.2017, at 12:07, James Le Cuirot wrote: > diff --git a/ffbuild/libffmpeg.mak b/ffbuild/libffmpeg.mak > new file mode 100644 > index 000..992cf3c > --- /dev/null > +++ b/ffbuild/libffmpeg.mak > @@ -0,0 +1,21 @@ > +LIBFFMPEG = $(SLIBPREF)ffmpeg$(SLIBSUF) >

Re: [FFmpeg-devel] [PATCH] avdevice/avfoundation: add scaleFactor attribute for avfoundation

2017-07-29 Thread Thilo Borgmann
Hi, Am 28.07.17 um 11:34 schrieb sharpbai: > From: sharpbai > > feature: add scaleFactor attribute for avfoundation > added by: siyuan.w...@duobei.com > added by: yiren...@duobei.com > --- > doc/indevs.texi| 3 +++ > libavdevice/avfoundation.m | 6 ++ > 2

Re: [FFmpeg-devel] [PATCH] build: Allow libffmpeg to be built for Chromium-based browsers

2017-07-29 Thread Reimar Döffinger
On 29.07.2017, at 01:05, Ivan Kalvachev wrote: > On 7/29/17, Dominik 'Rathann' Mierzejewski wrote: >> On Saturday, 29 July 2017 at 00:20, Hendrik Leppkes wrote: >>> On Fri, Jul 28, 2017 at 12:07 PM, James Le Cuirot >>> wrote: >>

[FFmpeg-devel] [PATCH] avfilter: add VIF filter

2017-07-29 Thread Ashish Pratap Singh
From: Ashish Singh This is Visual Information Fidelity (VIF) filter and one of the component filters of VMAF. It outputs the average VIF score over all frames. Signed-off-by: Ashish Singh --- Changelog| 1 + doc/filters.texi