[FFmpeg-devel] [PATCH] vdpau: Fix buffer overflow with old hwaccel_context API

2017-09-08 Thread Błażej Szczygieł
VDPAUHWContext struct is used internally, so allocate required amount of memory. Also move hwctx->reset as it was prior to 7e4ba776a2240d40124d5540ea6b2118fa2fe26a to make sure that buffer overflow doesn't happen if application allocates only sizeof(AVVDPAUContext) bytes of memory. ---

[FFmpeg-devel] [PATCH] MAINTAINERS: Add myself to maintainer of dashdec

2017-09-08 Thread Steven Liu
Add dash maintainer. Will invite SSS maintaining it together with me Signed-off-by: Steven Liu --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8a6ac9840f..0b0f7fa1e4 100644 --- a/MAINTAINERS +++

Re: [FFmpeg-devel] [PATCH v23 1/2] avformat/dashdec: add dash demuxer base version

2017-09-08 Thread Steven Liu
2017-09-08 0:42 GMT+08:00 Steven Liu : > 2017-09-05 17:36 GMT+08:00 Steven Liu : >> 2017-09-01 18:26 GMT+08:00 Steven Liu : >>> ffmpeg need a dash demuxer for demux the dash formats base on >>>

Re: [FFmpeg-devel] [PATCH v23 2/2] avformat/dashdec: free resource allocated by xml

2017-09-08 Thread Steven Liu
2017-09-04 23:55 GMT+08:00 Steven Liu : > 2017-09-04 23:36 GMT+08:00 wm4 : >> On Mon, 4 Sep 2017 22:58:27 +0800 >> Steven Liu wrote: >> >>> 2017-09-01 18:26 GMT+08:00 Steven Liu : >>> > modify from

Re: [FFmpeg-devel] [PATCH 3/3] avcodec/scpr: optimize shift loop.

2017-09-08 Thread James Almer
On 9/8/2017 8:49 PM, Michael Niedermayer wrote: > On Fri, Sep 08, 2017 at 06:43:06PM -0300, James Almer wrote: >> On 9/8/2017 6:29 PM, Michael Niedermayer wrote: >>> Speeds code up from 50sec to 15sec >>> >>> Fixes Timeout >>> Fixes: 3242/clusterfuzz-testcase-5811951672229888 >>> >>> Found-by:

Re: [FFmpeg-devel] [PATCH 3/3] avcodec/scpr: optimize shift loop.

2017-09-08 Thread Michael Niedermayer
On Fri, Sep 08, 2017 at 06:43:06PM -0300, James Almer wrote: > On 9/8/2017 6:29 PM, Michael Niedermayer wrote: > > Speeds code up from 50sec to 15sec > > > > Fixes Timeout > > Fixes: 3242/clusterfuzz-testcase-5811951672229888 > > > > Found-by: continuous fuzzing process > >

Re: [FFmpeg-devel] [PATCH] vf_fps: when reading EOF, using current_pts to duplicate the last frame if needed.

2017-09-08 Thread Thomas Mundt
Hi Thierry, 2017-09-08 19:03 GMT+02:00 Thierry Foucu : > --- > libavfilter/vf_fps.c| 42 ++ > +++- > tests/ref/fate/filter-fps | 6 ++ > tests/ref/fate/filter-fps-r | 4 > 3 files changed, 47 insertions(+), 5

Re: [FFmpeg-devel] [PATCH] libavformat/matroskaenc.c: Write Tags element for WebM

2017-09-08 Thread James Almer
On 9/8/2017 7:51 PM, Ivan Janatra wrote: > SGTM, I'll just wait for your patch then. > Pushed, thanks. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH] libavformat/matroskaenc.c: Write Tags element for WebM

2017-09-08 Thread Ivan Janatra
SGTM, I'll just wait for your patch then. On Fri, Sep 8, 2017 at 3:33 PM, James Almer wrote: > On 9/8/2017 12:59 PM, Ivan Janatra wrote: > > This is already supported per https://www.webmproject.org/ > docs/container/#Tags and https://github.com/nbirkbeck/ >

Re: [FFmpeg-devel] [PATCH] libavformat/matroskaenc.c: Write Tags element for WebM

2017-09-08 Thread James Almer
On 9/8/2017 12:59 PM, Ivan Janatra wrote: > This is already supported per > https://www.webmproject.org/docs/container/#Tags and > https://github.com/nbirkbeck/matroska-specification/commit/28a54f991f118fff31fe6bfe256c2dfab46d00e5 > > Signed-off-by: Ivan Janatra > --- >

Re: [FFmpeg-devel] [PATCH 3/3] avcodec/scpr: optimize shift loop.

2017-09-08 Thread James Almer
On 9/8/2017 6:47 PM, Kieran Kunhya wrote: > On Fri, 8 Sep 2017 at 22:29 Michael Niedermayer > wrote: > >> Speeds code up from 50sec to 15sec >> >> Fixes Timeout >> Fixes: 3242/clusterfuzz-testcase-5811951672229888 >> >> Found-by: continuous fuzzing process >>

Re: [FFmpeg-devel] [PATCH 3/3] avcodec/scpr: optimize shift loop.

2017-09-08 Thread Kieran Kunhya
On Fri, 8 Sep 2017 at 22:29 Michael Niedermayer wrote: > Speeds code up from 50sec to 15sec > > Fixes Timeout > Fixes: 3242/clusterfuzz-testcase-5811951672229888 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg >

Re: [FFmpeg-devel] [PATCH 3/3] avcodec/scpr: optimize shift loop.

2017-09-08 Thread James Almer
On 9/8/2017 6:29 PM, Michael Niedermayer wrote: > Speeds code up from 50sec to 15sec > > Fixes Timeout > Fixes: 3242/clusterfuzz-testcase-5811951672229888 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-by: Michael

[FFmpeg-devel] [PATCH 3/3] avcodec/scpr: optimize shift loop.

2017-09-08 Thread Michael Niedermayer
Speeds code up from 50sec to 15sec Fixes Timeout Fixes: 3242/clusterfuzz-testcase-5811951672229888 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/scpr.c | 11

[FFmpeg-devel] [PATCH 1/3] avcodec/dirac_vlc: Check res_bits after its modified by APPEND_RESIDUE()

2017-09-08 Thread Michael Niedermayer
Fixes: runtime error: left shift of 1073741838 by 1 places cannot be represented in type 'int32_t' (aka 'int') Fixes: 3279/clusterfuzz-testcase-minimized-4564805744590848 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/jpeg2000dsp: Fix multiple integer overflows in ict_int()

2017-09-08 Thread Michael Niedermayer
Fixes: runtime error: signed integer overflow: 22553 * -188962 cannot be represented in type 'int' Fixes: 3042/clusterfuzz-testcase-minimized-5174210131394560 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer

[FFmpeg-devel] [PATCH] vf_fps: when reading EOF, using current_pts to duplicate the last frame if needed.

2017-09-08 Thread Thierry Foucu
--- libavfilter/vf_fps.c| 42 +- tests/ref/fate/filter-fps | 6 ++ tests/ref/fate/filter-fps-r | 4 3 files changed, 47 insertions(+), 5 deletions(-) diff --git a/libavfilter/vf_fps.c b/libavfilter/vf_fps.c index 20ccd797d1..e450723173

Re: [FFmpeg-devel] [PATCH 1/7] build: fix objcc header check

2017-09-08 Thread Clément Bœsch
On Thu, Sep 07, 2017 at 04:07:41PM +0200, Clément Bœsch wrote: [...] > > Patch 1-5 ok! > > For patch 6-7 maybe someone else can have a closer look. > > I'll wait a little more and push the patchset. > Patchset applied, thanks -- Clément B. signature.asc Description: PGP signature

Re: [FFmpeg-devel] [PATCH 1/3] checkasm: use perf API on Linux ARM*

2017-09-08 Thread Clément Bœsch
On Sat, Sep 02, 2017 at 08:17:38PM +0200, Clément Bœsch wrote: [...] patchset applied -- Clément B. signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH] avcodec/vp9: add tile threading support

2017-09-08 Thread Paul B Mahol
On 9/8/17, Ilia Valiakhmetov wrote: > Signed-off-by: Ilia Valiakhmetov > --- > Changelog | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Changelog b/Changelog > index cae5254..8a4818a 100644 > --- a/Changelog > +++ b/Changelog > @@ -43,6 +43,7 @@

[FFmpeg-devel] [PATCH] libavformat/matroskaenc.c: Write Tags element for WebM

2017-09-08 Thread Ivan Janatra
This is already supported per https://www.webmproject.org/docs/container/#Tags and https://github.com/nbirkbeck/matroska-specification/commit/28a54f991f118fff31fe6bfe256c2dfab46d00e5 Signed-off-by: Ivan Janatra --- libavformat/matroskaenc.c | 8 1 file changed, 4

[FFmpeg-devel] [PATCH] avcodec/vp9: add tile threading support

2017-09-08 Thread Ilia Valiakhmetov
Signed-off-by: Ilia Valiakhmetov --- Changelog | 1 + 1 file changed, 1 insertion(+) diff --git a/Changelog b/Changelog index cae5254..8a4818a 100644 --- a/Changelog +++ b/Changelog @@ -43,6 +43,7 @@ version : - add --disable-autodetect build switch - drop deprecated qtkit

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

2017-09-08 Thread Ronald S. Bultje
Hi, On Wed, Sep 6, 2017 at 4:04 PM, Ashish Pratap Singh wrote: > +#define MAX_ALIGN 32 > +#define ALIGN_CEIL(x) ((x) + ((x) % MAX_ALIGN ? MAX_ALIGN - (x) % > MAX_ALIGN : 0)) > ../libavutil/macros.h:#define FFALIGN(x, a) (((x)+(a)-1)&~((a)-1)) > > +static const AVOption

Re: [FFmpeg-devel] [PATCH] avfilter/vf_tonemap: don't use NAN constant as an initializer

2017-09-08 Thread James Almer
On 9/8/2017 5:25 AM, Nicolas George wrote: > Le primidi 21 fructidor, an CCXXV, James Almer a écrit : >> What can we do, then? NAN and nan("") are sometimes compile-time >> constants and sometimes not, apparently depending on build type and >> target system. >> >> CCing Vittorio as he's the author

Re: [FFmpeg-devel] [PATCHv2 2/2] avcodec/pthread_slice: add ff_slice_thread_execute_with_mainfunc()

2017-09-08 Thread Ronald S. Bultje
Hi, On Thu, Sep 7, 2017 at 4:48 PM, Ilia Valiakhmetov wrote: > Signed-off-by: Ilia Valiakhmetov > > v2: > --- > libavcodec/internal.h | 4 > libavcodec/pthread_slice.c | 22 -- > libavcodec/thread.h| 4 +++- > 3

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/vp9: Add tile threading support

2017-09-08 Thread Ronald S. Bultje
Hi, On Thu, Sep 7, 2017 at 5:02 PM, Ilia Valiakhmetov wrote: > Signed-off-by: Ilia Valiakhmetov > > v8: > --- > libavcodec/vp9.c | 665 ++ > - > libavcodec/vp9_mc_template.c | 202 ++--- >

Re: [FFmpeg-devel] [PATCH] avfilter/vf_tonemap: don't use NAN constant as an initializer

2017-09-08 Thread Vittorio Giovara
On Thu, Sep 7, 2017 at 11:26 PM, James Almer wrote: > On 9/7/2017 6:16 PM, Michael Niedermayer wrote: > > On Wed, Sep 06, 2017 at 10:59:13PM -0300, James Almer wrote: > >> Netbsd: > >> src/libavfilter/vf_tonemap.c:314: error: initializer element is not > constant > >>

Re: [FFmpeg-devel] [PATCH] avfilter/vf_tonemap: don't use NAN constant as an initializer

2017-09-08 Thread Derek Buitenhuis
On 9/8/2017 10:53 AM, Hendrik Leppkes wrote: > So if it would not be defined at all, the filter would still not > build. So what exactly does that change? Yes it would: libavutil/mathematics.h:#define NANav_int2float(0x7fc0) - Derek

Re: [FFmpeg-devel] [PATCH] avcodec/mips: Improve vp9 mc msa functions

2017-09-08 Thread Michael Niedermayer
On Thu, Sep 07, 2017 at 12:43:40PM +, Manojkumar Bhosale wrote: > LGTM applied thanks [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Does the universe only have a finite lifespan? No, its going to go on forever, its just that you wont like living in it.

Re: [FFmpeg-devel] [PATCH] avcodec/mips: Improve vp9 idct msa functions

2017-09-08 Thread Michael Niedermayer
On Thu, Sep 07, 2017 at 09:09:05AM +, Manojkumar Bhosale wrote: > LGTM applied thanks [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB No human being will ever know the Truth, for even if they happen to say it by chance, they would not even known they had

Re: [FFmpeg-devel] [PATCH] avcodec/mips: Improve vp9 lpf msa functions

2017-09-08 Thread Michael Niedermayer
On Thu, Sep 07, 2017 at 09:00:01AM +, Manojkumar Bhosale wrote: > LGTM applied thanks [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Observe your enemies, for they first find out your faults. -- Antisthenes signature.asc Description: Digital signature

Re: [FFmpeg-devel] [PATCH] RFC: drop VDA

2017-09-08 Thread Hendrik Leppkes
On Fri, Sep 8, 2017 at 10:13 AM, Kirill Gavrilov wrote: > On Tue, Sep 5, 2017 at 4:57 PM, Clément Bœsch wrote: > > and unfortunately I can't test VDA (because OSX doesn't have it anymore). > > Could you please add a comment where/when it has been removed? > > I

Re: [FFmpeg-devel] [PATCH] avfilter/vf_tonemap: don't use NAN constant as an initializer

2017-09-08 Thread Hendrik Leppkes
On Fri, Sep 8, 2017 at 10:25 AM, Nicolas George wrote: > Le primidi 21 fructidor, an CCXXV, James Almer a écrit : >> What can we do, then? NAN and nan("") are sometimes compile-time >> constants and sometimes not, apparently depending on build type and >> target system. >> >>

Re: [FFmpeg-devel] [PATCH 2/5] ffmpeg: rename a variable.

2017-09-08 Thread Nicolas George
Le duodi 22 fructidor, an CCXXV, Michael Niedermayer a écrit : > LGTM Thanks, series pushed. Regards, -- Nicolas George signature.asc Description: Digital signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org

Re: [FFmpeg-devel] [PATCH] avfilter/vf_tonemap: don't use NAN constant as an initializer

2017-09-08 Thread Nicolas George
Le primidi 21 fructidor, an CCXXV, James Almer a écrit : > What can we do, then? NAN and nan("") are sometimes compile-time > constants and sometimes not, apparently depending on build type and > target system. > > CCing Vittorio as he's the author of the filter. "The macro NAN is defined if and

Re: [FFmpeg-devel] [PATCH] RFC: drop VDA

2017-09-08 Thread Kirill Gavrilov
On Tue, Sep 5, 2017 at 4:57 PM, Clément Bœsch wrote: and unfortunately I can't test VDA (because OSX doesn't have it anymore). Could you please add a comment where/when it has been removed? I have tried to find any information about this but only found deprecation since OS X El

Re: [FFmpeg-devel] [PATCH] fate: add test for asetnsamples filter with padding disabled

2017-09-08 Thread Tobias Rapp
On 08.09.2017 04:04, Michael Niedermayer wrote: On Tue, Sep 05, 2017 at 03:13:15PM +0200, Tobias Rapp wrote: Adds another test for asetnsamples filter where padding of the last frame is switched off. Renames the existing test to make the difference obvious. Signed-off-by: Tobias Rapp