[FFmpeg-devel] [PATCH] libavfilter/vf_drawtext: Avoid undefined behavior from GET_UTF8

2019-07-26 Thread Aaron Boushley
The vf_drawtext filter uses the GET_UTF8 macro in multiple locations. Each of these use `continue;` as the error handler. However the documentation for the GET_UTF8 macro states "ERROR should not contain a loop control statement which could interact with the internal while loop, and should force an

[FFmpeg-devel] [PATCH v3] libavfilter: Update derain filter doc.

2019-07-26 Thread Xuewei Meng
Add the usage of tensorflow model in derain filter. Training scripts as well as scripts for tf/native model generation are provided in the repository at https://github.com/XueweiMeng/derain_filter.git. Signed-off-by: Xuewei Meng --- doc/filters.texi | 16 1 file changed, 12 inse

Re: [FFmpeg-devel] [PATCH 1/5] cbs: Add some common code for read/write of miscellaneous user data

2019-07-26 Thread Aman Gupta
On Sun, Mar 25, 2018 at 10:41 AM Mark Thompson wrote: > Supports closed captions, active format and bar data as defined by > SCTE 128 part 1 or A/53 part 4, suitable for use with both MPEG-2 > and H.264. > --- > libavcodec/cbs_misc.c | 216 > ++ >

Re: [FFmpeg-devel] [PATCH 1/3] avformat/s337m: Make available as subdemuxer

2019-07-26 Thread Michael Niedermayer
On Fri, Jul 26, 2019 at 06:45:15PM +0200, Nicolas Gaullier wrote: > --- > libavformat/s337m.c | 57 > +++-- > libavformat/s337m.h | 48 > 2 files changed, 95 insertions(+), 10 deletions(-) > create mode

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

2019-07-26 Thread Michael Niedermayer
On Fri, Jul 26, 2019 at 06:45:16PM +0200, Nicolas Gaullier wrote: > --- > libavformat/avformat.h | 7 +++ > libavformat/mxfdec.c| 20 +++- > libavformat/options_table.h | 1 + > libavformat/wavdec.c| 7 ++- > 4 files changed, 33 insertions(+), 2 dele

[FFmpeg-devel] Fix for closed connection with http_persistent

2019-07-26 Thread Ian Klassen
Hi, Here is a potential fix for this bug: https://trac.ffmpeg.org/ticket/7975 Before reusing the connection the headers are checked to see if the server is closing the connection. Also, the server may respond with "Connection: Keep-alive, close" so the patch also handles this. Thanks. Ian

[FFmpeg-devel] [PATCH v2 2/3] lavfi: modify avfilter_get_matrix to support separate scale factors

2019-07-26 Thread Jarek Samic
--- I have renamed `avfilter_get_matrix` to `ff_get_matrix` as per the comments on the last patch. libavfilter/transform.c | 13 ++--- libavfilter/transform.h | 30 +++--- libavfilter/vf_deshake.c | 7 +-- 3 files changed, 34 insertions(+), 16 deletions(-)

[FFmpeg-devel] [PATCH v2 1/3] lavfi: add utilities to reduce OpenCL boilerplate code

2019-07-26 Thread Jarek Samic
--- libavfilter/opencl.c | 10 +++ libavfilter/opencl.h | 142 +-- 2 files changed, 146 insertions(+), 6 deletions(-) diff --git a/libavfilter/opencl.c b/libavfilter/opencl.c index 95f0bfc604..8e96543467 100644 --- a/libavfilter/opencl.c +++ b/libavfilter/

[FFmpeg-devel] [PATCH v2 3/3] lavfi: add deshake_opencl filter

2019-07-26 Thread Jarek Samic
--- This filter is the subject of my GSoC project. This is a video stabilization / deshake filter (name undetermined, feel free to discuss) that uses feature point matching and RANSAC to determine a camera path, smooths the camera path with a gaussian filter, and then applies the new path to th

Re: [FFmpeg-devel] Patchwork: how to reset password?

2019-07-26 Thread Darren Mo
I have the same problem. Hopefully someone with access is able to fix it. > On Jul 26, 2019, at 4:38 AM, Andreas Håkon > wrote: > > Hi, > > I'm sorry to post this on this mailing list. However, I need to clean my > patches > on the Patchwork's FFmpeg server, but the "Reset Password" service d

Re: [FFmpeg-devel] [PATCH] avfilter: add square audio source filter

2019-07-26 Thread Paul B Mahol
Nicolas, are you fine with this changes? On Wed, Jul 24, 2019 at 1:29 PM Paul B Mahol wrote: > On 7/14/19, Paul B Mahol wrote: > > Signed-off-by: Paul B Mahol > > --- > > doc/filters.texi | 44 > > libavfilter/Makefile | 1 + > > libavfilter/allfilters.c | 1

Re: [FFmpeg-devel] [PATCH 1/5] avcodec/brenderpix: Check input size before allocating image

2019-07-26 Thread Michael Niedermayer
On Fri, Jul 26, 2019 at 07:46:10PM +0200, Paul B Mahol wrote: > I guess it is fine. will apply thanks [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB The smallest minority on earth is the individual. Those who deny individual rights cannot claim to be defender

Re: [FFmpeg-devel] [PATCH 1/5] avcodec/brenderpix: Check input size before allocating image

2019-07-26 Thread Paul B Mahol
I guess it is fine. On Fri, Jul 26, 2019 at 6:28 PM Michael Niedermayer wrote: > An incomplete image is not supported prior to this and will > not produce any output. This commit moves the failure before > time consuming operations. > > Fixes: Timeout (81sec -> 76ms) > Fixes: > 15723/clusterfuzz

Re: [FFmpeg-devel] [PATCH v2] libavfilter: Update derain filter doc.

2019-07-26 Thread Michael Niedermayer
On Fri, Jul 26, 2019 at 10:54:27AM +0800, Xuewei Meng wrote: > Add the usage of tensorflow model in derain filter. Training scripts > as well as scripts for tf/native model generation are provided in the > repository at https://github.com/XueweiMeng/derain_filter.git. > > Signed-off-by: Xuewei Men

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/assdec: undefined use of memcpy()

2019-07-26 Thread Michael Niedermayer
On Thu, Jul 25, 2019 at 11:38:48AM +0200, Paul B Mahol wrote: > On 7/24/19, Michael Niedermayer wrote: > > Fixes: null pointer passed as argument 2, which is declared to never be null > > Fixes: > > 16008/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SSA_fuzzer-5650582821404672 > > (this is a

[FFmpeg-devel] [PATCH 3/3] avformat/s337m: Test mxf subdemux

2019-07-26 Thread Nicolas Gaullier
incl. 24bits 5.1+2 dolby_e decoding --- tests/Makefile | 1 + tests/fate-run.sh| 4 tests/fate/audio.mak | 5 + 3 files changed, 10 insertions(+) diff --git a/tests/Makefile b/tests/Makefile index 624292d451..e8e23085eb 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -74,6

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

2019-07-26 Thread Nicolas Gaullier
--- libavformat/avformat.h | 7 +++ libavformat/mxfdec.c| 20 +++- libavformat/options_table.h | 1 + libavformat/wavdec.c| 7 ++- 4 files changed, 33 insertions(+), 2 deletions(-) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 6

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

2019-07-26 Thread Paul B Mahol
On Fri, Jul 26, 2019 at 6:45 PM Nicolas Gaullier < nicolas.gaull...@arkena.com> wrote: > --- > libavformat/avformat.h | 7 +++ > libavformat/mxfdec.c| 20 +++- > libavformat/options_table.h | 1 + > libavformat/wavdec.c| 7 ++- > 4 files changed, 33

[FFmpeg-devel] [PATCH 1/3] avformat/s337m: Make available as subdemuxer

2019-07-26 Thread Nicolas Gaullier
--- libavformat/s337m.c | 57 +++-- libavformat/s337m.h | 48 2 files changed, 95 insertions(+), 10 deletions(-) create mode 100644 libavformat/s337m.h diff --git a/libavformat/s337m.c b/libavformat/s337

[FFmpeg-devel] [PATCH 0/3] avformat: Use s337m subdemux inside mxf/wav

2019-07-26 Thread Nicolas Gaullier
In case of an mxf or wav file having stereo tracks, the new 'dolbyeprobe' flag enables detection of dolby_e. The probing is done on the first sample and its guard band must be clean (to avoid wrong detection). Tests samples for fate-suite/dolby_e uploaded here: https://framadrop.org/r/u_JxHeVIRc#

Re: [FFmpeg-devel] [PATCH 4/4] avcodec/mediacodec_wrapper: remove unused local variables in ff_AMediaCodec_getCodecNameByType()

2019-07-26 Thread Matthieu Bouron
On Tue, Jul 23, 2019 at 01:09:41AM +0200, Michael Niedermayer wrote: > On Mon, Jul 22, 2019 at 09:02:15AM +0200, Matthieu Bouron wrote: > > On Fri, Jul 19, 2019 at 09:40:52AM +0200, Matthieu Bouron wrote: > > > On Sun, Jul 14, 2019 at 08:17:03PM +0200, Matthieu Bouron wrote: > > > > On Thu, Jul 04,

[FFmpeg-devel] [PATCH 4/5] avcodec/alsdec: Fix integer overflows of raw_samples in decode_var_block_data()

2019-07-26 Thread Michael Niedermayer
This also makes the code consistent with the existing similar MUL64() in decode_var_block_data() Fixes: signed integer overflow: -7277630735906765035 + -3272193951413647896 cannot be represented in type 'long' Fixes: 16015/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ALS_fuzzer-566655281843

[FFmpeg-devel] [PATCH 1/5] avcodec/brenderpix: Check input size before allocating image

2019-07-26 Thread Michael Niedermayer
An incomplete image is not supported prior to this and will not produce any output. This commit moves the failure before time consuming operations. Fixes: Timeout (81sec -> 76ms) Fixes: 15723/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_BRENDER_PIX_fuzzer-5147265653538816 Found-by: continuo

[FFmpeg-devel] [PATCH 2/5] avcodec/alsdec: Fix integer overflow of raw_samples in decode_blocks()

2019-07-26 Thread Michael Niedermayer
Fixes: signed integer overflow: 2147483424 - -1772303236 cannot be represented in type 'int' Fixes: 15708/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ALS_fuzzer-5067890362941440 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-

[FFmpeg-devel] [PATCH 3/5] avcodec/alsdec: Check for block_length <= 0 in read_var_block_data()

2019-07-26 Thread Michael Niedermayer
Fixes: left shift of negative value -1 Fixes: 15719/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ALS_fuzzer-5685731105701888 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/alsdec.c | 2 +

[FFmpeg-devel] [PATCH 5/5] avcodec/alsdec: fix mantisse shift

2019-07-26 Thread Michael Niedermayer
Fixes: shift exponent -1 is negative Fixes: 16039/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ALS_fuzzer-5656825657032704 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/alsdec.c | 6 +++

Re: [FFmpeg-devel] [PATCH 1/4] libavfilter/dnn: move dnn files from libavfilter to libavfilter/dnn

2019-07-26 Thread Pedro Arthur
Em sex, 26 de jul de 2019 às 13:02, Pedro Arthur escreveu: > > Hi, > It fails fate source guard header tests, > The headers should be changed from AVFILTER_DNN_BACKEND_xxx to > AVFILTER_DNN_DNN_BACKEND_xxx. Changed locally and pushed. > Other than that it LGTM. > > Em ter, 16 de jul de 2019 às 02

Re: [FFmpeg-devel] [PATCH 1/4] libavfilter/dnn: move dnn files from libavfilter to libavfilter/dnn

2019-07-26 Thread Pedro Arthur
Hi, It fails fate source guard header tests, The headers should be changed from AVFILTER_DNN_BACKEND_xxx to AVFILTER_DNN_DNN_BACKEND_xxx. Other than that it LGTM. Em ter, 16 de jul de 2019 às 02:58, Guo, Yejun escreveu: > > it is expected that there will be more files to support native mode, > so

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

2019-07-26 Thread Paul B Mahol
Hi, patch attached. 0001-avfilter-add-arnndn-filter.patch Description: Binary data ___ 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...@f

Re: [FFmpeg-devel] [PATCH 1/2] dnn: add layer pad which is equivalent to tf.pad

2019-07-26 Thread Pedro Arthur
Hi, Em seg, 1 de jul de 2019 às 05:10, Guo, Yejun escreveu: > > the reason to add this layer first is that vf_sr uses it in its > tensorflow model, and the next plan is to update the python script > to convert tf.pad into native model. > > Signed-off-by: Guo, Yejun > --- > libavfilter/dnn/Makef

Re: [FFmpeg-devel] [PATCH] avcodec/adxenc: add EOF header

2019-07-26 Thread James Almer
On 7/24/2019 6:37 AM, Paul B Mahol wrote: > Hi, > > patch attached. > From dc6473383580af963a120a7de89bdc34c460d000 Mon Sep 17 00:00:00 2001 > From: Paul B Mahol > Date: Wed, 24 Jul 2019 11:11:35 +0200 > Subject: [PATCH] avcodec/adxenc: add EOF header > > Fixes #8031. > > --- > libavcodec/adx

[FFmpeg-devel] [PATCH] avdevice/decklink: adjust for timecode lag

2019-07-26 Thread Gyan
Patch supported by and tested at Google. Gyan From e51bd8201ddf618dce33ada70a9bc6ce2f33b07b Mon Sep 17 00:00:00 2001 From: Gyan Doshi Date: Mon, 1 Jul 2019 23:43:44 +0530 Subject: [PATCH] avdevice/decklink: adjust for timecode lag The decklink demuxer may not start receiving timecode with the

[FFmpeg-devel] Patchwork: how to reset password?

2019-07-26 Thread Andreas Håkon
Hi, I'm sorry to post this on this mailing list. However, I need to clean my patches on the Patchwork's FFmpeg server, but the "Reset Password" service doesn't seem to work. After days of selecting the Reset Form with the correct email address (if I try to register again, the email address is in u

[FFmpeg-devel] [PATCH] avcodec/mips: [loongson] refine process of setting block as 0 in h264dsp_mmi.

2019-07-26 Thread Shiyou Yin
1. Refine setting zero process in function ff_h264_add_pixels4_8_mmi and ff_h264_idct_add_8_mmi. 2. Remove redundant setting zeor process in function ff_h264_idct_add_8_mmi and ff_h264_idct8_add_8_mmi. --- libavcodec/mips/h264dsp_mmi.c | 44 +-- 1 file

[FFmpeg-devel] [PATCH v9 2/2] lavc/tiff: Decode embedded JPEGs in DNG images

2019-07-26 Thread velocityra
From: Nick Renieris Used a technique similar to lavc/tdsc.c for invoking the MJPEG decoder. This commit adds support for: - DNG tiles - DNG tile huffman lossless JPEG decoding - DNG 8-bpp ("packed" as dcraw calls it) decoding - DNG color scaling [1] - LinearizationTable tag - BlackLevel tag

[FFmpeg-devel] [PATCH v9 1/2] lavc/mjpegdec: Decode Huffman-coded lossless JPEGs embedded in DNGs

2019-07-26 Thread velocityra
From: Nick Renieris Main image data in DNGs is usually comprised of tiles, each of which is a Huffman-encoded lossless JPEG. Tested for ljpeg regressions with: `ffmpeg -f lavfi -i testsrc=d=1 -vcodec ljpeg test.avi` `ffmpeg test.avi out.avi` The modified code in ljpeg_decode_rgb_scan runs witho

[FFmpeg-devel] [PATCH] lavu/hwcontext_qsv: fix the memory leak

2019-07-26 Thread Linjie Fu
av_dict_free child_device_opts to fix the memory leak. Signed-off-by: Linjie Fu --- libavutil/hwcontext_qsv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c index 59e4ed9157..0329a81ec3 100644 --- a/libavutil/hwcontext_qsv.c +++ b/liba

[FFmpeg-devel] [PATCH v8 1/2] lavc/mjpegdec: Decode Huffman-coded lossless JPEGs embedded in DNGs

2019-07-26 Thread velocityra
From: Nick Renieris Main image data in DNGs is usually comprised of tiles, each of which is a Huffman-encoded lossless JPEG. Tested for ljpeg regressions with: `ffmpeg -f lavfi -i testsrc=d=1 -vcodec ljpeg test.avi` `ffmpeg test.avi out.avi` The modified code in ljpeg_decode_rgb_scan runs witho

[FFmpeg-devel] [PATCH v8 2/2] lavc/tiff: Decode embedded JPEGs in DNG images

2019-07-26 Thread velocityra
From: Nick Renieris Used a technique similar to lavc/tdsc.c for invoking the MJPEG decoder. This commit adds support for: - DNG tiles - DNG tile huffman lossless JPEG decoding - DNG 8-bpp ("packed" as dcraw calls it) decoding - DNG color scaling [1] - LinearizationTable tag - BlackLevel tag

Re: [FFmpeg-devel] [PATCH v7 2/2] lavc/tiff: Decode embedded JPEGs in DNG images

2019-07-26 Thread Nick Renieris
Στις Παρ, 26 Ιουλ 2019 στις 2:21 π.μ., ο/η Reimar Döffinger έγραψε: > > On 25.07.2019, at 17:35, velocit...@gmail.com wrote: > > > +// Lookup table lookup > > +if (lut) > > +value = lut[value]; > > As this function is in the innermost loop, doing the if here instead of > having 2

Re: [FFmpeg-devel] [PATCH] avcodec/rl2: set dimensions

2019-07-26 Thread Michael Niedermayer
On Thu, Jul 25, 2019 at 05:55:02PM +0200, Paul B Mahol wrote: > On 7/25/19, Michael Niedermayer wrote: > > On Wed, Jul 24, 2019 at 02:42:24PM +0200, Lynne wrote: > >> Jul 24, 2019, 11:08 AM by mich...@niedermayer.cc: > >> > >> > > >> > What did you expect ? IIRC you have asked for whole classes of