Re: [FFmpeg-devel] [PATCH] doc/examples/extract_mvs: add motion information

2022-09-22 Thread Chema Gonzalez
ping -Chema On Mon, Sep 12, 2022 at 4:50 PM Chema Gonzalez wrote: > > Note that the motion information includes subpel motion information > > This was likely forgotten in 56bdf61baa04c4fd8d165f34499115ce0aa97c43. > > Tested: > ``` > $ make examples -j > ... > $ doc/examples/extract_mvs in.264 |

[FFmpeg-devel] [PATCH 3/3] libavcodec/qsvenc: Add pic_timing_sei reset support to qsv

2022-09-22 Thread Wenbin Chen
Signed-off-by: Wenbin Chen --- doc/encoders.texi | 4 libavcodec/qsvenc.c | 21 + libavcodec/qsvenc.h | 2 ++ 3 files changed, 27 insertions(+) diff --git a/doc/encoders.texi b/doc/encoders.texi index 2b6412dbec..741d545ea1 100644 --- a/doc/encoders.texi +++

[FFmpeg-devel] [PATCH 2/3] libavcodec/qsvenc: Add bitrate reset support to qsvenc

2022-09-22 Thread Wenbin Chen
Signed-off-by: Wenbin Chen --- doc/encoders.texi | 6 ++ libavcodec/qsvenc.c | 38 ++ libavcodec/qsvenc.h | 5 + 3 files changed, 49 insertions(+) diff --git a/doc/encoders.texi b/doc/encoders.texi index 4ed7ce1bb0..2b6412dbec 100644 ---

[FFmpeg-devel] [PATCH 1/3] libavcodec/qsvenc: Add framerate reset support to qsv

2022-09-22 Thread Wenbin Chen
Signed-off-by: Wenbin Chen --- doc/encoders.texi | 3 +++ libavcodec/qsvenc.c | 26 ++ libavcodec/qsvenc.h | 2 ++ 3 files changed, 31 insertions(+) diff --git a/doc/encoders.texi b/doc/encoders.texi index ac71f50ad2..4ed7ce1bb0 100644 --- a/doc/encoders.texi +++

[FFmpeg-devel] [PATCH v2] avformat/cafenc: derive Opus frame size from the relevant stream parameters

2022-09-22 Thread James Almer
Use the stream duration as last resort, as an off-by-one result of the "st->duration / (caf->packets - 1)" calculation can break playback on some devices. Also, don't write the sample_rate value propagated by encoders like libopus. The sample rate of the audio fed to it is irrelevant for the

[FFmpeg-devel] [PATCH] tests/checkasm/lpc: print mismatching values

2022-09-22 Thread James Almer
Will help debugging. Signed-off-by: James Almer --- tests/checkasm/lpc.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/checkasm/lpc.c b/tests/checkasm/lpc.c index 8528fd6e20..49e608f8c1 100644 --- a/tests/checkasm/lpc.c +++ b/tests/checkasm/lpc.c @@ -45,8

Re: [FFmpeg-devel] [PATCH] avformat/movenc: Write auxi box for animated AVIF with alpha

2022-09-22 Thread James Zern
On Wed, Sep 21, 2022 at 12:14 PM James Zern wrote: > > On Tue, Sep 20, 2022 at 2:17 PM Vignesh Venkatasubramanian > wrote: > > > > According to the HEIF specification (ISO/IEC 23008-12) Section > > 7.5.3.1, tracks with handler_type 'auxv' must contain a 'auxi' box > > in its SampleEntry to

[FFmpeg-devel] [PATCH 3/3] x86/lpc: use fused negative multiply-add instructions where useful

2022-09-22 Thread James Almer
Signed-off-by: James Almer --- libavcodec/x86/lpc.asm | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/libavcodec/x86/lpc.asm b/libavcodec/x86/lpc.asm index 61a5796e5d..a585c17ef5 100644 --- a/libavcodec/x86/lpc.asm +++ b/libavcodec/x86/lpc.asm @@ -79,11

Re: [FFmpeg-devel] [PATCH] lavc: export flag for MPEG audio dual channel

2022-09-22 Thread Scott Theisen
On 9/22/22 08:43, Anton Khirnov wrote: Quoting Scott Theisen (2022-09-22 03:04:16) On 9/21/22 15:51, James Almer wrote: On 9/21/2022 4:44 PM, Rémi Denis-Courmont wrote: Le keskiviikkona 21. syyskuuta 2022, 22.26.11 EEST Scott Theisen a écrit : diff --git a/libavcodec/avcodec.h

[FFmpeg-devel] [PATCH 2/2] tests/checkasm/lpc: randomize buffer length

2022-09-22 Thread James Almer
Simplifies the test, while trying more values and preventing pointlessly running benchmarks in a loop. Signed-off-by: James Almer --- tests/checkasm/lpc.c | 19 +++ 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/tests/checkasm/lpc.c b/tests/checkasm/lpc.c index

[FFmpeg-devel] [PATCH 1/2] avcodec/lpc: zero the middle odd sample in the output

2022-09-22 Thread James Almer
Signed-off-by: James Almer --- libavcodec/lpc.c | 1 + libavcodec/x86/lpc.asm | 10 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c index 8603bb9709..dc6a3060ce 100644 --- a/libavcodec/lpc.c +++ b/libavcodec/lpc.c @@ -53,6

[FFmpeg-devel] [PATCH 29/29] lavc/aacpsdsp: RISC-V V hybrid_synthesis_deint

2022-09-22 Thread remi
From: Rémi Denis-Courmont --- libavcodec/riscv/aacpsdsp_init.c | 3 +++ libavcodec/riscv/aacpsdsp_rvv.S | 37 2 files changed, 40 insertions(+) diff --git a/libavcodec/riscv/aacpsdsp_init.c b/libavcodec/riscv/aacpsdsp_init.c index 76f55502ee..20b1a12741

[FFmpeg-devel] [PATCH 26/29] lavc/aacpsdsp: RISC-V V mul_pair_single

2022-09-22 Thread remi
From: Rémi Denis-Courmont --- libavcodec/riscv/aacpsdsp_init.c | 6 +- libavcodec/riscv/aacpsdsp_rvv.S | 19 +++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/libavcodec/riscv/aacpsdsp_init.c b/libavcodec/riscv/aacpsdsp_init.c index 525fc9aa38..90c9c501c3

[FFmpeg-devel] [PATCH 21/29] lavc/audiodsp: RISC-V V scalarproduct_int16

2022-09-22 Thread remi
From: Rémi Denis-Courmont --- libavcodec/riscv/audiodsp_init.c | 2 ++ libavcodec/riscv/audiodsp_rvv.S | 20 2 files changed, 22 insertions(+) diff --git a/libavcodec/riscv/audiodsp_init.c b/libavcodec/riscv/audiodsp_init.c index ddd561484f..6f38b7bc83 100644 ---

[FFmpeg-devel] [PATCH 20/29] lavc/audiodsp: RISC-V V vector_clipf

2022-09-22 Thread remi
From: Rémi Denis-Courmont --- libavcodec/riscv/audiodsp_init.c | 7 ++- libavcodec/riscv/audiodsp_rvv.S | 18 ++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/libavcodec/riscv/audiodsp_init.c b/libavcodec/riscv/audiodsp_init.c index ce8b60ee52..ddd561484f

[FFmpeg-devel] [PATCH 28/29] lavc/aacpsdsp: RISC-V V hybrid_analysis_ileave

2022-09-22 Thread remi
From: Rémi Denis-Courmont --- libavcodec/riscv/aacpsdsp_init.c | 14 libavcodec/riscv/aacpsdsp_rvv.S | 37 2 files changed, 47 insertions(+), 4 deletions(-) diff --git a/libavcodec/riscv/aacpsdsp_init.c b/libavcodec/riscv/aacpsdsp_init.c index

[FFmpeg-devel] [PATCH 27/29] lavc/aacpsdsp: RISC-V V hybrid_analysis

2022-09-22 Thread remi
From: Rémi Denis-Courmont This starts with one-time initialisation of the 26 constant factors like 08edacc248bce3f8946d75e97188d189c74a6de6. That is done with the scalar instruction set. While the formula can readily be vectored, the gains would (probably) be more than lost in transfering the

[FFmpeg-devel] [PATCH 25/29] lavc/aacpsdsp: RISC-V V add_squares

2022-09-22 Thread remi
From: Rémi Denis-Courmont --- libavcodec/aacpsdsp.h| 1 + libavcodec/aacpsdsp_template.c | 2 ++ libavcodec/riscv/Makefile| 2 ++ libavcodec/riscv/aacpsdsp_init.c | 37 ++ libavcodec/riscv/aacpsdsp_rvv.S | 39

[FFmpeg-devel] [PATCH 24/29] lavc/vorbisdsp: RISC-V V inverse_coupling

2022-09-22 Thread remi
From: Rémi Denis-Courmont This uses the following vectorisation: for (i = 0; i < blocksize; i++) { ang[i] = mag[i] - copysignf(fmaxf(ang[i], 0.f), mag[i]); mag[i] = mag[i] - copysignf(fminf(ang[i], 0.f), mag[i]); } --- libavcodec/riscv/Makefile | 2 ++

[FFmpeg-devel] [PATCH 22/29] lavc/fmtconvert: RISC-V V int32_to_float_fmul_scalar

2022-09-22 Thread remi
From: Rémi Denis-Courmont --- libavcodec/fmtconvert.c| 2 ++ libavcodec/fmtconvert.h| 1 + libavcodec/riscv/Makefile | 2 ++ libavcodec/riscv/fmtconvert_init.c | 39 + libavcodec/riscv/fmtconvert_rvv.S | 40

[FFmpeg-devel] [PATCH 23/29] lavc/fmtconvert: RISC-V V int32_to_float_fmul_array8

2022-09-22 Thread remi
From: Rémi Denis-Courmont --- libavcodec/riscv/fmtconvert_init.c | 7 ++- libavcodec/riscv/fmtconvert_rvv.S | 29 + 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/libavcodec/riscv/fmtconvert_init.c b/libavcodec/riscv/fmtconvert_init.c index

[FFmpeg-devel] [PATCH 05/29] lavu/cpu: CPU flags for the RISC-V Vector extension

2022-09-22 Thread remi
From: Rémi Denis-Courmont RVV defines a total of 12 different extensions, including: - 5 different instruction subsets: - Zve32x: 8-, 16- and 32-bit integers, - Zve32f: Zve32x plus single precision floats, - Zve64x: Zve32x plus 64-bit integers, - Zve64f: Zve32f plus Zve64x, - Zve64d:

[FFmpeg-devel] [PATCH 19/29] lavc/audiodsp: RISC-V V vector_clip_int32

2022-09-22 Thread remi
From: Rémi Denis-Courmont --- libavcodec/riscv/Makefile| 1 + libavcodec/riscv/audiodsp_init.c | 9 libavcodec/riscv/audiodsp_rvv.S | 37 3 files changed, 47 insertions(+) create mode 100644 libavcodec/riscv/audiodsp_rvv.S diff --git

[FFmpeg-devel] [PATCH 17/29] lavu/floatdsp: RISC-V V scalarproduct_float

2022-09-22 Thread remi
From: Rémi Denis-Courmont --- libavutil/riscv/float_dsp_init.c | 2 ++ libavutil/riscv/float_dsp_rvv.S | 21 + 2 files changed, 23 insertions(+) diff --git a/libavutil/riscv/float_dsp_init.c b/libavutil/riscv/float_dsp_init.c index dacd81c08b..cc9b7e83dc 100644 ---

[FFmpeg-devel] [PATCH 18/29] lavu/fixeddsp: RISC-V V butterflies_fixed

2022-09-22 Thread remi
From: Rémi Denis-Courmont --- libavutil/fixed_dsp.c| 4 +++- libavutil/fixed_dsp.h| 1 + libavutil/riscv/Makefile | 4 +++- libavutil/riscv/fixed_dsp_init.c | 38 + libavutil/riscv/fixed_dsp_rvv.S | 41

[FFmpeg-devel] [PATCH 16/29] lavu/floatdsp: RISC-V V vector_fmul_window

2022-09-22 Thread remi
From: Rémi Denis-Courmont --- libavutil/riscv/float_dsp_init.c | 3 +++ libavutil/riscv/float_dsp_rvv.S | 35 2 files changed, 38 insertions(+) diff --git a/libavutil/riscv/float_dsp_init.c b/libavutil/riscv/float_dsp_init.c index 9b8fd9942b..dacd81c08b

[FFmpeg-devel] [PATCH 15/29] lavu/floatdsp: RISC-V V vector_fmul_reversed

2022-09-22 Thread remi
From: Rémi Denis-Courmont --- libavutil/riscv/float_dsp_init.c | 3 +++ libavutil/riscv/float_dsp_rvv.S | 22 ++ 2 files changed, 25 insertions(+) diff --git a/libavutil/riscv/float_dsp_init.c b/libavutil/riscv/float_dsp_init.c index f164b1308f..9b8fd9942b 100644 ---

[FFmpeg-devel] [PATCH 11/29] lavu/floatdsp: RISC-V V vector_fmac_scalar

2022-09-22 Thread remi
From: Rémi Denis-Courmont --- libavutil/riscv/float_dsp_init.c | 3 +++ libavutil/riscv/float_dsp_rvv.S | 19 +++ 2 files changed, 22 insertions(+) diff --git a/libavutil/riscv/float_dsp_init.c b/libavutil/riscv/float_dsp_init.c index 6027a67b46..c2d93e0cd7 100644 ---

[FFmpeg-devel] [PATCH 13/29] lavu/floatdsp: RISC-V V vector_fmul_add

2022-09-22 Thread remi
From: Rémi Denis-Courmont --- libavutil/riscv/float_dsp_init.c | 3 +++ libavutil/riscv/float_dsp_rvv.S | 20 2 files changed, 23 insertions(+) diff --git a/libavutil/riscv/float_dsp_init.c b/libavutil/riscv/float_dsp_init.c index d17d0f66c5..2ddd2050f7 100644 ---

[FFmpeg-devel] [PATCH 14/29] lavu/floatdsp: RISC-V V butterflies_float

2022-09-22 Thread remi
From: Rémi Denis-Courmont --- libavutil/riscv/float_dsp_init.c | 2 ++ libavutil/riscv/float_dsp_rvv.S | 19 +++ 2 files changed, 21 insertions(+) diff --git a/libavutil/riscv/float_dsp_init.c b/libavutil/riscv/float_dsp_init.c index 2ddd2050f7..f164b1308f 100644 ---

[FFmpeg-devel] [PATCH 10/29] lavu/floatdsp: RISC-V V vector_dmul

2022-09-22 Thread remi
From: Rémi Denis-Courmont --- libavutil/riscv/float_dsp_init.c | 6 +- libavutil/riscv/float_dsp_rvv.S | 18 ++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/libavutil/riscv/float_dsp_init.c b/libavutil/riscv/float_dsp_init.c index 60b79bd59e..6027a67b46

[FFmpeg-devel] [PATCH 12/29] lavu/floatdsp: RISC-V V vector_dmac_scalar

2022-09-22 Thread remi
From: Rémi Denis-Courmont --- libavutil/riscv/float_dsp_init.c | 3 +++ libavutil/riscv/float_dsp_rvv.S | 19 +++ 2 files changed, 22 insertions(+) diff --git a/libavutil/riscv/float_dsp_init.c b/libavutil/riscv/float_dsp_init.c index c2d93e0cd7..d17d0f66c5 100644 ---

[FFmpeg-devel] [PATCH 04/29] lavc/pixblockdsp: RISC-V I get_pixels

2022-09-22 Thread remi
From: Rémi Denis-Courmont Benchmarks on SiFive U74-MC (courtesy of Shanghai StarFive Tech): get_pixels_c: 180.0 get_pixels_rvi: 136.7 --- libavcodec/pixblockdsp.c| 2 + libavcodec/pixblockdsp.h| 2 + libavcodec/riscv/Makefile | 2 +

[FFmpeg-devel] [PATCH 09/29] lavu/floatdsp: RISC-V V vector_fmul

2022-09-22 Thread remi
From: Rémi Denis-Courmont --- libavutil/riscv/float_dsp_init.c | 3 +++ libavutil/riscv/float_dsp_rvv.S | 18 ++ 2 files changed, 21 insertions(+) diff --git a/libavutil/riscv/float_dsp_init.c b/libavutil/riscv/float_dsp_init.c index b829c0f736..60b79bd59e 100644 ---

[FFmpeg-devel] [PATCH 06/29] configure: probe RISC-V Vector extension

2022-09-22 Thread remi
From: Rémi Denis-Courmont --- Makefile | 2 +- configure| 15 +++ ffbuild/arch.mak | 2 ++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 61f79e27ae..1fb742f390 100644 --- a/Makefile +++ b/Makefile @@ -91,7 +91,7 @@

[FFmpeg-devel] [PATCH 08/29] lavu/floatdsp: RISC-V V vector_dmul_scalar

2022-09-22 Thread remi
From: Rémi Denis-Courmont --- libavutil/riscv/float_dsp_init.c | 9 - libavutil/riscv/float_dsp_rvv.S | 18 ++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/libavutil/riscv/float_dsp_init.c b/libavutil/riscv/float_dsp_init.c index

[FFmpeg-devel] [PATCH 07/29] lavu/floatdsp: RISC-V V vector_fmul_scalar

2022-09-22 Thread remi
From: Rémi Denis-Courmont This is based on existing code from the VLC git tree with two minor changes to account for the different function prototypes. --- libavutil/float_dsp.c| 2 ++ libavutil/float_dsp.h| 1 + libavutil/riscv/Makefile | 4 +++-

[FFmpeg-devel] [PATCH 03/29] lavc/audiodsp: RISC-V F vector_clipf

2022-09-22 Thread remi
From: Rémi Denis-Courmont RV64G supports MIN & MAX instructions natively only on floating point registers, not general purpose ones. The later would require the Zbb extension. Due to that, it is actually faster to perform the clipping "properly" in FPU. Benchmarks on SiFive U74-MC (courtesy of

[FFmpeg-devel] [PATCH 02/29] lavu/riscv: initial common header for assembler macros

2022-09-22 Thread remi
From: Rémi Denis-Courmont --- libavutil/riscv/asm.S | 77 +++ 1 file changed, 77 insertions(+) create mode 100644 libavutil/riscv/asm.S diff --git a/libavutil/riscv/asm.S b/libavutil/riscv/asm.S new file mode 100644 index 00..dbd97f40a4 ---

[FFmpeg-devel] [PATCH 01/29] lavu/cpu: detect RISC-V base extensions

2022-09-22 Thread remi
From: Rémi Denis-Courmont This introduces compile-time and run-time CPU detection on RISC-V. In practice, I doubt that FFmpeg will ever see a RISC-V CPU without all of I, F and D extensions, and if it does, it probably won't have run-time detection. So the flags are essentially always set. But

[FFmpeg-devel] [PATCHv4 00/29] RISC-V CPU extensions

2022-09-22 Thread Rémi Denis-Courmont
Changes since v3bis: - Added aacpsdsp analysis. Changes since v3: - Rebased on, and resovled conflicts with, fmtconvert clean-up. The following changes since commit 48615f0a7861fd1c24195f74856f68e06c7ca73c: x86/aacpsdsp: add ps_hybrid_analysis_fma3 (2022-09-22 13:27:43 -0300) are available

Re: [FFmpeg-devel] [PATCH] cbs_mpeg2_split_fragment(): cache the buffer end

2022-09-22 Thread Scott Theisen
On 9/22/22 10:59, Anton Khirnov wrote: Quoting Scott Theisen (2022-09-16 19:41:43) Ping; it still applies cleanly. Missing motivation for this change. Is it faster, or why is the new code better? To make it easier to read.  `buf_end` is shorter than `frag->data + frag->data_size`. 

Re: [FFmpeg-devel] [PATCH] Media 100i decoder

2022-09-22 Thread Andreas Rheinhardt
Paul B Mahol: > On 9/22/22, Anton Khirnov wrote: >> Should be straightforward to forward get_buffer2() and support >> AV_CODEC_CAP_DR1. > > How ? > You copy the get_buffer2 callback as well as AVCodecContext.opaque to the subdecoder. - Andreas ___

[FFmpeg-devel] [PATCH 2/2] avformat/westwood_vqa: Check chunk size

2022-09-22 Thread Michael Niedermayer
the type is also changed to int as it is interpreted as int in av_get_packet() Fixes: signed integer overflow: 2147483647 + 1 cannot be represented in type 'int' Fixes: 50993/clusterfuzz-testcase-minimized-ffmpeg_dem_WSVQA_fuzzer-6593408795279360 Found-by: continuous fuzzing process

[FFmpeg-devel] [PATCH 1/2] avformat/vividas: Check packet size

2022-09-22 Thread Michael Niedermayer
Fixes: signed integer overflow: 119760682 - -2084600173 cannot be represented in type 'int' Fixes: 50993/clusterfuzz-testcase-minimized-ffmpeg_dem_VIVIDAS_fuzzer-6745781167587328 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by:

Re: [FFmpeg-devel] [PATCH] Media 100i decoder

2022-09-22 Thread Paul B Mahol
On 9/22/22, Anton Khirnov wrote: > Should be straightforward to forward get_buffer2() and support > AV_CODEC_CAP_DR1. How ? > > -- > Anton Khirnov > ___ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org >

[FFmpeg-devel] [PATCH] avcodec/lpc: use ptrdiff_t for length parameters

2022-09-22 Thread James Almer
Signed-off-by: James Almer --- libavcodec/lpc.c | 4 ++-- libavcodec/lpc.h | 5 +++-- libavcodec/x86/lpc.asm| 1 - libavcodec/x86/lpc_init.c | 6 +++--- tests/checkasm/lpc.c | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/libavcodec/lpc.c

Re: [FFmpeg-devel] [PATCH] lavc/pthread_frame: always transfer stashed hwaccel state

2022-09-22 Thread Wang Bin
Anton Khirnov 于2022年9月19日周一 21:22写道: > Fixes assertion failures after avcodec_flush_buffers(), where > stashed hwaccel state is present, but prev_thread is NULL. > > Found-by: Wang Bin > --- > libavcodec/pthread_frame.c | 12 ++-- > 1 file changed, 6 insertions(+), 6 deletions(-) > >

Re: [FFmpeg-devel] [PATCH 13/13] avformat/westwood_vqa: Check chunk size

2022-09-22 Thread Michael Niedermayer
On Thu, Sep 22, 2022 at 03:01:05PM +0200, Anton Khirnov wrote: > Quoting Michael Niedermayer (2022-09-18 19:14:10) > > Fixes: signed integer overflow: 2147483647 + 1 cannot be represented in > > type 'int' > > Fixes: > >

Re: [FFmpeg-devel] [PATCH v2] avcodec/jpeg2000: Add support for High-Throughput JPEG 2000 (HTJ2K) decoding.

2022-09-22 Thread Caleb Etemesi
>> Yeah this is due to the way probing in lavf works. When I did development on the Part 1 decoder I dummied out the first decode, which always runs at full resolution btw, regardless of what -lowres is set to. Can this be fixed? Decoding sauna-cut.jph errors out with Post 14864313 too big

Re: [FFmpeg-devel] [PATCH 10/13] avformat/vividas: Check packet size

2022-09-22 Thread Michael Niedermayer
On Thu, Sep 22, 2022 at 03:18:20PM +0200, Anton Khirnov wrote: > Quoting Michael Niedermayer (2022-09-18 19:14:07) > > Fixes: signed integer overflow: 119760682 - -2084600173 cannot be > > represented in type 'int' > > Fixes: > >

[FFmpeg-devel] [PATCH] lavc/aacpsdsp: use restrict qualifier

2022-09-22 Thread remi
From: Rémi Denis-Courmont Except for add_squares, telling the compiler that the output vector(s) cannot alias helps quite a bit (cycles on SiFive U7-MC): ps_add_squares_c: 98277.7 ps_add_squares_r: 98320.2 ps_hybrid_analysis_c: 3731.2 ps_hybrid_analysis_r: 2495.7 ps_hybrid_analysis_ileave_c:

Re: [FFmpeg-devel] [PATCH] fftools/ffmpeg_filter: configure min_hard_comp unconditionally

2022-09-22 Thread Anton Khirnov
Quoting Zhao Zhili (2022-09-17 06:30:01) > From: Zhao Zhili > > There are two issues here. Firstly, the floating-point comparison > is always true. Seconly, the code depends on the default value of > min_hard_comp implicitly, which can be dangerous. > > Partially fixes ticket 9859. > --- >

Re: [FFmpeg-devel] [PATCH v2 1/4] avcodec/h264_redundant_pps_bsf: Don't remove PPS

2022-09-22 Thread Andreas Rheinhardt
Andreas Rheinhardt: > There is no check for whether these supposedly redundant PPS > are actually redundant. One could check via memcmp which would > work in practice* (because all content buffers are initially > zero-allocated), but this is not portable as compilers may > trash padding inside

Re: [FFmpeg-devel] [PATCH 1/2] avformat/aiffdec: Check block_duration

2022-09-22 Thread Michael Niedermayer
On Sat, Sep 17, 2022 at 04:45:52PM +0200, Paul B Mahol wrote: > On 9/17/22, Michael Niedermayer wrote: > > Fixes: signed integer overflow: 3 * -2147483648 cannot be represented in > > type 'int' > > Fixes: > > 50993/clusterfuzz-testcase-minimized-ffmpeg_dem_AIFF_fuzzer-6668935979728896 > > > >

Re: [FFmpeg-devel] [PATCH 2/2] avformat/aiffdec: Use 64bit for block_duration use

2022-09-22 Thread Michael Niedermayer
On Sat, Sep 17, 2022 at 04:45:28PM +0200, Paul B Mahol wrote: > On 9/17/22, Michael Niedermayer wrote: > > Fixes: signed integer overflow: 3 * -2147483648 cannot be represented in > > type 'int' > > Fixes: > > 50993/clusterfuzz-testcase-minimized-ffmpeg_dem_AIFF_fuzzer-6668935979728896 > > > >

Re: [FFmpeg-devel] [PATCH 1/5] avformat/mxfdec: Avoid some redundant writing to tables in mxf_compute_ptses_fake_index()

2022-09-22 Thread Michael Niedermayer
On Tue, Sep 20, 2022 at 01:12:44PM +0200, Tomas Härdin wrote: > sön 2022-09-11 klockan 16:27 +0200 skrev Michael Niedermayer: > > Signed-off-by: Michael Niedermayer > > --- > >  libavformat/mxfdec.c | 4 ++-- > >  1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git

[FFmpeg-devel] [REPOST] [PATCHv2 1/2] lavc: avoid rounding errors in float constants

2022-09-22 Thread remi
From: Rémi Denis-Courmont INT_MAX is (typically) a value with 31 significant bits but float can only represent 23 significant bits, leading to a rounding error. This substitutes the actual rounded value as an unsigned int, to avoid a clang warning while not overflowing signed int: warning:

[FFmpeg-devel] [REPOST] [PATCHv2 2/2] lavc/audiodsp: fix aliasing violation

2022-09-22 Thread remi
From: Rémi Denis-Courmont Even though they have the same size, and typically the same alignment, uint32_t and float are under no circumstances compatible types in C. The casts from float * to uint32_t * are invalid here. Insofar as the resulting pointers are dereferenced, this is undefined

Re: [FFmpeg-devel] [PATCH] cbs_mpeg2_split_fragment(): cache the buffer end

2022-09-22 Thread Anton Khirnov
Quoting Scott Theisen (2022-09-16 19:41:43) > Ping; it still applies cleanly. Missing motivation for this change. Is it faster, or why is the new code better? -- Anton Khirnov ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org

Re: [FFmpeg-devel] [PATCH 1/7] lavu/cpu: add av_cpu_job_count()

2022-09-22 Thread Ronald S. Bultje
Hi, On Thu, Sep 22, 2022 at 9:49 AM Anton Khirnov wrote: > It is very nonobvious to me that it makes sense to define a global job > count that is independent of the task at hand. > I agree with Anton here. This is very heuristical and dependent on the type of job. This therefore belongs as an

[FFmpeg-devel] [PATCH v2] ffprobe: Check for invalid matrix error when printing rotation

2022-09-22 Thread Derek Buitenhuis
av_display_rotation_get will return NAN when the display matrix is invalid, which would end up printing NAN as an integer in the rotation field. This is poor for multiple reasons: * Users of ffprobe have no way of discerning "valid but ugly rotation from display matrix" from "invalid display

Re: [FFmpeg-devel] [PATCH] ffprobe: Check for invalid matrix error when printing rotation

2022-09-22 Thread Derek Buitenhuis
On 9/22/2022 2:20 PM, Derek Buitenhuis wrote: > --- > fftools/ffprobe.c | 10 -- > 1 file changed, 8 insertions(+), 2 deletions(-) Sorry, broken patch. Will send v2. - Derek ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org

Re: [FFmpeg-devel] [PATCH 1/7] lavu/cpu: add av_cpu_job_count()

2022-09-22 Thread Anton Khirnov
It is very nonobvious to me that it makes sense to define a global job count that is independent of the task at hand. And we could really do with fewer global variables, not more. -- Anton Khirnov ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org

Re: [FFmpeg-devel] [PATCH 02/13] avformat/mxfdec: Check run_in to fit in int and be valid

2022-09-22 Thread Tomas Härdin
ons 2022-09-21 klockan 20:56 +0200 skrev Marton Balint: > > > On Wed, 21 Sep 2022, Tomas Härdin wrote: > > > ons 2022-09-21 klockan 11:35 +0200 skrev Michael Niedermayer: > > > On Tue, Sep 20, 2022 at 01:20:00PM +0200, Tomas Härdin wrote: > > > > tis 2022-09-20 klockan 13:07 +0200 skrev Tomas

Re: [FFmpeg-devel] [PATCH] FTR decoder

2022-09-22 Thread Anton Khirnov
Quoting Paul B Mahol (2022-09-22 11:09:03) > On 8/31/22, Paul B Mahol wrote: > > New patch updated from feedback received. > > > > Will apply soon. This needs tests. -- Anton Khirnov ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org

[FFmpeg-devel] [PATCH] ffprobe: Check for invalid matrix error when printing rotation

2022-09-22 Thread Derek Buitenhuis
av_display_rotation_get will return NAN when the display matrix is invalid, which would end up printing NAN as an integer in the rotation field. This is poor for multiple reasons: * Users of ffprobe have no way of discerning "valid but ugly rotation from display matrix" from "invalid display

Re: [FFmpeg-devel] [PATCH 10/13] avformat/vividas: Check packet size

2022-09-22 Thread Anton Khirnov
Quoting Michael Niedermayer (2022-09-18 19:14:07) > Fixes: signed integer overflow: 119760682 - -2084600173 cannot be represented > in type 'int' > Fixes: > 50993/clusterfuzz-testcase-minimized-ffmpeg_dem_VIVIDAS_fuzzer-6745781167587328 > > Found-by: continuous fuzzing process >

Re: [FFmpeg-devel] [PATCH 13/13] avformat/westwood_vqa: Check chunk size

2022-09-22 Thread Anton Khirnov
Quoting Michael Niedermayer (2022-09-18 19:14:10) > Fixes: signed integer overflow: 2147483647 + 1 cannot be represented in type > 'int' > Fixes: > 50993/clusterfuzz-testcase-minimized-ffmpeg_dem_WSVQA_fuzzer-6593408795279360 > > Found-by: continuous fuzzing process >

Re: [FFmpeg-devel] [PATCH] avutil/channel_layout: mention how the API user should treat channel orders it does not understand

2022-09-22 Thread Anton Khirnov
Quoting James Almer (2022-09-21 23:42:02) > In case new orders are added in the future, existing library users can still > use the layout simply by ignoring everything but the channel count in it, so > make this explicit. sure -- Anton Khirnov ___

Re: [FFmpeg-devel] [PATCH] Media 100i decoder

2022-09-22 Thread Anton Khirnov
Should be straightforward to forward get_buffer2() and support AV_CODEC_CAP_DR1. -- Anton Khirnov ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email

Re: [FFmpeg-devel] [PATCH] lavc: export flag for MPEG audio dual channel

2022-09-22 Thread Anton Khirnov
Quoting Scott Theisen (2022-09-22 03:04:16) > On 9/21/22 15:51, James Almer wrote: > > On 9/21/2022 4:44 PM, Rémi Denis-Courmont wrote: > >> Le keskiviikkona 21. syyskuuta 2022, 22.26.11 EEST Scott Theisen a > >> écrit : > >>> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h > >>> index

Re: [FFmpeg-devel] [PATCH] fftools/ffmpeg: fix av_display_rotation_set() type cast

2022-09-22 Thread zhilizhao(赵志立)
> On Sep 1, 2022, at 14:17, Steven Liu wrote: > > Zhao Zhili 于2022年9月1日周四 10:59写道: >> >> From: Zhao Zhili >> >> Signed-off-by: Zhao Zhili >> --- >> fftools/ffmpeg.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c >> index

Re: [FFmpeg-devel] [PATCH 1/2] avutil/dict: Add av_dict_iterate

2022-09-22 Thread Andreas Rheinhardt
Marvin Scholz: > > > On 22 Sep 2022, at 13:33, Andreas Rheinhardt wrote: > >> Marvin Scholz: >>> This is a more explicit iteration API rather than using the "magic" >>> av_dict_get(d, "", t, AV_DICT_IGNORE_SUFFIX) which is not really >>> trivial to grasp what it does when casually reading

Re: [FFmpeg-devel] [Internet][PATCH] fftools/ffmpeg_filter: configure min_hard_comp unconditionally

2022-09-22 Thread zhilizhao(赵志立)
> On Sep 17, 2022, at 12:30, Zhao Zhili wrote: > > From: Zhao Zhili > > There are two issues here. Firstly, the floating-point comparison > is always true. Seconly, the code depends on the default value of > min_hard_comp implicitly, which can be dangerous. > > Partially fixes ticket 9859.

Re: [FFmpeg-devel] [PATCH 1/2] avutil/dict: Add av_dict_iterate

2022-09-22 Thread Marvin Scholz
On 22 Sep 2022, at 13:33, Andreas Rheinhardt wrote: > Marvin Scholz: >> This is a more explicit iteration API rather than using the "magic" >> av_dict_get(d, "", t, AV_DICT_IGNORE_SUFFIX) which is not really >> trivial to grasp what it does when casually reading through code. >> --- >>

Re: [FFmpeg-devel] [PATCH 1/2] avutil/dict: Add av_dict_iterate

2022-09-22 Thread Andreas Rheinhardt
Marvin Scholz: > This is a more explicit iteration API rather than using the "magic" > av_dict_get(d, "", t, AV_DICT_IGNORE_SUFFIX) which is not really > trivial to grasp what it does when casually reading through code. > --- > libavutil/dict.c| 19 +++ > libavutil/dict.h|

Re: [FFmpeg-devel] [PATCH] Media 100i decoder

2022-09-22 Thread Paul B Mahol
On 9/22/22, Andreas Rheinhardt wrote: > Paul B Mahol: >> Subject: [PATCH] avcodec: add Media 100i decoder >> >> Signed-off-by: Paul B Mahol >> --- >> libavcodec/Makefile | 1 + >> libavcodec/allcodecs.c | 1 + >> libavcodec/codec_desc.c | 7 ++ >> libavcodec/codec_id.h | 1 + >>

Re: [FFmpeg-devel] [PATCH] FTR decoder

2022-09-22 Thread Paul B Mahol
On 8/31/22, Paul B Mahol wrote: > New patch updated from feedback received. > 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