Re: [FFmpeg-devel] [PATCH] avfilter/alimiter: Add "flush_buffer" option to flush the remaining valid data to the output

2022-04-09 Thread Paul B Mahol
On Fri, Apr 8, 2022 at 10:41 PM Wang Cao wrote: > On Fri, Apr 8, 2022 at 11:40 AM Paul B Mahol wrote: > > > On Thu, Apr 7, 2022 at 11:56 PM Wang Cao < > wangcao-at-google@ffmpeg.org > > > > > wrote: > > > > > On Thu, Apr 7, 2022 at 12:44 AM Paul B Mahol wrote: > > > > > > > On Wed, Apr 6, 2

[FFmpeg-devel] [PATCH] avfilter: add colormap video filter

2022-04-09 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- doc/filters.texi | 24 ++ libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/vf_colormap.c | 510 ++ 4 files changed, 536 insertions(+) create mode 100644 libavfilter/vf_colormap.c diff

Re: [FFmpeg-devel] [PATCH v13 3/4] avcodec/libjxl: add Jpeg XL encoding via libjxl

2022-04-09 Thread Anton Khirnov
Quoting Leo Izen (2022-04-05 18:55:03) > +static int libjxl_init_jxl_encoder(AVCodecContext *avctx) > +{ > +LibJxlEncodeContext *ctx = avctx->priv_data; > + > +/* reset the encoder every frame for image2 muxer */ > +JxlEncoderReset(ctx->encoder); > + > +ctx->options = JxlEncoderFram

[FFmpeg-devel] [PATCH 1/3] doc/encoders.texi: Document cinepak encoder

2022-04-09 Thread Tomas Härdin
From 3cca353f177b9b91e1472fa60a6295e576142c59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= Date: Sat, 9 Apr 2022 10:21:31 +0200 Subject: [PATCH 1/3] doc/encoders.texi: Document cinepak encoder --- doc/encoders.texi | 48 +++ 1 file c

[FFmpeg-devel] [PATCH 2/3] libavcodec/cinepakenc: Mark no-skip frames as keyframes

2022-04-09 Thread Tomas Härdin
From 442bf0fbba4e13aa7d05ff5c30b07d4c94a8182c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= Date: Sat, 9 Apr 2022 14:38:47 +0200 Subject: [PATCH 2/3] libavcodec/cinepakenc: Mark no-skip frames as keyframes Reset curframe whenever we generate a keyframe. Use -g instead of -keyint

[FFmpeg-devel] [PATCH 3/3] doc/encoders.texi: Document updated behavior

2022-04-09 Thread Tomas Härdin
I forgot to comment on the previous patch the change from -keyint_min to -g. It didn't really make much difference then since the encoder would put keyframes at fixed interval in addition to any accidental keyframes that the encoder may deem appropriate /Tomas From 99c3b511252ba403b1aa7f00d31f9455

[FFmpeg-devel] [PATCH] libavformat/mpegts.c: add: parse EIT descriptors

2022-04-09 Thread TADANO Tokumei
This patch add to parse descriptors on EIT packets. The patch is intended to set information to current program and/or A/V stream. On Japanese ISDB, some important / useful information is provided via EIT only. ref: ARIB STD B10 Table 6-1, Section 6.1, Part 2. This patch only parse short event des

Re: [FFmpeg-devel] [PATCH v13 3/4] avcodec/libjxl: add Jpeg XL encoding via libjxl

2022-04-09 Thread James Almer
On 4/9/2022 10:17 AM, Anton Khirnov wrote: Quoting Leo Izen (2022-04-05 18:55:03) +static int libjxl_init_jxl_encoder(AVCodecContext *avctx) +{ +LibJxlEncodeContext *ctx = avctx->priv_data; + +/* reset the encoder every frame for image2 muxer */ +JxlEncoderReset(ctx->encoder); + +

Re: [FFmpeg-devel] [PATCH v13 3/4] avcodec/libjxl: add Jpeg XL encoding via libjxl

2022-04-09 Thread Hendrik Leppkes
On Sat, Apr 9, 2022 at 5:38 PM James Almer wrote: > > > > On 4/9/2022 10:17 AM, Anton Khirnov wrote: > > Quoting Leo Izen (2022-04-05 18:55:03) > >> +static int libjxl_init_jxl_encoder(AVCodecContext *avctx) > >> +{ > >> +LibJxlEncodeContext *ctx = avctx->priv_data; > >> + > >> +/* reset t

Re: [FFmpeg-devel] [PATCH] libavformat/mpegts.c: fix to check end of each descriptor of SDT

2022-04-09 Thread Marton Balint
On Sun, 3 Apr 2022, TADANO Tokumei wrote: Current code incorrectly check against end of section rather than end of descriptor. Thanks, applied. Regards, Marton Signed-off-by: TADANO Tokumei --- libavformat/mpegts.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

Re: [FFmpeg-devel] [PATCH] libavformat/mpegts.c: ignore a section with next flag

2022-04-09 Thread Marton Balint
On Sun, 3 Apr 2022, TADANO Tokumei wrote: 'current_next_indicator' of 0 (next) on each section header indicates the service information is for immediate future one. ffmpeg doesn't need to parse it but current (1) one. ref: section 5.1.1 of DVB BlueBook A038 (EN 300 468) Thanks, applied. R

Re: [FFmpeg-devel] [PATCH] libavformat/mpegts.c: add: parse EIT descriptors

2022-04-09 Thread Marton Balint
On Sun, 10 Apr 2022, TADANO Tokumei wrote: This patch add to parse descriptors on EIT packets. The patch is intended to set information to current program and/or A/V stream. On Japanese ISDB, some important / useful information is provided via EIT only. ref: ARIB STD B10 Table 6-1, Section 6.1

Re: [FFmpeg-devel] [PATCH 1/1] librtmp: make flashVer case consistent

2022-04-09 Thread Marton Balint
On Wed, 6 Apr 2022, Tristan Matthews wrote: This is basically a cosmetic change (no functional difference). --- libavformat/librtmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/librtmp.c b/libavformat/librtmp.c index 43013e46e0..b23adb9593 100644 --- a/lib

Re: [FFmpeg-devel] [PATCH] avcodec/pcm_rechunk_bsf: unref packet before putting a new one in

2022-04-09 Thread Marton Balint
On Wed, 30 Mar 2022, Michael Niedermayer wrote: On Tue, Mar 29, 2022 at 06:33:06PM -0300, James Almer wrote: On 3/29/2022 6:24 PM, Michael Niedermayer wrote: Fixes: memleak Fixes: 45982/clusterfuzz-testcase-minimized-ffmpeg_BSF_PCM_RECHUNK_fuzzer-5562089618407424 Found-by: continuous fuzz

Re: [FFmpeg-devel] [PATCH] avformat/codec2: remove surplus include 'memory.h' statement

2022-04-09 Thread Marton Balint
On Thu, 24 Mar 2022, Tomas Härdin wrote: ons 2022-03-23 klockan 16:26 +1100 skrev Peter Ross: on glibc memory.h drags in string.h, but codec2 does not use any str* or mem* functions. additionally, memory.h is not part of the C99 or POSIX standards. ---  libavformat/codec2.c | 1 -  1 file chan

[FFmpeg-devel] [PATCH] avfilter: add Audio Video Sync Test filter

2022-04-09 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- doc/filters.texi | 37 libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/src_avsynctest.c | 401 +++ 4 files changed, 440 insertions(+) create mode 100644 libavfilter/src_avsyn

Re: [FFmpeg-devel] [PATCH] avfilter: add Audio Video Sync Test filter

2022-04-09 Thread Paul B Mahol
will apply soon ___ 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...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH 1/6] Fix dshow device name/description

2022-04-09 Thread Marton Balint
On Tue, 22 Mar 2022, Diederick C. Niehorster wrote: On Tue, Mar 22, 2022 at 3:10 PM Roger Pack wrote: On Tue, Mar 22, 2022 at 7:40 AM wrote: From: Romain Beauxis diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c index 6039578ff9..4ee3f6e194 100644 --- a/libavdevice/dshow.c +++ b/

[FFmpeg-devel] [PATCH] avfilter/vf_drawbox: remove redefinition of DrawBoxContext typedef

2022-04-09 Thread James Almer
Old GCC and Clang apparently don't like it. Signed-off-by: James Almer --- Untested since i don't have old compilers. See http://fate.ffmpeg.org/report.cgi?time=20220409194302&slot=x86_64-netbsd-clang-noopt http://fate.ffmpeg.org/report.cgi?time=20220409194413&slot=x86_64-netbsd-gcc34 http://fa

Re: [FFmpeg-devel] [PATCH 8/8] fate: add fate tests for VBN encoder and decoder

2022-04-09 Thread Marton Balint
On Wed, 30 Mar 2022, Marton Balint wrote: Signed-off-by: Marton Balint --- tests/Makefile | 1 + tests/fate-run.sh| 11 +++ tests/fate/vbn.mak | 36 tests/ref/fate/vbn-dxt1 | 11 +++ tests/ref/fate/vbn

Re: [FFmpeg-devel] [PATCH] avcodec/libwebpenc_animencoder: Fix memory leak of WebPData in libwebp_anim_encode_frame()

2022-04-09 Thread Marton Balint
On Wed, 23 Mar 2022, Andrey Volk wrote: Signed-off-by: Andrey Volk --- libavcodec/libwebpenc_animencoder.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) Thanks, applied. Regards, Marton diff --git a/libavcodec/libwebpenc_animencoder.c b/libavcodec/libwebpenc_animencoder.c i

[FFmpeg-devel] [PATCH] avfilter/lensfun: add option db_path

2022-04-09 Thread Gyan Doshi
The lensfun filter, at present, loads its database from a path hardcoded at build time. This may not be known or available to end users. Added option db_path allows custom path. --- doc/filters.texi | 4 libavfilter/vf_lensfun.c | 8 +--- 2 files changed, 9 insertions(+), 3 delet