[FFmpeg-devel] [PATCH] vulkan_video: remove NIH pooled buffer implementation

2024-07-18 Thread Lynne via ffmpeg-devel
The code predates ff_vk_get_pooled_buffer(). --- libavcodec/vulkan_decode.c | 47 +++--- libavcodec/vulkan_decode.h | 2 + libavcodec/vulkan_video.c | 82 -- libavcodec/vulkan_video.h | 7 4 files changed, 34 insertions(+), 104 deletions

Re: [FFmpeg-devel] [PATCH 31/39] lavc/decode: wrap AV_FRAME_FLAG_DISCARD handling in a loop

2024-07-18 Thread Anton Khirnov
Quoting Michael Niedermayer (2024-07-17 23:20:19) > On Tue, Jul 16, 2024 at 07:11:46PM +0200, Anton Khirnov wrote: > > Makes sure discarded frames do not cause EAGAIN to be returned during > > flushing, which is forbidden. > > --- > > libavcodec/decode.c | 11 --- > > 1 file changed, 8 ins

Re: [FFmpeg-devel] [PATCH 13/39] lavc/ffv1: drop redundant PlaneContext.quant_table

2024-07-18 Thread Anton Khirnov
Quoting Michael Niedermayer (2024-07-18 00:32:38) > the data for each decoder task should be together and not scattered around > more than needed, reducing cache efficiency > > putting all this extra code in the inner per pixel loop is not ok > especially not for the sake of avoiding a memcpy of a

Re: [FFmpeg-devel] [PATCH 12/39] lavc/ffv1: drop redundant FFV1Context.quant_table

2024-07-18 Thread Anton Khirnov
Quoting Michael Niedermayer (2024-07-18 00:37:25) > On Tue, Jul 16, 2024 at 07:11:27PM +0200, Anton Khirnov wrote: > > In all cases except decoding version 1 it's either not used, or contains > > a copy of a table from quant_tables, which we can just as well use > > directly. > > > > When decoding

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/pngdec: avoid erroring with sBIT on indexed-color images

2024-07-18 Thread Marton Balint
On Fri, 12 Jul 2024, Leo Izen wrote: Indexed color images use three colors for sBIT, but the function ff_png_get_nb_channels returns 1 in this case. We should avoid erroring out on valid files in this scenario. Please mention that this is a regression since 84b454935fae2633a8a5dd075e22393f

Re: [FFmpeg-devel] [PATCH 10/39] lavc/ffv1dec: move the bitreader to stack

2024-07-18 Thread Anton Khirnov
Quoting Michael Niedermayer (2024-07-18 00:42:05) > all the stuff should be put together close so its efficiently > using CPU caches Which is why it shares its cacheline with PutBitContext, because the code benefits from having the both in the cache, right? And the 4-byte hole in PutBitContext is

Re: [FFmpeg-devel] [RFC PATCH v2 0/1] avutil/error: Provide better feedback about unknown error codes

2024-07-18 Thread Marton Balint
On Tue, 16 Jul 2024, Andrew Sayers wrote: I'm having trouble managing this conversation. On one hand, you've brought up several important details that would need to be included in a new patch. On the other hand, I'm pretty sure we're talking past each other on the big problems, and need to s

Re: [FFmpeg-devel] [PATCH v2] libavformat/vapoursynth: Update to API version 4, load library at runtime

2024-07-18 Thread Stefan Oltmanns via ffmpeg-devel
Hello, I adressed the issues/concerns that were raised with the first revision of the patch. Any feedback? Did I do something wrong? Best regards Stefan Am 06.07.24 um 23:08 schrieb Stefan Oltmanns via ffmpeg-devel: Hello, this is revised patch, to sum up the changes: The current VapourSynt

Re: [FFmpeg-devel] [PATCH 3/3] fftools/ffmpeg_demux: don't insert the crop filter if frame cropping side data defines no cropping

2024-07-18 Thread Anton Khirnov
Quoting James Almer (2024-07-18 04:03:30) > Signed-off-by: James Almer > --- > fftools/ffmpeg_demux.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c > index 528e02149f..6f7d78c896 100644 > --- a/fftools/ffmpeg_demux.c >

Re: [FFmpeg-devel] avisynth as an internal filter, any objections?

2024-07-18 Thread Stefan Oltmanns via ffmpeg-devel
AviSynth (or better VapourSynth) as filter sounds great, but is it possible? The reason why input plugins (like FFmpegSource2) in AviSynth/VapourSynth create an index file in a first pass is to allow frame-accurate random access to the video. Also the exact number of frames of a clip has to be kno

[FFmpeg-devel] [PATCH v3 0/3] Protect against undocumented error codes

2024-07-18 Thread Andrew Sayers
I hadn't noticed av_fourcc2str() before - so long as it's patched to handle "!", it would be a clear improvement over the earlier patches. The example in the "!" patch is "BUG!", which is handled in error.c, but shows that "!" is considered a valid FourCC character. I think I understand the fate

[FFmpeg-devel] [PATCH v3 1/3] avutil/utils: Allow "!" in FourCCs

2024-07-18 Thread Andrew Sayers
For example, AVERROR_BUG is "BUG!" --- libavutil/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/utils.c b/libavutil/utils.c index 94d247bbee..a94589e873 100644 --- a/libavutil/utils.c +++ b/libavutil/utils.c @@ -81,7 +81,7 @@ char *av_fourcc_make_string(char

[FFmpeg-devel] [PATCH v3 2/3] avutil/error: Provide better feedback about unknown error codes

2024-07-18 Thread Andrew Sayers
AVERROR messages should always be less than zero, and are often FourCCs. For error codes that aren't explicitly handled by error.c (e.g. undocumented system error codes, or internal error codes that leaked to the public API), print the FourCC code so the user has a little more information to work

[FFmpeg-devel] [PATCH v3 3/3] tests/fate/source-check: Check for AVERROR codes without error strings

2024-07-18 Thread Andrew Sayers
--- tests/fate/source-check.sh | 8 tests/ref/fate/source | 1 + 2 files changed, 9 insertions(+) diff --git a/tests/fate/source-check.sh b/tests/fate/source-check.sh index 4d7e175784..71f01cbdec 100755 --- a/tests/fate/source-check.sh +++ b/tests/fate/source-check.sh @@ -45,4 +45,1

Re: [FFmpeg-devel] [PATCH 5/5] fftools/ffprobe: implement dv_md_compression

2024-07-18 Thread Niklas Haas
On Wed, 17 Jul 2024 20:07:54 +0200 Michael Niedermayer wrote: > On Tue, Jul 16, 2024 at 01:23:17PM +0200, Niklas Haas wrote: > > From: Niklas Haas > > > > --- > > fftools/ffprobe.c | 1 + > > 1 file changed, 1 insertion(+) > > breaks fate / needs update to fate Fixed, thanks for pointing tha

[FFmpeg-devel] [PATCH v2 1/5] avutil/dovi_meta: add dv_md_compression to cfg record

2024-07-18 Thread Niklas Haas
From: Niklas Haas This field is used to signal the compression method in use. --- doc/APIchanges| 3 +++ libavutil/dovi_meta.h | 9 + libavutil/version.h | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/doc/APIchanges b/doc/APIchanges index 5751216b24..80a

[FFmpeg-devel] [PATCH v2 2/5] avformat/dovi_isom: implement dv_md_compression

2024-07-18 Thread Niklas Haas
From: Niklas Haas --- libavformat/dovi_isom.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/libavformat/dovi_isom.c b/libavformat/dovi_isom.c index d49aa5a75f..269374cff9 100644 --- a/libavformat/dovi_isom.c +++ b/libavformat/dovi_isom.c @@ -57,11 +57,1

[FFmpeg-devel] [PATCH v2 3/5] avformat/mpegts: implement dv_md_compression

2024-07-18 Thread Niklas Haas
From: Niklas Haas --- libavformat/mpegts.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index c66a1ea6ed..6b02187eb1 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -2213,10 +2213,12 @@ int ff_parse_mpeg2_

[FFmpeg-devel] [PATCH v2 4/5] avformat/dump: implement dv_md_compression

2024-07-18 Thread Niklas Haas
From: Niklas Haas --- libavformat/dump.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libavformat/dump.c b/libavformat/dump.c index 78b2481d90..5e1f367742 100644 --- a/libavformat/dump.c +++ b/libavformat/dump.c @@ -416,13 +416,15 @@ static void dump_dovi_conf(void *

[FFmpeg-devel] [PATCH v2 5/5] fftools/ffprobe: implement dv_md_compression

2024-07-18 Thread Niklas Haas
From: Niklas Haas --- fftools/ffprobe.c | 9 + tests/ref/fate/matroska-dovi-write-config7 | 1 + tests/ref/fate/matroska-dovi-write-config8 | 1 + 3 files changed, 11 insertions(+) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index 0b7d4ce0d7..f9bc830f33 1

Re: [FFmpeg-devel] [PATCH v2] libavformat/vapoursynth: Update to API version 4, load library at runtime

2024-07-18 Thread Ramiro Polla
Hi Stefan, On 7/6/24 23:08, Stefan Oltmanns via ffmpeg-devel wrote: this is revised patch, to sum up the changes: The current VapourSynth implementation is rarely used, as it links the VapourSynth library at build time, making the resulting build unable to run when VapourSynth is not installed.

Re: [FFmpeg-devel] [RFC PATCH v2 0/1] avutil/error: Provide better feedback about unknown error codes

2024-07-18 Thread Zhao Zhili
> On Jul 18, 2024, at 17:26, Marton Balint wrote: > > > On Tue, 16 Jul 2024, Andrew Sayers wrote: > >> I'm having trouble managing this conversation. On one hand, you've brought >> up >> several important details that would need to be included in a new patch. >> On the other hand, I'm pret

Re: [FFmpeg-devel] [PATCH v2] libavformat/vapoursynth: Update to API version 4, load library at runtime

2024-07-18 Thread Anton Khirnov
Quoting Stefan Oltmanns via ffmpeg-devel (2024-07-18 11:37:56) > Hello, > > I adressed the issues/concerns that were raised with the first revision > of the patch. > Any feedback? Did I do something wrong? I dislike the concept in general, not to mention adding unacceptable global state. -- Ant

Re: [FFmpeg-devel] [PATCH v2] libavformat/vapoursynth: Update to API version 4, load library at runtime

2024-07-18 Thread Stefan Oltmanns via ffmpeg-devel
Hi Ramiro, Am 18.07.24 um 13:08 schrieb Ramiro Polla: Hi Stefan, [...] + +#include +  struct VSState { VSScript *vss;  }; +typedef const VSSCRIPTAPI *(*VSScriptGetAPIFunc)(int version); + +typedef struct VSScriptLibrary { +    void *library; +    const VSSCRIPTAPI *vssapi; +} VSScriptL

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/pngdec: avoid erroring with sBIT on indexed-color images

2024-07-18 Thread Leo Izen
On 7/18/24 4:47 AM, Marton Balint wrote: On Fri, 12 Jul 2024, Leo Izen wrote: Indexed color images use three colors for sBIT, but the function ff_png_get_nb_channels returns 1 in this case. We should avoid erroring out on valid files in this scenario. Please mention that this is a regressio

Re: [FFmpeg-devel] [PATCH v2] libavformat/vapoursynth: Update to API version 4, load library at runtime

2024-07-18 Thread Ramiro Polla
On Thu, Jul 18, 2024 at 2:48 PM Stefan Oltmanns via ffmpeg-devel wrote: > Am 18.07.24 um 13:08 schrieb Ramiro Polla: > >> [...] > >> + > >> +#include > >> + > >> struct VSState { > >> VSScript *vss; > >> }; > >> > >> +typedef const VSSCRIPTAPI *(*VSScriptGetAPIFunc)(int version); > >> + >

Re: [FFmpeg-devel] [PATCH v2] libavformat/vapoursynth: Update to API version 4, load library at runtime

2024-07-18 Thread Stefan Oltmanns via ffmpeg-devel
Hi Ramiro, Am 18.07.24 um 15:04 schrieb Ramiro Polla: [...] +static VSScriptLibrary vs_script_library; Does vs_script_library have to be a global? I think it has to: ffmpeg allows multiple input files, in case you open two VapourSynth files you want to load the Library only once. It sho

Re: [FFmpeg-devel] [PATCH v4 1/3] avcodec/jpeg2000dec: Add support for CAP and CPF markers

2024-07-18 Thread Pierre-Anthony Lemieux
On Mon, Jul 15, 2024 at 10:33 PM Tomas Härdin wrote: > > fre 2024-07-12 klockan 12:51 -0700 skrev Pierre-Anthony Lemieux: > > On Thu, Jul 11, 2024 at 10:28 PM Tomas Härdin wrote: > > > > > > > +if (s->in_tile_headers == 1 && s->isHT && (!s- > > > > > Ccap15_b11)) > > > > +

Re: [FFmpeg-devel] [PATCH v2] libavformat/vapoursynth: Update to API version 4, load library at runtime

2024-07-18 Thread Ramiro Polla
On Thu, Jul 18, 2024 at 3:41 PM Stefan Oltmanns via ffmpeg-devel wrote: > Am 18.07.24 um 15:04 schrieb Ramiro Polla: > [...] > > +static VSScriptLibrary vs_script_library; > >>> > >>> Does vs_script_library have to be a global? > >>> > >> > >> I think it has to: ffmpeg allows multi

Re: [FFmpeg-devel] avisynth as an internal filter, any objections?

2024-07-18 Thread Michael Niedermayer
On Thu, Jul 18, 2024 at 12:21:11PM +0200, Stefan Oltmanns via ffmpeg-devel wrote: > AviSynth (or better VapourSynth) as filter sounds great, but is it possible? > The reason why input plugins (like FFmpegSource2) in > AviSynth/VapourSynth create an index file in a first pass is to allow > frame-ac

Re: [FFmpeg-devel] [PATCH 13/39] lavc/ffv1: drop redundant PlaneContext.quant_table

2024-07-18 Thread Michael Niedermayer
On Thu, Jul 18, 2024 at 10:20:09AM +0200, Anton Khirnov wrote: > Quoting Michael Niedermayer (2024-07-18 00:32:38) > > the data for each decoder task should be together and not scattered around > > more than needed, reducing cache efficiency > > > > putting all this extra code in the inner per pix

Re: [FFmpeg-devel] [PATCH 10/39] lavc/ffv1dec: move the bitreader to stack

2024-07-18 Thread Michael Niedermayer
On Thu, Jul 18, 2024 at 11:08:59AM +0200, Anton Khirnov wrote: > Quoting Michael Niedermayer (2024-07-18 00:42:05) > > all the stuff should be put together close so its efficiently > > using CPU caches > > Which is why it shares its cacheline with PutBitContext, because the > code benefits from ha

Re: [FFmpeg-devel] [PATCH v2] libavformat/vapoursynth: Update to API version 4, load library at runtime

2024-07-18 Thread Stefan Oltmanns via ffmpeg-devel
Am 18.07.24 um 16:21 schrieb Ramiro Polla: On Thu, Jul 18, 2024 at 3:41 PM Stefan Oltmanns via ffmpeg-devel wrote: Am 18.07.24 um 15:04 schrieb Ramiro Polla: [...] +static VSScriptLibrary vs_script_library; Does vs_script_library have to be a global? I think it has to: ffmpeg allows mu

[FFmpeg-devel] [PATCH] lavc/vvc_mc: R-V V avg w_avg

2024-07-18 Thread uk7b
From: sunyuechi C908 X60 avg_8_2x2_c:1.21.2 avg_8_2x2_rvv_i32 :0.70.7 avg_8_2x4_c:2.02.0 avg_8_2x4_rvv_i

Re: [FFmpeg-devel] [PATCH] lavc/vvc_mc: R-V V avg w_avg

2024-07-18 Thread flow gg
> Again, I don't think that a maximul multiplier belongs here. If the calling > code cannot scale the multiplier up, then it should be a normal loop providing > the same code for all VLENs. I think it's acceptable to add such a parameter, which isn't particularly common in other files, because thi

Re: [FFmpeg-devel] [PATCH 13/39] lavc/ffv1: drop redundant PlaneContext.quant_table

2024-07-18 Thread Anton Khirnov
Quoting Michael Niedermayer (2024-07-18 16:31:51) > On Thu, Jul 18, 2024 at 10:20:09AM +0200, Anton Khirnov wrote: > > Quoting Michael Niedermayer (2024-07-18 00:32:38) > > > the data for each decoder task should be together and not scattered around > > > more than needed, reducing cache efficiency

Re: [FFmpeg-devel] [PATCH v2] libavformat/vapoursynth: Update to API version 4, load library at runtime

2024-07-18 Thread epirat07
On 18 Jul 2024, at 16:21, Ramiro Polla wrote: > On Thu, Jul 18, 2024 at 3:41 PM Stefan Oltmanns via ffmpeg-devel > wrote: >> Am 18.07.24 um 15:04 schrieb Ramiro Polla: >> [...] >> >> +static VSScriptLibrary vs_script_library; > > Does vs_script_library have to be a global?

Re: [FFmpeg-devel] [PATCH 10/39] lavc/ffv1dec: move the bitreader to stack

2024-07-18 Thread Anton Khirnov
Quoting Michael Niedermayer (2024-07-18 16:48:06) > On Thu, Jul 18, 2024 at 11:08:59AM +0200, Anton Khirnov wrote: > > Quoting Michael Niedermayer (2024-07-18 00:42:05) > > > all the stuff should be put together close so its efficiently > > > using CPU caches > > > > Which is why it shares its cac

Re: [FFmpeg-devel] [PATCH 13/39] lavc/ffv1: drop redundant PlaneContext.quant_table

2024-07-18 Thread Paul B Mahol
On Thu, Jul 18, 2024 at 10:20 AM Anton Khirnov wrote: > Quoting Michael Niedermayer (2024-07-18 00:32:38) > > the data for each decoder task should be together and not scattered > around > > more than needed, reducing cache efficiency > > > > putting all this extra code in the inner per pixel loo

Re: [FFmpeg-devel] [PATCH 10/39] lavc/ffv1dec: move the bitreader to stack

2024-07-18 Thread Paul B Mahol
On Thu, Jul 18, 2024 at 5:31 PM Anton Khirnov wrote: > Quoting Michael Niedermayer (2024-07-18 16:48:06) > > On Thu, Jul 18, 2024 at 11:08:59AM +0200, Anton Khirnov wrote: > > > Quoting Michael Niedermayer (2024-07-18 00:42:05) > > > > all the stuff should be put together close so its efficiently

Re: [FFmpeg-devel] [PATCH 09/39] lavc/ffv1: move run_index to the per-slice context

2024-07-18 Thread Anton Khirnov
Quoting Michael Niedermayer (2024-07-18 00:49:41) > The need for passing an additional pointer around > > seems to me a net negative It makes it explicitly clear which data is per-slice, and which per-frame/global, which is much harder to figure out with current code. -- Anton Khirnov _

Re: [FFmpeg-devel] [PATCH v2] libavformat/vapoursynth: Update to API version 4, load library at runtime

2024-07-18 Thread Stefan Oltmanns via ffmpeg-devel
Hello Anton, can you eloborate on that? What is unacceptable with my patch that is perfectly fine in the AviSynth input module? It's the very same concept. Loading the library at runtime makes it so much more useful, because you can distribute ffmpeg binaries without forcing the user to install

Re: [FFmpeg-devel] [PATCH 13/39] lavc/ffv1: drop redundant PlaneContext.quant_table

2024-07-18 Thread Anton Khirnov
Quoting Paul B Mahol (2024-07-18 17:31:50) > On Thu, Jul 18, 2024 at 10:20 AM Anton Khirnov wrote: > > > Quoting Michael Niedermayer (2024-07-18 00:32:38) > > > the data for each decoder task should be together and not scattered > > around > > > more than needed, reducing cache efficiency > > > >

Re: [FFmpeg-devel] [PATCH v3 1/3] avutil/utils: Allow "!" in FourCCs

2024-07-18 Thread Paul B Mahol
On Thu, Jul 18, 2024 at 12:48 PM Andrew Sayers wrote: > For example, AVERROR_BUG is "BUG!" > --- > libavutil/utils.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavutil/utils.c b/libavutil/utils.c > index 94d247bbee..a94589e873 100644 > --- a/libavutil/utils.c > ++

Re: [FFmpeg-devel] [PATCH 13/39] lavc/ffv1: drop redundant PlaneContext.quant_table

2024-07-18 Thread Paul B Mahol
On Thu, Jul 18, 2024 at 5:43 PM Anton Khirnov wrote: > Quoting Paul B Mahol (2024-07-18 17:31:50) > > On Thu, Jul 18, 2024 at 10:20 AM Anton Khirnov > wrote: > > > > > Quoting Michael Niedermayer (2024-07-18 00:32:38) > > > > the data for each decoder task should be together and not scattered >

Re: [FFmpeg-devel] [PATCH 13/39] lavc/ffv1: drop redundant PlaneContext.quant_table

2024-07-18 Thread Michael Niedermayer
On Thu, Jul 18, 2024 at 05:14:12PM +0200, Anton Khirnov wrote: [...] > diff --git a/libavcodec/ffv1dec_template.c b/libavcodec/ffv1dec_template.c > index 97a28b085a..d68bbda5be 100644 > --- a/libavcodec/ffv1dec_template.c > +++ b/libavcodec/ffv1dec_template.c > @@ -30,6 +30,7 @@ RENAME(decode_line)

Re: [FFmpeg-devel] [PATCH 13/39] lavc/ffv1: drop redundant PlaneContext.quant_table

2024-07-18 Thread Michael Niedermayer
On Thu, Jul 18, 2024 at 10:20:09AM +0200, Anton Khirnov wrote: > Quoting Michael Niedermayer (2024-07-18 00:32:38) > > the data for each decoder task should be together and not scattered around > > more than needed, reducing cache efficiency > > > > putting all this extra code in the inner per pix

Re: [FFmpeg-devel] [PATCH 09/39] lavc/ffv1: move run_index to the per-slice context

2024-07-18 Thread Michael Niedermayer
On Thu, Jul 18, 2024 at 05:36:39PM +0200, Anton Khirnov wrote: > Quoting Michael Niedermayer (2024-07-18 00:49:41) > > The need for passing an additional pointer around > > > > seems to me a net negative > > It makes it explicitly clear which data is per-slice, and which > per-frame/global, which

Re: [FFmpeg-devel] [PATCH 10/39] lavc/ffv1dec: move the bitreader to stack

2024-07-18 Thread Michael Niedermayer
On Thu, Jul 18, 2024 at 05:31:16PM +0200, Anton Khirnov wrote: > Quoting Michael Niedermayer (2024-07-18 16:48:06) > > On Thu, Jul 18, 2024 at 11:08:59AM +0200, Anton Khirnov wrote: > > > Quoting Michael Niedermayer (2024-07-18 00:42:05) [...] > > > > > > Another factor that matters in efficient ca

[FFmpeg-devel] [PATCH 3/5] lavc/h264dsp: correct VL and LMUL in idct_dc_add

2024-07-18 Thread Rémi Denis-Courmont
T-Head C908 (cycles): h264_idct4_dc_add_8bpp_c:94.7 h264_idct4_dc_add_8bpp_rvv_i32: 55.0 (before) h264_idct4_dc_add_8bpp_rvv_i32: 34.5 (after) h264_idct4_dc_add_9bpp_c:94.7 h264_idct4_dc_add_9bpp_rvv_i32: 43.5 (before) h264_idct4_dc_add_9bpp_rvv_i32: 38.2 (after) h264_idct4_dc_a

[FFmpeg-devel] [PATCH 1/5] lavc/h264dsp: factor some mostly identical R-V V code

2024-07-18 Thread Rémi Denis-Courmont
--- libavcodec/riscv/h264idct_rvv.S | 108 ++-- 1 file changed, 18 insertions(+), 90 deletions(-) diff --git a/libavcodec/riscv/h264idct_rvv.S b/libavcodec/riscv/h264idct_rvv.S index 48de65ec0b..505f491308 100644 --- a/libavcodec/riscv/h264idct_rvv.S +++ b/libavcodec/r

[FFmpeg-devel] [PATCH 2/5] lavc/h264dsp: move R-V V idct_dc_add

2024-07-18 Thread Rémi Denis-Courmont
From: "J. Dekker" No functional changes. This just moves the assembler so that it can be referenced by other functions in h264idct_rvv.S with local jumps. Edited-by: Rémi Denis-Courmont --- libavcodec/riscv/h264dsp_rvv.S | 103 --- libavcodec/riscv/h264idct_rvv.S |

[FFmpeg-devel] [PATCH 4/5] lavc/h264dsp: reuse the R-V V IDCT DC add functions

2024-07-18 Thread Rémi Denis-Courmont
This reuses the DC bypass functions from the multiple IDCT functions, to leverage vector code. As an added bonus, the caller functions can now rely on the callee functions to preserve their parameters, thus cutting down on stack spills. --- libavcodec/riscv/h264idct_rvv.S | 76 +++

[FFmpeg-devel] [PATCH 5/5] lavc/h264dsp: reduce spills in R-V V idct_add16

2024-07-18 Thread Rémi Denis-Courmont
--- libavcodec/riscv/h264idct_rvv.S | 100 ++-- 1 file changed, 45 insertions(+), 55 deletions(-) diff --git a/libavcodec/riscv/h264idct_rvv.S b/libavcodec/riscv/h264idct_rvv.S index c42db6ef29..c74ea18c19 100644 --- a/libavcodec/riscv/h264idct_rvv.S +++ b/libavcodec/r

[FFmpeg-devel] [PATCH 1/2] avformat/mov: Check extradata in mov_read_iacb()

2024-07-18 Thread Michael Niedermayer
Fixes: MemLeak Fixes: 69853/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-4660448545275904 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavformat/mov.c | 2 ++ 1 file changed, 2 insertions(+)

[FFmpeg-devel] [PATCH 2/2] avcodec/pnmdec: Use 64bit for input size check

2024-07-18 Thread Michael Niedermayer
Fixes: out of array read Fixes: poc3 Reported-by: VulDB CNA Team Signed-off-by: Michael Niedermayer --- libavcodec/pnmdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/pnmdec.c b/libavcodec/pnmdec.c index a6945549bd5..59013ada495 100644 --- a/libavcodec/pnmdec.

Re: [FFmpeg-devel] [PATCH 1/2] avformat/mov: Check extradata in mov_read_iacb()

2024-07-18 Thread James Almer
On 7/18/2024 7:16 PM, Michael Niedermayer wrote: Fixes: MemLeak Fixes: 69853/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-4660448545275904 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libav

[FFmpeg-devel] [PATCH] avformat/iamf_parse: sanitize audio_roll_distance values

2024-07-18 Thread James Almer
Ensure the values are spec complaint and that no integer overflow can happen. Signed-off-by: James Almer --- libavformat/iamf_parse.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/libavformat/iamf_parse.c b/libavformat/iamf_parse.c index a176c7d13a..dd394c