[FFmpeg-devel] [PATCH] avcodec/mips: [loongson] fix bug of svq3-watermark failed in fate test.

2018-09-12 Thread Shiyou Yin
Failed case: svq3-watermark When minimum loop count of following functions are greater than parameter h passed to them, svq3-watermark failed. 1. ff_put_pixels4_8_mmi 2. ff_avg_pixels4_8_mmi 3. ff_put_pixels4_l2_8_mmi 4. ff_avg_pixels4_l2_8_mmi --- libavcodec/mips/hpeldsp_mmi.c | 112

Re: [FFmpeg-devel] [PATCH 2/2] lavc/libdavs2: fix error type

2018-09-12 Thread myp...@gmail.com
On Wed, Sep 12, 2018 at 2:24 PM hwren wrote: > > Signed-off-by: hwren > --- > libavcodec/libdavs2.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/libavcodec/libdavs2.c b/libavcodec/libdavs2.c > index ab9e511..aa14782 100644 > --- a/libavcodec/libdavs2.c > +++

Re: [FFmpeg-devel] [PATCH] lavfi/vf_scale_vaapi: add scaling mode setting support.

2018-09-12 Thread Li, Zhong
> From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf > Of Jun Zhao > Sent: Wednesday, September 12, 2018 8:35 PM > To: ffmpeg-devel@ffmpeg.org > Cc: Jun Zhao > Subject: [FFmpeg-devel] [PATCH] lavfi/vf_scale_vaapi: add scaling mode > setting support. > > before this change,

[FFmpeg-devel] [PATCH 2/2] avcodec/dvdsubdec: Sanity check len in decode_rle()

2018-09-12 Thread Michael Niedermayer
Fixes: Timeout Fixes: 9778/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DVDSUB_fuzzer-5186007132536832 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/dvdsubdec.c | 2 ++ 1 file changed,

[FFmpeg-devel] [PATCH 1/2] avcodec/dvdsubdec: Avoid branch in decode_run_8bit()

2018-09-12 Thread Michael Niedermayer
Speed improvment 35.5 sec -> 34.7sec Signed-off-by: Michael Niedermayer --- libavcodec/dvdsubdec.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c index f1ac9e353e..13d52c8c68 100644 --- a/libavcodec/dvdsubdec.c +++

Re: [FFmpeg-devel] [PATCH] Revert "avcodec/decode: copy the output parameters from the last bsf in the chain back to the AVCodecContext"

2018-09-12 Thread James Almer
On 9/12/2018 7:03 PM, James Almer wrote: > On 9/12/2018 6:44 PM, Hendrik Leppkes wrote: >> On Wed, Sep 12, 2018 at 8:15 PM James Almer wrote: >>> >>> This reverts commit f631c328e680a3dd491936b92f69970c20cdcfc7. >>> >>> The avcodec_parameters_to_context() call was freeing and reallocating >>>

[FFmpeg-devel] [PATCH] libavformat/mxfenc: fix dnxhr ul typo

2018-09-12 Thread Jason Stevens
byte 8 of dnxhr codec ul should be 0x0D Signed-off-by: Jason Stevens --- libavformat/mxfenc.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index 66814ef6a1..6520574072 100644 --- a/libavformat/mxfenc.c +++

Re: [FFmpeg-devel] [PATCH] Revert "avcodec/decode: copy the output parameters from the last bsf in the chain back to the AVCodecContext"

2018-09-12 Thread James Almer
On 9/12/2018 6:44 PM, Hendrik Leppkes wrote: > On Wed, Sep 12, 2018 at 8:15 PM James Almer wrote: >> >> This reverts commit f631c328e680a3dd491936b92f69970c20cdcfc7. >> >> The avcodec_parameters_to_context() call was freeing and reallocating >> AVCodecContext->extradata, essentially taking

Re: [FFmpeg-devel] [PATCH] Revert "avcodec/decode: copy the output parameters from the last bsf in the chain back to the AVCodecContext"

2018-09-12 Thread Hendrik Leppkes
On Wed, Sep 12, 2018 at 8:15 PM James Almer wrote: > > This reverts commit f631c328e680a3dd491936b92f69970c20cdcfc7. > > The avcodec_parameters_to_context() call was freeing and reallocating > AVCodecContext->extradata, essentially taking ownership of it, which according > to the doxy is user

[FFmpeg-devel] [PATCH] avdevice/pulse_audio_dec: set channel map

2018-09-12 Thread Paul B Mahol
This fixes opening devices with >6 channels. Signed-off-by: Paul B Mahol --- libavdevice/pulse_audio_dec.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavdevice/pulse_audio_dec.c b/libavdevice/pulse_audio_dec.c index 5977fb7e9e..042fe76d43 100644 ---

Re: [FFmpeg-devel] [PATCH] avfilter/buffersink.h: fix comment typo of av_buffersink_get_samples

2018-09-12 Thread Michael Niedermayer
On Wed, Sep 12, 2018 at 05:02:04PM +0800, Steven Liu wrote: > Signed-off-by: Steven Liu > --- > libavfilter/buffersink.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) probably ok thanks [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Everything

Re: [FFmpeg-devel] [PATCH] avformat/utils: Don't parse encrypted packets.

2018-09-12 Thread Michael Niedermayer
On Tue, Sep 11, 2018 at 03:50:57PM -0700, Jacob Trimble wrote: > On Tue, Sep 11, 2018 at 1:48 PM Michael Niedermayer > wrote: > > > > On Thu, Aug 30, 2018 at 08:43:25AM -0700, Jacob Trimble wrote: > > > On Wed, Aug 29, 2018 at 4:37 PM Michael Niedermayer > > > wrote: > > > > > > > > On Wed, Aug

[FFmpeg-devel] [PATCH] Revert "avcodec/decode: copy the output parameters from the last bsf in the chain back to the AVCodecContext"

2018-09-12 Thread James Almer
This reverts commit f631c328e680a3dd491936b92f69970c20cdcfc7. The avcodec_parameters_to_context() call was freeing and reallocating AVCodecContext->extradata, essentially taking ownership of it, which according to the doxy is user owned. This is an API break and has produces crashes in some

Re: [FFmpeg-devel] [PATCH] avformat/matroskaenc: add reserve free space option

2018-09-12 Thread Sigríður Regína Sigurþórsdóttir
On Thu, Sep 6, 2018 at 3:31 PM James Almer wrote: > > On 9/6/2018 4:18 PM, James Darnley wrote: > > On 2018-09-06 19:39, Sigríður Regína Sigurþórsdóttir wrote: > >> +if (s->metadata_header_padding) { > >> +if (s->metadata_header_padding == 1) > >> +

Re: [FFmpeg-devel] [PATCH 1/2] avutil: add float_dsp.vector_dmul

2018-09-12 Thread Paul B Mahol
On 9/12/18, James Almer wrote: > On 9/12/2018 7:42 AM, Paul B Mahol wrote: >> Signed-off-by: Paul B Mahol >> --- >> libavutil/float_dsp.c | 9 + >> libavutil/float_dsp.h | 16 >> 2 files changed, 25 insertions(+) > > Ah, i had a patch like this lying around but never

Re: [FFmpeg-devel] [PATCH 1/2] avutil: add float_dsp.vector_dmul

2018-09-12 Thread James Almer
On 9/12/2018 7:42 AM, Paul B Mahol wrote: > Signed-off-by: Paul B Mahol > --- > libavutil/float_dsp.c | 9 + > libavutil/float_dsp.h | 16 > 2 files changed, 25 insertions(+) Ah, i had a patch like this lying around but never got to send it. I still have the x86 simd

[FFmpeg-devel] [PATCH] lavfi/vf_scale_vaapi: add scaling mode setting support.

2018-09-12 Thread Jun Zhao
before this change, scale_vaapi hard coding the scaling mode, add a new option "mode" to setting the scaling mode, it can be use to tunning the VPP pipeline for performance. Signed-off-by: Jun Zhao --- libavfilter/vf_scale_vaapi.c | 36 +--- 1 files changed, 33

[FFmpeg-devel] [PATCH 1/2] avutil: add float_dsp.vector_dmul

2018-09-12 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavutil/float_dsp.c | 9 + libavutil/float_dsp.h | 16 2 files changed, 25 insertions(+) diff --git a/libavutil/float_dsp.c b/libavutil/float_dsp.c index 1d4911d815..6e28d71b57 100644 --- a/libavutil/float_dsp.c +++

[FFmpeg-devel] [PATCH 2/2] avfilter: add amultiply audio filter

2018-09-12 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavfilter/Makefile | 1 + libavfilter/af_amultiply.c | 221 + libavfilter/allfilters.c | 1 + 3 files changed, 223 insertions(+) create mode 100644 libavfilter/af_amultiply.c diff --git a/libavfilter/Makefile

Re: [FFmpeg-devel] adding file append option to file: protocol

2018-09-12 Thread Gyan
On Wed, Sep 12, 2018 at 12:55 AM Duane Salbi wrote: > The file protocol always creates new files. For mpeg1 and mpeg2, one can > append directly. > > It would seem to be a small change to the file protocol to add a flag to > support opening the file in append mode. > > Is there a good reason

[FFmpeg-devel] [PATCH] avfilter/buffersink.h: fix comment typo of av_buffersink_get_samples

2018-09-12 Thread Steven Liu
Signed-off-by: Steven Liu --- libavfilter/buffersink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/buffersink.h b/libavfilter/buffersink.h index 21d6bb505b..3c846bb527 100644 --- a/libavfilter/buffersink.h +++ b/libavfilter/buffersink.h @@ -151,7 +151,7 @@ int

Re: [FFmpeg-devel] [PATCH 2/2] avfilter/vf_remap: add bilinear interpolation

2018-09-12 Thread Moritz Barsnick
On Tue, Sep 11, 2018 at 21:49:33 +0200, Paul B Mahol wrote: > +@table @samp > +@item nearest > +Use values from the nearest neighbor interpolation. > +@item bilinear > +Interpolate values using the bilinear interpolation. > +@end table Nit: Default is @code{nearest}. Moritz

[FFmpeg-devel] [PATCH] lavc/libxavs2: remove invalid parameters

2018-09-12 Thread hwren
Signed-off-by: hwren --- doc/encoders.texi | 3 --- libavcodec/libxavs2.c | 4 2 files changed, 7 deletions(-) diff --git a/doc/encoders.texi b/doc/encoders.texi index 4623f38..0696a7a 100644 --- a/doc/encoders.texi +++ b/doc/encoders.texi @@ -2761,9 +2761,6 @@ Set the Speed level from

[FFmpeg-devel] [PATCH 1/2] lavc/libdavs2: remove unused head files

2018-09-12 Thread hwren
Signed-off-by: hwren --- libavcodec/libdavs2.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/libavcodec/libdavs2.c b/libavcodec/libdavs2.c index 70aae3e..ab9e511 100644 --- a/libavcodec/libdavs2.c +++ b/libavcodec/libdavs2.c @@ -22,13 +22,7 @@ * Foundation, Inc., 51 Franklin Street,

[FFmpeg-devel] [PATCH 2/2] lavc/libdavs2: fix error type

2018-09-12 Thread hwren
Signed-off-by: hwren --- libavcodec/libdavs2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/libdavs2.c b/libavcodec/libdavs2.c index ab9e511..aa14782 100644 --- a/libavcodec/libdavs2.c +++ b/libavcodec/libdavs2.c @@ -50,7 +50,7 @@ static av_cold int