Re: [FFmpeg-devel] Temporary delays in patch reviewing and testing by me

2023-12-22 Thread Anton Khirnov
Quoting Kieran Kunhya (2023-12-22 02:40:55) > On Fri, 22 Dec 2023, 00:36 Michael Niedermayer, > wrote: > > > On Thu, Dec 21, 2023 at 03:22:20AM +0100, Michael Niedermayer wrote: > > > Hi all > > > > > > My main development machiene died today, so expect increased delays > > > about things that in

Re: [FFmpeg-devel] Temporary delays in patch reviewing and testing by me

2023-12-22 Thread Kieran Kunhya
On Fri, 22 Dec 2023 at 08:05, Anton Khirnov wrote: > Quoting Kieran Kunhya (2023-12-22 02:40:55) > > On Fri, 22 Dec 2023, 00:36 Michael Niedermayer, > > wrote: > > > > > On Thu, Dec 21, 2023 at 03:22:20AM +0100, Michael Niedermayer wrote: > > > > Hi all > > > > > > > > My main development machie

Re: [FFmpeg-devel] [PATCH 1/2] configure: Remove a redundant check for UWP mode

2023-12-22 Thread Martin Storsjö
On Fri, 22 Dec 2023, Wu, Tong1 wrote: Subject: [FFmpeg-devel] [PATCH 1/2] configure: Remove a redundant check for UWP mode The check for UWP mode was duplicated from right above, in d54127c41a81cf2078a3504f78e0e4232cfe11b7. Also, instead of several lines with "enabled uwp && ...", make one "

Re: [FFmpeg-devel] [PATCH 1/2] configure: Remove a redundant check for UWP mode

2023-12-22 Thread Wu, Tong1
>From: ffmpeg-devel On Behalf Of >Martin Storsjö >Sent: Friday, December 22, 2023 4:41 PM >To: FFmpeg development discussions and patches de...@ffmpeg.org> >Subject: Re: [FFmpeg-devel] [PATCH 1/2] configure: Remove a redundant check >for UWP mode > >On Fri, 22 Dec 2023, Wu, Tong1 wrote: > >> >>

Re: [FFmpeg-devel] [PATCH] [MXF] - Add jpeg2000 subdescriptor in MXF file (V2).

2023-12-22 Thread Cédric Le Barz
Le 21/12/2023 à 12:11, Tomas Härdin a écrit : ons 2023-12-20 klockan 18:04 +0100 skrev Cédric Le Barz: Le 19/12/2023 à 14:36, Tomas Härdin a écrit : +for ( comp = 0; comp < component_count; comp++ ) { +avio_write(pb, &sc->j2k_info.j2k_comp_desc[3*comp] , 3); +} Looks like this

[FFmpeg-devel] [PATCH] avutil/hwcontext_d3d12va: Use av_image_copy() wrapper

2023-12-22 Thread Andreas Rheinhardt
Avoids casts all over the place; in this case, it also replaces the unsafe cast uint8_t**->const uint8_t ** by the safe cast uint8_t**->const uint8_t * const*. Signed-off-by: Andreas Rheinhardt --- libavutil/hwcontext_d3d12va.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff

Re: [FFmpeg-devel] [PATCH] lavc: remove the QOA decoder

2023-12-22 Thread Paul B Mahol
On Fri, Dec 22, 2023 at 7:28 AM Anton Khirnov wrote: > Hi Paul, > Quoting Paul B Mahol (2023-12-21 21:05:18) > > Say what serious feature you contributed ? - Nothing. > > this is a personal attach. Personal attacks are not allowed on this > mailing list. Please refrain from them in the future. >

Re: [FFmpeg-devel] [PATCH 1/6] checkasm/takdsp: add decorrelate_ls test

2023-12-22 Thread Martin Storsjö
On Mon, 18 Dec 2023, flow gg wrote: +static void test_decorrelate_ls(TAKDSPContext *s) { +#define BUF_SIZE 1024 +declare_func(void, int32_t *, int32_t *, int); + +if (check_func(s->decorrelate_ls, "decorrelate_ls")) { +LOCAL_ALIGNED_32(int32_t, p1, [BUF_SIZE]); +LOCAL

Re: [FFmpeg-devel] [PATCH 2/6] checkasm/takdsp: add decorrelate_sr test

2023-12-22 Thread Martin Storsjö
On Mon, 18 Dec 2023, flow gg wrote: +static void test_decorrelate_sr(TAKDSPContext *s) { +#define BUF_SIZE 1024 +declare_func(void, int32_t *, int32_t *, int); + +if (check_func(s->decorrelate_sr, "decorrelate_sr")) { +LOCAL_ALIGNED_32(int32_t, p1, [BUF_SIZE]); +LOCAL

Re: [FFmpeg-devel] [PATCH 3/6] checkasm/takdsp: add decorrelate_sm test

2023-12-22 Thread Martin Storsjö
On Mon, 18 Dec 2023, flow gg wrote: +static void test_decorrelate_sm(TAKDSPContext *s) { +#define BUF_SIZE 1024 +declare_func(void, int32_t *, int32_t *, int); + +if (check_func(s->decorrelate_sm, "decorrelate_sm")) { +LOCAL_ALIGNED_32(int32_t, p1, [BUF_SIZE]); +LOCAL

[FFmpeg-devel] [PATCH] checkasm: Fix the takdsp tests

2023-12-22 Thread Martin Storsjö
For memcpy and memcmp, we need to multiply by the element size, otherwise we're copying and comparing only a fraction of the buffer. For decorrelate_sr, the buffer p1 is the one that is mutated; copy and check p1 instead of p2. For decorrelate_sm, both buffers are mutated, so copy and check both

Re: [FFmpeg-devel] [PATCH 1/2] checkasm/takdsp: add decorrelate_sf test

2023-12-22 Thread Martin Storsjö
On Thu, 21 Dec 2023, James Almer wrote: Signed-off-by: James Almer --- tests/checkasm/takdsp.c | 36 +--- 1 file changed, 33 insertions(+), 3 deletions(-) @@ -113,6 +113,35 @@ static void test_decorrelate_sm(TAKDSPContext *s) { report("decorrelate_sm"); }

Re: [FFmpeg-devel] [PATCH 1/2] configure: Remove a redundant check for UWP mode

2023-12-22 Thread Martin Storsjö
On Fri, 22 Dec 2023, Wu, Tong1 wrote: From: ffmpeg-devel On Behalf Of Martin Storsjö Sent: Friday, December 22, 2023 4:41 PM To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH 1/2] configure: Remove a redundant check for UWP mode On Fri, 22 Dec 2023, Wu, Tong1 w

[FFmpeg-devel] [PATCH] avcodec/mpegvideo_enc: Don't copy non-existent padding

2023-12-22 Thread Andreas Rheinhardt
The allocated buffer of an AVFrame need not be height * linesize big. In case there is padding between lines, the last line need not have this padding. Pathological examples exist with height == 1 (where linesize is not really meaningful); non-pathological examples are produced by the separatefield

Re: [FFmpeg-devel] [PATCH 13/13 v3] fftools/ffmpeg: convert to a threaded architecture

2023-12-22 Thread Anton Khirnov
Quoting Paul B Mahol (2023-12-21 12:53:58) > On Thu, Dec 7, 2023 at 6:26 PM Paul B Mahol wrote: > > > > > > > On Wed, Dec 6, 2023 at 2:38 PM Nicolas George wrote: > > > >> James Almer (12023-12-06): > >> > I honestly can't believe you're arguing this. > >> > >> Yet I do, so I suggest you think a

Re: [FFmpeg-devel] [PATCH 1/2] lavf: allow setting AVStream.discard as an AVOption

2023-12-22 Thread Anton Khirnov
Quoting James Almer (2023-12-20 04:02:37) > On 12/19/2023 9:10 AM, Anton Khirnov wrote: > > Quoting James Almer (2023-12-19 13:09:05) > >> On 12/19/2023 7:41 AM, Anton Khirnov wrote: > >>> Quoting James Almer (2023-12-18 20:30:47) > On 12/18/2023 4:19 PM, Anton Khirnov wrote: > > --- > >>>

[FFmpeg-devel] [PATCH v1 1/6] avcodec/hevc: Add init for sao_edge_filter

2023-12-22 Thread jinbo
Forgot to init c->sao_edge_filter[idx] when idx=0/1/2/3. After this patch, the speedup of decoding H265 4K 30FPS 30Mbps on 3A6000 is about 7% (42fps==>45fps). Change-Id: I521999b397fa72b931a23c165cf45f276440cdfb --- libavcodec/loongarch/hevcdsp_init_loongarch.c | 4 1 file changed, 4 inserti

[FFmpeg-devel] [PATCH v1] [loongarch] Add hevc 128-bit & 256-bit asm optimizations

2023-12-22 Thread jinbo
Hello, everyone! The hevc asm optimizatons are submitted, here is a brief introduction. After the 6 patches, the speedup of decoding H265 4K 30FPS 30Mbps on 3A6000 with 8 threads is about 33%(42fps-->56fps). Reviews are welcome, thanks for in advance. [PATCH v1 1/6] avcodec/hevc: Add init for sao

[FFmpeg-devel] [PATCH v1 2/6] avcodec/hevc: Add add_residual_4/8/16/32 asm opt

2023-12-22 Thread jinbo
After this patch, the peformance of decoding H265 4K 30FPS 30Mbps on 3A6000 with 8 threads improves 2fps (45fps-->47fsp). --- libavcodec/loongarch/Makefile | 3 +- libavcodec/loongarch/hevc_add_res.S | 162 ++ libavcodec/loongarch/hevcdsp_init_loongarch.

[FFmpeg-devel] [PATCH v1 4/6] avcodec/hevc: Add qpel_uni_w_v|h4/6/8/12/16/24/32/48/64 asm opt

2023-12-22 Thread jinbo
tests/checkasm/checkasm: C LSX LASX put_hevc_qpel_uni_w_h4_8_c:6.5 1.7 1.2 put_hevc_qpel_uni_w_h6_8_c:14.54.5 3.7 put_hevc_qpel_uni_w_h8_8_c:24.55.7 4.5 put_hevc_qpel_uni_w_h12_8_c: 54.717.512.0 put_hevc_qpel_uni_w_h1

[FFmpeg-devel] [PATCH v1 3/6] avcodec/hevc: Add pel_uni_w_pixels4/6/8/12/16/24/32/48/64 asm opt

2023-12-22 Thread jinbo
tests/checkasm/checkasm: C LSX LASX put_hevc_pel_uni_w_pixels4_8_c:2.7 1.0 put_hevc_pel_uni_w_pixels6_8_c:6.2 2.0 1.5 put_hevc_pel_uni_w_pixels8_8_c:10.72.5 1.7 put_hevc_pel_uni_w_pixels12_8_c: 23.05.5 5.0 put_hevc_pel_uni_w_pixels16_8_c

[FFmpeg-devel] [PATCH v1 5/6] avcodec/hevc: Add epel_uni_w_hv4/6/8/12/16/24/32/48/64 asm opt

2023-12-22 Thread jinbo
tests/checkasm/checkasm: C LSX LASX put_hevc_epel_uni_w_hv4_8_c: 9.5 2.2 put_hevc_epel_uni_w_hv6_8_c: 18.55.0 3.7 put_hevc_epel_uni_w_hv8_8_c: 30.76.0 4.5 put_hevc_epel_uni_w_hv12_8_c: 63.714.010.7 put_hevc_epel_uni_w_hv16_8_c:

[FFmpeg-devel] [PATCH v1 6/6] avcodec/hevc: Add asm opt for the following functions

2023-12-22 Thread jinbo
tests/checkasm/checkasm: C LSX LASX put_hevc_qpel_uni_h4_8_c: 5.7 1.2 put_hevc_qpel_uni_h6_8_c: 12.22.7 put_hevc_qpel_uni_h8_8_c: 21.53.2 put_hevc_qpel_uni_h12_8_c: 47.29.2 7.2 put_hevc_qpel_uni_h16_8_c: 87.011.7

[FFmpeg-devel] [PATCH 1/2] avfilter/edge_template: Fix small inputs with gaussian_blur()

2023-12-22 Thread Michael Niedermayer
Fixes: out of array access Fixes: Ticket10699 Fixes: poc5ffmpeg Found-by: Zeng Yunxiang Signed-off-by: Michael Niedermayer --- libavfilter/edge_template.c | 29 +++-- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/libavfilter/edge_template.c b/libavfilter

[FFmpeg-devel] [PATCH 2/2] avfilter/vf_weave: Fix odd height handling

2023-12-22 Thread Michael Niedermayer
Fixes: out of array access Fixes: tickets/10743/poc10ffmpeg Found-by: Zeng Yunxiang and Li Zeyuan Signed-off-by: Michael Niedermayer --- libavfilter/vf_weave.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_weave.c b/libavfilter/vf_weave.c index 84f3c

[FFmpeg-devel] [PATCH] avformat/ffrtmpcrypt: Fix int-conversion warning

2023-12-22 Thread Frank Plowman
The gcrypt definition of `bn_new` used to use `AVERROR`, however it is called in `dh_generate_key` and `ff_dh_init` which return pointers. As a result, compiling with gcrypt and the ffrtmpcrypt protocol resulted in an int-conversion warning. GCC 14 may upgrade these to errors [1]. This patch fixes

[FFmpeg-devel] [PATCH 1/3 v2] checkasm/takdsp: add decorrelate_sf test

2023-12-22 Thread James Almer
Signed-off-by: James Almer --- Fixes broken logic as reported by Martin. tests/checkasm/takdsp.c | 35 --- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/tests/checkasm/takdsp.c b/tests/checkasm/takdsp.c index 3aecee1f72..78528b1c5d 100644 --- a/te

[FFmpeg-devel] [PATCH 2/3 v2] x86/takdsp: add avx2 versions of all functions

2023-12-22 Thread James Almer
On an Intel Core i7 12700k: decorrelate_ls_c: 814.3 decorrelate_ls_sse2: 165.8 decorrelate_ls_avx2: 101.3 decorrelate_sf_c: 1602.6 decorrelate_sf_sse4: 640.1 decorrelate_sf_avx2: 324.6 decorrelate_sm_c: 1564.8 decorrelate_sm_sse2: 379.3 decorrelate_sm_avx2: 203.3 decorrelate_sr_c: 785.3 decorrelat

[FFmpeg-devel] [PATCH 3/3] avcodec/takdsp: fix const correctness

2023-12-22 Thread James Almer
Signed-off-by: James Almer --- libavcodec/riscv/takdsp_init.c | 4 ++-- libavcodec/takdsp.c| 6 +++--- libavcodec/takdsp.h| 6 +++--- libavcodec/x86/takdsp_init.c | 12 ++-- tests/checkasm/takdsp.c| 6 +++--- 5 files changed, 17 insertions(+), 17 dele

Re: [FFmpeg-devel] [PATCH] avformat/ffrtmpcrypt: Fix int-conversion warning

2023-12-22 Thread Martin Storsjö
Hi Frank, On Fri, 22 Dec 2023, Frank Plowman wrote: The gcrypt definition of `bn_new` used to use `AVERROR`, however it is called in `dh_generate_key` and `ff_dh_init` which return pointers. As a result, compiling with gcrypt and the ffrtmpcrypt protocol resulted in an int-conversion warning. G

Re: [FFmpeg-devel] [PATCH 1/3 v2] checkasm/takdsp: add decorrelate_sf test

2023-12-22 Thread Martin Storsjö
On Fri, 22 Dec 2023, James Almer wrote: Signed-off-by: James Almer --- Fixes broken logic as reported by Martin. tests/checkasm/takdsp.c | 35 --- 1 file changed, 32 insertions(+), 3 deletions(-) +static void test_decorrelate_sf(TAKDSPContext *s) { +declar

Re: [FFmpeg-devel] [PATCH 3/3] avcodec/takdsp: fix const correctness

2023-12-22 Thread Martin Storsjö
On Fri, 22 Dec 2023, James Almer wrote: Signed-off-by: James Almer --- libavcodec/riscv/takdsp_init.c | 4 ++-- libavcodec/takdsp.c| 6 +++--- libavcodec/takdsp.h| 6 +++--- libavcodec/x86/takdsp_init.c | 12 ++-- tests/checkasm/takdsp.c| 6 +++--- 5 fil

Re: [FFmpeg-devel] [PATCH] checkasm: Fix the takdsp tests

2023-12-22 Thread James Almer
On 12/22/2023 6:49 AM, Martin Storsjö wrote: For memcpy and memcmp, we need to multiply by the element size, otherwise we're copying and comparing only a fraction of the buffer. For decorrelate_sr, the buffer p1 is the one that is mutated; copy and check p1 instead of p2. For decorrelate_sm, bo

Re: [FFmpeg-devel] [PATCH] avformat/ffrtmpcrypt: Fix int-conversion warning

2023-12-22 Thread Frank Plowman
Hi Martin, Thanks for the review. On 22/12/2023 12:15, Martin Storsjö wrote: The change LGTM, but the wording here is slightly confusing IMO. The problem isn't with using per se AVERROR, that's just a macro for generating suitable integers, the issue is more about the fact that we're returnin

Re: [FFmpeg-devel] [PATCH] lavc: remove the QOA decoder

2023-12-22 Thread James Almer
On 12/21/2023 5:05 PM, Paul B Mahol wrote: On Thu, Dec 21, 2023 at 8:43 PM Tomas Härdin wrote: ons 2023-12-20 klockan 20:11 +0100 skrev Michael Niedermayer: On Wed, Dec 20, 2023 at 05:57:40PM +0100, Tomas Härdin wrote: tis 2023-12-19 klockan 15:02 +0100 skrev Nicolas George: [...] [...] ,

Re: [FFmpeg-devel] [PATCH] all: Don't set AVClass.item_name to its default value

2023-12-22 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2023-12-22 14:48:45) > Avoids relocations. > > Signed-off-by: Andreas Rheinhardt > --- Maybe mention that it's not needed after acf63d5350adeae551d412db699f8ca03f7e76b9. LGTM otherwise. -- Anton Khirnov ___ ffmpeg-devel m

[FFmpeg-devel] [PATCH] libavformat/hlsenc.c: Populate OTI using AAC profile in write_codec_attr.

2023-12-22 Thread Romain Beauxis
This patch populates the third entry for HLS codec attribute using the AAC profile. The HLS specifications[1] require this digit to be the Object Type ID as referred to in table 1.3 of ISO/IEC 14496-3:2009[2]. The numerical constants in the code refer to these OTIs minus one, as documeted in comm

Re: [FFmpeg-devel] [PATCH] all: Don't set AVClass.item_name to its default value

2023-12-22 Thread Rémi Denis-Courmont
Le perjantaina 22. joulukuuta 2023, 15.48.45 EET Andreas Rheinhardt a écrit : > Avoids relocations. This is a little bit misleading. It reduces the number of relocations indeed, but the data structures still end up in nonshareable .data.relro rather than .rodata due to other remaining pointers.

[FFmpeg-devel] [PATCH] .mailmap: Update my mailmap entry

2023-12-22 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- .mailmap | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.mailmap b/.mailmap index 7546cf0caf..dfef178cf0 100644 --- a/.mailmap +++ b/.mailmap @@ -17,7 +17,8 @@ - + + rcombs -- 2.34.1 __

Re: [FFmpeg-devel] [PATCH] Add new vf_tiltandshift filter

2023-12-22 Thread Paul B Mahol
There are some serious issues in this code. Also missing tests. ___ 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

Re: [FFmpeg-devel] [PATCH 6/6] lavc/takdsp: R-V V decorrelate_sm

2023-12-22 Thread Rémi Denis-Courmont
Le perjantaina 22. joulukuuta 2023, 3.34.39 EET flow gg a écrit : > func ff_decorrelate_sm_rvv, zve32x > 1: > vsetvli t0, a2, e32, m8, ta, ma > vle32.v v8, (a1) > sub a2, a2, t0 > vle32.v v0, (a0) > vssra.vi v8, v8, 1 > vsub.vv v16, v0, v8 >

Re: [FFmpeg-devel] [PATCH] Add new vf_tiltandshift filter

2023-12-22 Thread Ronald S. Bultje
Hi Paul, On Fri, Dec 22, 2023 at 10:33 AM Paul B Mahol wrote: > There are some serious issues in this code. > While already very insightful, it would be enormously helpful if you could expand on this statement with more detail, such as a list of issues as they exist in this code. Ronald __

Re: [FFmpeg-devel] [PATCH] libavfilter/af_afir: R-V V dcmul_add

2023-12-22 Thread Rémi Denis-Courmont
Le perjantaina 22. joulukuuta 2023, 3.41.29 EET flow gg a écrit : > It's at c908 > > According to the benchmark results, if vlseg2e64 is used, the speed is > almost as slow as C language (dcmul_add_rvv_f64: 86.2), if vsseg2e64 is > used, it will be only a bit slower (dcmul_add_rvv_f64: 50.2). Fai

Re: [FFmpeg-devel] [PATCH] all: Don't set AVClass.item_name to its default value

2023-12-22 Thread Andreas Rheinhardt
Rémi Denis-Courmont: > Le perjantaina 22. joulukuuta 2023, 15.48.45 EET Andreas Rheinhardt a écrit : >> Avoids relocations. > > This is a little bit misleading. It reduces the number of relocations indeed, > but the data structures still end up in nonshareable .data.relro rather than > .rodata d

[FFmpeg-devel] [PATCH] lavc/takdsp: R-V V decorrelate_sf

2023-12-22 Thread Rémi Denis-Courmont
decorrelate_sf_c: 259.2 decorrelate_sf_rvv_i32: 45.5 --- libavcodec/riscv/takdsp_init.c | 2 ++ libavcodec/riscv/takdsp_rvv.S | 21 + 2 files changed, 23 insertions(+) diff --git a/libavcodec/riscv/takdsp_init.c b/libavcodec/riscv/takdsp_init.c index 4312c8d99d..58be838

Re: [FFmpeg-devel] [PATCH] all: Don't set AVClass.item_name to its default value

2023-12-22 Thread Rémi Denis-Courmont
Le perjantaina 22. joulukuuta 2023, 18.13.51 EET Andreas Rheinhardt a écrit : > Rémi Denis-Courmont: > > Le perjantaina 22. joulukuuta 2023, 15.48.45 EET Andreas Rheinhardt a écrit : > >> Avoids relocations. > > > > This is a little bit misleading. It reduces the number of relocations > > indeed,

[FFmpeg-devel] [PATCH] avcodec/d3d12va_(av1|hevc|vp9): Don't use deprecated FF_PROFILE_*

2023-12-22 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/d3d12va_av1.c | 2 +- libavcodec/d3d12va_hevc.c | 6 +++--- libavcodec/d3d12va_vp9.c | 8 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/libavcodec/d3d12va_av1.c b/libavcodec/d3d12va_av1.c index 6a3543353f..4a87169bfb 100

[FFmpeg-devel] FATE RISC-V planned maintenance

2023-12-22 Thread Rémi Denis-Courmont
Hello, The RISC-V board will be personally visiting the taylor to get a fashionable custom-made outfit. As a consequence, it will be taking a much deserved break from FATE service over the end of year holidays. -- Rémi Denis-Courmont http://www.remlab.net/ __

Re: [FFmpeg-devel] [PATCH] checkasm: Generalize crash handling

2023-12-22 Thread Henrik Gramner via ffmpeg-devel
On Fri, Dec 22, 2023 at 7:20 AM Rémi Denis-Courmont wrote: > >> > +checkasm_fail_func("%s", > >> > + s == SIGFPE ? "fatal arithmetic error" : > >> > + s == SIGILL ? "illegal instruction" : > >> > + s == SIGBUS ?

[FFmpeg-devel] [PATCH 1/4] avfilter/af_alimiter: Check nextpos before use

2023-12-22 Thread Michael Niedermayer
Fixes: out of array read Fixes: tickets/10744/poc11ffmpeg Found-by: Li Zeyuan and Zeng Yunxiang. Signed-off-by: Michael Niedermayer --- libavfilter/af_alimiter.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libavfilter/af_alimiter.c b/libavfilter/af_alimiter.c index

[FFmpeg-devel] [PATCH 2/4] avfilter/vf_swaprect: assert that rectangles are within memory

2023-12-22 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavfilter/vf_swaprect.c | 5 + 1 file changed, 5 insertions(+) diff --git a/libavfilter/vf_swaprect.c b/libavfilter/vf_swaprect.c index 13ae149afdb..8a983b605bf 100644 --- a/libavfilter/vf_swaprect.c +++ b/libavfilter/vf_swaprect.c @@ -18,6 +18,7 @@

[FFmpeg-devel] [PATCH 3/4] avfilter/vf_swaprect: Use height for vertical variables

2023-12-22 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavfilter/vf_swaprect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_swaprect.c b/libavfilter/vf_swaprect.c index 8a983b605bf..20d8e233e45 100644 --- a/libavfilter/vf_swaprect.c +++ b/libavfilter/vf_swaprect.c @@ -

[FFmpeg-devel] [PATCH 4/4] avfilter/vf_swaprect: round coordinates down

2023-12-22 Thread Michael Niedermayer
Fixes: out of array access: Fixes: tickets/10745/poc12ffmpeg Found-by: Li Zeyuan and Zeng Yunxiang. Signed-off-by: Michael Niedermayer --- libavfilter/vf_swaprect.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavfilter/vf_swaprect.c b/libavfilter/vf_swaprect.c i

Re: [FFmpeg-devel] [PATCH] Add new vf_tiltandshift filter

2023-12-22 Thread Paul B Mahol
On Fri, Dec 22, 2023 at 4:41 PM Ronald S. Bultje wrote: > Hi Paul, > > On Fri, Dec 22, 2023 at 10:33 AM Paul B Mahol wrote: > > > There are some serious issues in this code. > > > > While already very insightful, it would be enormously helpful if you could > expand on this statement with more de

Re: [FFmpeg-devel] FATE RISC-V planned maintenance

2023-12-22 Thread Sean McGovern
On Fri, Dec 22, 2023, 11:41 Rémi Denis-Courmont wrote: > Hello, > > The RISC-V board will be personally visiting the taylor to get a > fashionable > custom-made outfit. As a consequence, it will be taking a much deserved > break > from FATE service over the end of year holidays. > > -- >

Re: [FFmpeg-devel] [PATCH 2/2] x86/takdsp: add avx2 versions of all functions

2023-12-22 Thread Michael Niedermayer
On Thu, Dec 21, 2023 at 10:15:49PM -0300, James Almer wrote: > On an Intel Core i7 12700k: > > decorrelate_ls_c: 814.3 > decorrelate_ls_sse2: 165.8 > decorrelate_ls_avx2: 101.3 > decorrelate_sf_c: 1602.6 > decorrelate_sf_sse4: 640.1 > decorrelate_sf_avx2: 324.6 > decorrelate_sm_c: 1564.8 > decorre

Re: [FFmpeg-devel] [PATCH 2/2] x86/takdsp: add avx2 versions of all functions

2023-12-22 Thread James Almer
On 12/22/2023 8:08 PM, Michael Niedermayer wrote: On Thu, Dec 21, 2023 at 10:15:49PM -0300, James Almer wrote: On an Intel Core i7 12700k: decorrelate_ls_c: 814.3 decorrelate_ls_sse2: 165.8 decorrelate_ls_avx2: 101.3 decorrelate_sf_c: 1602.6 decorrelate_sf_sse4: 640.1 decorrelate_sf_avx2: 324.6

[FFmpeg-devel] [PATCH 2/2 v2] x86/takdsp: add avx2 versions of all functions

2023-12-22 Thread James Almer
On an Intel Core i7 12700k: decorrelate_ls_c: 814.3 decorrelate_ls_sse2: 165.8 decorrelate_ls_avx2: 101.3 decorrelate_sf_c: 1602.6 decorrelate_sf_sse4: 640.1 decorrelate_sf_avx2: 324.6 decorrelate_sm_c: 1564.8 decorrelate_sm_sse2: 379.3 decorrelate_sm_avx2: 203.3 decorrelate_sr_c: 785.3 decorrelat

[FFmpeg-devel] [PATCH] avcodec/jpegxl_parser: check ANS cluster alphabet size vs bundle size

2023-12-22 Thread Leo Izen
The specification doesn't mention that clusters cannot have alphabet sizes greater than 1 << bundle->log_alphabet_size, but the reference implementation rejects these entropy streams as invalid, so we should too. Refusing to do so can overflow a stack variable on line 556 that should be large enoug

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/libjxlenc: Don't refer to decoder in comments

2023-12-22 Thread Leo Izen
On 12/21/23 18:01, Andreas Rheinhardt wrote: Signed-off-by: Andreas Rheinhardt --- libavcodec/libjxlenc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/libjxlenc.c b/libavcodec/libjxlenc.c index d707f3a61b..055c9b7bb1 100644 --- a/libavcodec/libjxlenc.