Re: [FFmpeg-devel] Democratization work in progress draft v2

2025-01-29 Thread Leo Izen
in handing over reigns to anybody. - Leo Izen (Traneptora) ___ 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".

[FFmpeg-devel] [PATCH] avcodec/jpegxl_parse{, r}: fix integer overflow for some malformed files

2025-01-29 Thread Leo Izen
igned int. Several other members are also changed to int64_t to avoid this problem in other possible scenarios. Signed-off-by: Leo Izen Reported-by: Kacper Michajlow Fixes: clusterfuzz-testcase-minimized-fuzzer_loadfile-6085331937460224 --- libavcodec/jpegxl_parse.c | 5 +++-- libavc

Re: [FFmpeg-devel] [PATCH] avutil/frame: check return value for cropping offsets

2025-01-28 Thread Leo Izen
On 1/21/25 7:34 AM, Leo Izen wrote: This function can return AVERROR_BUG in theory if something went wrong, but so can the caller, so we should propagate that error message upward in that case. Signed-off-by: Leo Izen --- libavutil/frame.c | 9 +++-- 1 file changed, 7 insertions(+), 2

[FFmpeg-devel] [PATCH] avutil/frame: check return value for cropping offsets

2025-01-21 Thread Leo Izen
This function can return AVERROR_BUG in theory if something went wrong, but so can the caller, so we should propagate that error message upward in that case. Signed-off-by: Leo Izen --- libavutil/frame.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libavutil

Re: [FFmpeg-devel] Regarding Git Tooling

2025-01-20 Thread Leo Izen
rofit enterprise controversy that surrounded Gitea. I can't vouch for it (or against it, for that matter) but I can say that some prominent projects (e.g. Fedora) have chosen it. - Leo Izen (Traneptora) ___ ffmpeg-devel mailing list ffmpeg-devel@

Re: [FFmpeg-devel] [PATCH v2 1/2] avformat/flvdec: implement support for parsing ModEx data

2025-01-16 Thread Leo Izen
On 1/16/25 6:32 PM, Timo Rothenpieler wrote: On 17.01.2025 00:16, Leo Izen wrote: On 1/15/25 5:41 PM, Timo Rothenpieler wrote: ---   libavformat/flv.h    |  5   libavformat/flvdec.c | 68   2 files changed, 73 insertions(+) diff --git a

Re: [FFmpeg-devel] [PATCH v2 1/2] avformat/flvdec: implement support for parsing ModEx data

2025-01-16 Thread Leo Izen
On 1/15/25 5:41 PM, Timo Rothenpieler wrote: --- libavformat/flv.h| 5 libavformat/flvdec.c | 68 2 files changed, 73 insertions(+) diff --git a/libavformat/flv.h b/libavformat/flv.h index 74d3b8de8b..d8f7980f2e 100644 --- a/libavformat/

Re: [FFmpeg-devel] [PATCH] avcodec/leaddec: support format 0x1006

2025-01-14 Thread Leo Izen
On 1/15/25 2:10 AM, Peter Ross wrote: Fixes ticket #10658. --- libavcodec/leaddec.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/libavcodec/leaddec.c b/libavcodec/leaddec.c index 88387902ca..12e27061e9 100644 --- a/libavcodec/leaddec.c +++ b/libavcodec/leadde

Re: [FFmpeg-devel] [PATCH 1/2] avformat/flvdec: implement support for parsing ModEx data

2025-01-14 Thread Leo Izen
On 1/14/25 7:36 PM, Timo Rothenpieler wrote: --- libavformat/flv.h| 5 libavformat/flvdec.c | 63 2 files changed, 68 insertions(+) diff --git a/libavformat/flv.h b/libavformat/flv.h index 74d3b8de8b..d8f7980f2e 100644 --- a/libavformat/

[FFmpeg-devel] [PATCH v2] avutil/frame.h: improve documentation for AV_FRAME_FLAG_LOSSLESS

2025-01-10 Thread Leo Izen
It should be more clear what this flag is indicating with a more verbose comment documenting it. Signed-off-by: Leo Izen Reviewed-by: Marton Balint Reviewed-by: Alexander Strasser Reviewed-by: Marth64 --- libavutil/frame.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff

[FFmpeg-devel] [PATCH] avutil/frame.h: improve documentation for AV_FRAME_FLAG_LOSSLESS

2025-01-07 Thread Leo Izen
It should be more clear what this flag is indicating with a more verbose comment documenting it. Signed-off-by: Leo Izen --- libavutil/frame.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libavutil/frame.h b/libavutil/frame.h index 993fa6b65a..e3657f193f 100644

Re: [FFmpeg-devel] [PATCH] avformat/ipfsgateway: fix capitalizaton mistake

2025-01-07 Thread Leo Izen
On 1/7/25 4:54 PM, Alexander Strasser via ffmpeg-devel wrote: On 2025-01-07 14:18 -0500, Leo Izen wrote: Fix the incorrect capitalization of the project name in a comment. The project is named FFmpeg, not FFMpeg. Signed-off-by: Leo Izen Reported-by: NyanMaths --- libavformat/ipfsgateway.c

Re: [FFmpeg-devel] [ANNOUNCE] upcoming vote: CC election

2025-01-07 Thread Leo Izen
this second complaint made in a public environment? If not, carry on as before. If so, I don't see the complaint on the ML - do you have a link to the conversation? Asking as a GA member who votes. - Leo Izen (Traneptora) ___ ffmpeg-devel mailing

[FFmpeg-devel] [PATCH] avformat/ipfsgateway: fix capitalizaton mistake

2025-01-07 Thread Leo Izen
Fix the incorrect capitalization of the project name in a comment. The project is named FFmpeg, not FFMpeg. Signed-off-by: Leo Izen Reported-by: NyanMaths --- libavformat/ipfsgateway.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/ipfsgateway.c b/libavformat

Re: [FFmpeg-devel] [PATCH v4 0/2] Animated JPEG XL encoding (via libjxl)

2025-01-03 Thread Leo Izen
On 12/30/24 11:34 AM, Leo Izen wrote: On 12/24/24 2:51 AM, Leo Izen wrote: Changes since v3: - Added APIChanges and Changelog entry - bumped minor version (new codec id) - Changed commit message to libjxl: - Added Reviewed-by to commits Changes since v2: - Replaced "goto end;" with &

Re: [FFmpeg-devel] [PATCH v4 0/2] Animated JPEG XL encoding (via libjxl)

2024-12-30 Thread Leo Izen
On 12/24/24 2:51 AM, Leo Izen wrote: Changes since v3: - Added APIChanges and Changelog entry - bumped minor version (new codec id) - Changed commit message to libjxl: - Added Reviewed-by to commits Changes since v2: - Replaced "goto end;" with "return ret;" when unneces

Re: [FFmpeg-devel] [ANNOUNCE] upcoming vote: CC election

2024-12-30 Thread Leo Izen
CC or the previous CC? I just want to confirm the current CC situation. Carbon-copying James to double check. [1]: https://ffmpeg.org/pipermail/ffmpeg-devel/2024-December/337990.html - Leo Izen (Traneptora) ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg

Re: [FFmpeg-devel] [PATCH] avformat/dashdec: check NULL pointer of av_strtok

2024-12-27 Thread Leo Izen
On 12/27/24 9:15 AM, Steven Liu wrote: Leo Izen 于2024年12月27日周五 21:29写道: Hi Leo, On 12/26/24 6:37 PM, Steven Liu wrote: fix CID: 1637073 there maybe have NULL pointer return by av_strtok, and should be checked before strtoll it. Signed-off-by: Steven Liu --- libavformat/dashdec.c | 2

Re: [FFmpeg-devel] [PATCH] avformat/dashdec: check NULL pointer of av_strtok

2024-12-27 Thread Leo Izen
integer, do we want to return that integer? What about returning an empty segment struct (as though the range == NULL)? It looks fine for preventing a NULL dereference, I just want to check to make sure this behavior is desired if the "-" token is no

Re: [FFmpeg-devel] [PATCH] configure: Include quotes around pkg_version

2024-12-27 Thread Leo Izen
nding the variable, but if I had to guess, it may be a bug in its path-mangling (i.e. converting /foo/bar to C:\foo\bar) where it's interpreting "=" as a filename. I could not say for certain if this is the case. In either case, I don't

Re: [FFmpeg-devel] Worsening messages

2024-12-25 Thread Leo Izen
iled. Mails for FOSS projects like this one with public mailing lists get immortalized fairly quickly, even if you remove them from the server. - Leo Izen (Traneptora) ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listin

Re: [FFmpeg-devel] matroskadec: support S_TEXT/WEBVTT

2024-12-25 Thread Leo Izen
end of a block where cleanup happens. - Leo Izen (Traneptora) From 5bd4a6f56231c3160be6c2d322f5d1081d7b3622 Mon Sep 17 00:00:00 2001 From: wang-bin Date: Tue, 17 Dec 2024 23:21:57 +0800 Subject: [PATCH] matroskadec: support S_TEXT/WEBVTT fix ticket #5641 --- libavformat/matroska.c|

Re: [FFmpeg-devel] [PATCH v4 1/2] avcodec/libjxl: add animated JPEG XL encoder

2024-12-24 Thread Leo Izen
version bump. I'm not so sure about the assert. See: c3083b3266cf01fdc43e5d03e27bea35d7c1faae which is the most recent codec added, and it didn't change the assert. Although that may have been a mistake as well. - Leo Izen (Traneptora) _

[FFmpeg-devel] [PATCH v4 1/2] avcodec/libjxl: add animated JPEG XL encoder

2024-12-23 Thread Leo Izen
: Marth64 Co-authored-by: Zsolt Vadász Signed-off-by: Leo Izen --- Changelog | 1 + configure | 2 + doc/APIchanges | 3 + libavcodec/allcodecs.c | 2 + libavcodec/codec_desc.c| 8 + libavcodec/codec_id.h | 1 + libavcodec

[FFmpeg-devel] [PATCH v4 2/2] avformat/jpegxl_anim_dec: use new animated JPEG XL codec ID

2024-12-23 Thread Leo Izen
A new codec ID has been added to avcodec for animated JPEG XL, so we should use that in the animated JPEG XL demuxer. Reviewed-by: Marth64 Signed-off-by: Leo Izen --- libavformat/jpegxl_anim_dec.c| 2 +- tests/ref/fate/jxl-anim-demux-icos4d | 2 +- tests/ref/fate/jxl-anim-demux-newton

[FFmpeg-devel] [PATCH v4 0/2] Animated JPEG XL encoding (via libjxl)

2024-12-23 Thread Leo Izen
t and added it as an argument to libjxl_preprocess_frame as that's the only place it was used - Added some comments Changes since v1: - Fixed FATE failures Leo Izen (2): avcodec/libjxl: add animated JPEG XL encoder avformat/jpegxl_anim_dec: use new animated JPE

Re: [FFmpeg-devel] [PATCH v3 0/2] Animated JPEG XL (via libjxl)

2024-12-23 Thread Leo Izen
On 12/15/24 12:04 PM, Leo Izen wrote: Changes since v2: - Replaced "goto end;" with "return ret;" when unnecessary - removed *data from JXLEncodeContext and added it as an argument to libjxl_preprocess_frame as that's the only place it was used - Added some comments

Re: [FFmpeg-devel] matroskadec: support S_TEXT/WEBVTT

2024-12-23 Thread Leo Izen
g.org with subject "unsubscribe". This patch has a big web of gotos. This can get very confusing. Is there any way to change it so there's if blocks or other static functions to call? Gotos should be used very sparingly and mostly to goto the end of a block where cleanup h

Re: [FFmpeg-devel] [PATCH] avformat/iff: remove surplus if statement

2024-12-22 Thread Leo Izen
iff_read_packet(AVFormatContext *s, av_assert0(0); } -if (ret < 0) -return ret; return ret; } Seems fine to me. Will apply. - Leo Izen (Traneptora) ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org ht

Re: [FFmpeg-devel] [PATCH] swscale: use 16-bit intermediate precision for RGB/XYZ conversion

2024-12-22 Thread Leo Izen
insignificant amount? What if we lazily allocate them only if CONFIG_SMALL? Considering we have NULL_IF_CONFIG_SMALL() on several-byte text strings I can see us caring in that scenario. - Leo Izen (Traneptora) ___ ffmpeg-devel mailing list ffmpeg-devel

Re: [FFmpeg-devel] [PATCH v2 04/17] swscale/utils: read HDR mastering metadata from AVFrame

2024-12-19 Thread Leo Izen
On 12/16/24 6:17 AM, Niklas Haas wrote: From: Niklas Haas --- libswscale/utils.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/libswscale/utils.c b/libswscale/utils.c index 2d8fc10beb..3d3fcadacc 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -46

Re: [FFmpeg-devel] [PATCH] configure: add option to statically link to libvulkan

2024-12-18 Thread Leo Izen
n, can you give an example of a weird setup where this would solve a problem? - Leo Izen (Traneptora) ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ff

Re: [FFmpeg-devel] [PATCH v2 0/3] Make fate tests succeed with zlib-ng

2024-12-16 Thread Leo Izen
it works for all cases, my point is, that it is a valid solution It really isn't, because it doesn't work in all cases. It works for a specific list of known cases. This is not the same thing. - Leo Izen (Traneptora) ___ ffmpeg-devel mailing li

Re: [FFmpeg-devel] [PATCH v2 0/3] Make fate tests succeed with zlib-ng

2024-12-16 Thread Leo Izen
some sort of tool that decodes relevant zlib chunks and then run a checksum on its output However, (b) is much more complicated and probably not worth the effort. - Leo Izen (Traneptora) ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffm

[FFmpeg-devel] [PATCH v3 2/2] avformat/jpegxl_anim_dec: use new animated JPEG XL codec ID

2024-12-15 Thread Leo Izen
A new codec ID has been added to avcodec for animated JPEG XL, so we should use that in the animated JPEG XL demuxer. Signed-off-by: Leo Izen --- libavformat/jpegxl_anim_dec.c| 2 +- tests/ref/fate/jxl-anim-demux-icos4d | 2 +- tests/ref/fate/jxl-anim-demux-newton | 2 +- 3 files

[FFmpeg-devel] [PATCH v3 1/2] avcodec/libjxlenc: add animated JPEG XL encoder

2024-12-15 Thread Leo Izen
: Zsolt Vadász Signed-off-by: Leo Izen --- configure | 2 + libavcodec/allcodecs.c | 2 + libavcodec/codec_desc.c| 8 + libavcodec/codec_id.h | 1 + libavcodec/jpegxl_parser.c | 2 +- libavcodec/libjxldec.c | 16 ++ libavcodec/libjxlenc.c | 392

[FFmpeg-devel] [PATCH v3 0/2] Animated JPEG XL (via libjxl)

2024-12-15 Thread Leo Izen
Changes since v2: - Replaced "goto end;" with "return ret;" when unnecessary - removed *data from JXLEncodeContext and added it as an argument to libjxl_preprocess_frame as that's the only place it was used - Added some comments Changes since v1: - Fixed FATE failures

Re: [FFmpeg-devel] [PATCH 0/2] Animated JPEG XL Encoder

2024-12-14 Thread Leo Izen
spot? They could be. There use to be a free statement there that was moved, and I didn't update the gotos. Good catch! - Leo Izen (Traneptora) ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-deve

Re: [FFmpeg-devel] [PATCH 0/2] Animated JPEG XL Encoder

2024-12-11 Thread Leo Izen
On 12/4/24 9:59 AM, Leo Izen wrote: > Changes since v1: > - modified fate tests to use jpegxl_anim codec ID, so > the fate tests don't fail after applying patch 2/2 > > Leo Izen (2): >avcodec/libjxlenc: add animated JPEG XL encoder >avformat/jpegxl_anim_dec: use

Re: [FFmpeg-devel] [PATCH] avcodec/png{dec, enc}: update mDCV and cLLI chunk capitalization

2024-12-09 Thread Leo Izen
On 12/8/24 2:23 PM, Jan Ekström wrote: On Sun, Dec 1, 2024 at 4:21 PM Leo Izen wrote: The PNGv3 Specification Draft [1] has changed the capitalization of mDCV and cLLI chunks (formerly mDCv and cLLi). This patch updates FFmpeg to work with the new chunk names while retaining decode-side

Re: [FFmpeg-devel] [PATCH v2] avfilter/af_ashowinfo: fix scaling factor of replaygain peak values

2024-12-07 Thread Leo Izen
LOG_INFO, "%f", peak / 10.0f); av_log(ctx, AV_LOG_INFO, ", "); } LGTM, will apply. - Leo Izen (Traneptora) ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubs

Re: [FFmpeg-devel] Decoding performance -f rawvideo pipe:1 vs BMP images output

2024-12-07 Thread Leo Izen
mailing list, rather than ffmpeg-devel. However, you did bring up an issue with the codebase after further investigation. What happens if you use -thread_queue_size 0 before the output? - Leo Izen (Traneptora) ___ ffmpeg-devel mailing list ffmpeg-devel

Re: [FFmpeg-devel] [PATCH] avcodec/png{dec, enc}: update mDCV and cLLI chunk capitalization

2024-12-07 Thread Leo Izen
On 12/1/24 9:20 AM, Leo Izen wrote: The PNGv3 Specification Draft [1] has changed the capitalization of mDCV and cLLI chunks (formerly mDCv and cLLi). This patch updates FFmpeg to work with the new chunk names while retaining decode-side compatibility with files created using the old names. [1

Re: [FFmpeg-devel] [PATCH v2 10/16] avfilter/vf_scale: strip metadata when changing colorspace

2024-12-06 Thread Leo Izen
ut not primaries (e.g. after linearization), since it only references the gamut of the mastering display. - Leo Izen (Traneptora) ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit

Re: [FFmpeg-devel] [PATCH v2 11/16] swscale/csputils: add internal colorspace math helpers

2024-12-06 Thread Leo Izen
t pq_eotf(float x) +{ +float idxf = av_clipf(x, 0.0f, 1.0f) * (PQ_LUT_SIZE - 1); +int ipart = floorf(idxf); +float fpart = idxf - ipart; + return fmixf(pq_eotf_lut[ipart], pq_eotf_lut[ipart + 1], fpart); +} + +static inline float pq_oetf(float x) +{ +x = powf(fmaxf(x * 1e-4f, 0.0f)

Re: [FFmpeg-devel] [PATCH] avfilter/af_ashowinfo: fix scaling factor of replaygain peak values

2024-12-04 Thread Leo Izen
it be possible to post a sentence or two in the commit message body explaining at first glance? e.g. something like "Commit changed replaygain values to use 100k instead of UINT32_MAX as peak, with possibility of overflow. af_ashowinfo was never updated to reflect this, so we update it now

Re: [FFmpeg-devel] [PATCH 0/2] Animated JPEG XL Encoder

2024-12-04 Thread Leo Izen
On 12/4/24 9:59 AM, Leo Izen wrote: Changes since v1: - modified fate tests to use jpegxl_anim codec ID, so the fate tests don't fail after applying patch 2/2 Leo Izen (2): avcodec/libjxlenc: add animated JPEG XL encoder avformat/jpegxl_anim_dec: use new animated JPEG XL cod

[FFmpeg-devel] [PATCH 2/2] avformat/jpegxl_anim_dec: use new animated JPEG XL codec ID

2024-12-04 Thread Leo Izen
A new codec ID has been added to avcodec for animated JPEG XL, so we should use that in the animated JPEG XL demuxer. Signed-off-by: Leo Izen --- libavformat/jpegxl_anim_dec.c| 2 +- tests/ref/fate/jxl-anim-demux-icos4d | 2 +- tests/ref/fate/jxl-anim-demux-newton | 2 +- 3 files

[FFmpeg-devel] [PATCH 1/2] avcodec/libjxlenc: add animated JPEG XL encoder

2024-12-04 Thread Leo Izen
: Zsolt Vadász Signed-off-by: Leo Izen --- configure | 2 + libavcodec/allcodecs.c | 2 + libavcodec/codec_desc.c| 8 + libavcodec/codec_id.h | 1 + libavcodec/jpegxl_parser.c | 2 +- libavcodec/libjxldec.c | 16 ++ libavcodec/libjxlenc.c | 365

[FFmpeg-devel] [PATCH 0/2] Animated JPEG XL Encoder

2024-12-04 Thread Leo Izen
Changes since v1: - modified fate tests to use jpegxl_anim codec ID, so the fate tests don't fail after applying patch 2/2 Leo Izen (2): avcodec/libjxlenc: add animated JPEG XL encoder avformat/jpegxl_anim_dec: use new animated JPEG XL codec ID configure

[FFmpeg-devel] [PATCH 2/2] avformat/jpegxl_anim_dec: use new animated JPEG XL codec ID

2024-12-03 Thread Leo Izen
A new codec ID has been added to avcodec for animated JPEG XL, so we should use that in the animated JPEG XL demuxer. Signed-off-by: Leo Izen --- libavformat/jpegxl_anim_dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/jpegxl_anim_dec.c b/libavformat

[FFmpeg-devel] [PATCH 1/2] avcodec/libjxlenc: add animated JPEG XL encoder

2024-12-03 Thread Leo Izen
: Zsolt Vadász Signed-off-by: Leo Izen --- configure | 2 + libavcodec/allcodecs.c | 2 + libavcodec/codec_desc.c| 8 + libavcodec/codec_id.h | 1 + libavcodec/jpegxl_parser.c | 2 +- libavcodec/libjxldec.c | 16 ++ libavcodec/libjxlenc.c | 365

Re: [FFmpeg-devel] [RFC] infrastructure documentation

2024-12-02 Thread Leo Izen
so I shouldn't have access, so that's a good thing. - Leo Izen (Traneptora) ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-req

Re: [FFmpeg-devel] [PATCH v2 2/6] avutil/csp: eliminate redundant branch

2024-12-01 Thread Leo Izen
urn NULL; -return func; +return trc_funcs[trc]; } This is future-proof in case there's gaps in H.273, which there are in some cases. Also it prevents a segfault crash if someone passes an enum that hasn't been added to FFmpeg yet, but has been added to H.273.

[FFmpeg-devel] [PATCH] avcodec/png{dec, enc}: update mDCV and cLLI chunk capitalization

2024-12-01 Thread Leo Izen
-off-by: Leo Izen --- libavcodec/pngdec.c | 12 +++- libavcodec/pngenc.c | 4 ++-- tests/ref/fate/png-mdcv | 2 +- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c index c5b32c166d..f8cb61775e 100644 --- a/libavcodec/pngdec.c

[FFmpeg-devel] [PATCH] MAINTAINERS: list csp.c and csp.h maintainers

2024-11-22 Thread Leo Izen
Ronald S. Bultje wrote most of the code before there was a refactor and condense (which I mostly wrote). As such, listing both him and myself as maintainers of csp.h and csp.h, which previously had no maintainer listed at all (after conferring on IRC). Signed-off-by: Leo Izen --- MAINTAINERS

Re: [FFmpeg-devel] [RFC] dormant git accounts

2024-11-13 Thread Leo Izen
ounts that have made no commits in a decade, and I don't believe anyone has objected to that either. (As you mentioned, if they become active we can re-add them.) - Leo Izen (Traneptora) ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://

Re: [FFmpeg-devel] [RFC] dormant git accounts

2024-11-13 Thread Leo Izen
le. I'd even say that we may go as far and remove *every* key that is unlabeled unless we can clearly establish who it belongs to and label it as such. We need to know who these keys belong to so we can contact those people if necessary or know

[FFmpeg-devel] [PATCH] avcodec/jpegxl_parser: fix reading lz77-pair as initial entropy symbol

2024-11-07 Thread Leo Izen
window). Reported-by: Kacper Michajłow Found-by: ossfuzz Fixes: 368725676/clusterfuzz-testcase-minimized-fuzzer_protocol_file-6022251122589696-cut Fixes: 42537758/clusterfuzz-testcase-minimized-fuzzer_protocol_file-5818969469026304-cut Signed-off-by: Leo Izen --- libavcodec/jpegxl_parser.c

Re: [FFmpeg-devel] [FFmpeg-cvslog] fate/pixfmts: extend the high bit depth test

2024-11-07 Thread Leo Izen
ng on fate-pixfmt-yuv444p12-yuv444p, but i can't reproduce it. This may be a silly question, but does CPUFLAGS set -march=foo? What happens with --extra-cflags=-march=x86_64? - Leo Izen ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org htt

Re: [FFmpeg-devel] [PATCH] avcodec/jpegxl_parser: clear window

2024-11-07 Thread Leo Izen
On 11/7/24 12:28 AM, Kacper Michajlow wrote: On Tue, 5 Nov 2024 at 11:05, Leo Izen wrote: This says reported by kacper, could you send me the fuzz testcase? I've sent you testcases privately. - Kacper Thanks, I received them. I'll take a look today.

Re: [FFmpeg-devel] [PATCH] avcodec/jpegxl_parser: check entropy_decoder_read_symbol return value

2024-11-05 Thread Leo Izen
FFER_TOO_SMALL; } LTGM, Will apply. - Leo Izen (Traneptora) ___ 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] avcodec/jpegxl_parser: clear window

2024-11-05 Thread Leo Izen
cted to be previously set. It would be, as this is just a sliding LZ77 window. Reading uninitialized bytes that weren't written is a bug. I'd be curious to see the fuzz case so I could run it through valgrind and figure out why that's happening. This says reported by k

Re: [FFmpeg-devel] [PATCH v2 0/3] [RFC] Exif Overhaul

2024-10-01 Thread Leo Izen
On 10/1/24 7:36 AM, Anton Khirnov wrote: Quoting James Almer (2024-09-30 01:01:39) On 9/16/2024 11:43 AM, Leo Izen wrote: I've made some changes to the last EXIF overhaul patch I sent, notably I fixed up some bugs and added MakerNote parsing, so it should not corrupt MakerNotes that are i

Re: [FFmpeg-devel] [PATCH] avcodec/ffv1: Implement CRC with -1 initial and final value

2024-09-25 Thread Leo Izen
+v = av_crc(av_crc_get_table(AV_CRC_32_IEEE), f->crcref, buf_p, bytes) ^ (f->crcref&0x4964AF46); Nitpick: should probably be (f->crcref & 0x4964af46), the space makes it a bit more readable. AV_WL32(buf_p + bytes, v); bytes += 4;

Re: [FFmpeg-devel] [PATCH] av_get_frame_filename2 parameter int -> int64_t

2024-09-16 Thread Leo Izen
breaking change, because you're changing the function signature (including the size of arguments) for a function exposed as a public API. You'll need to figure out a solution that doesn't break public interfaces. - Leo Izen (Traneptora) ___

[FFmpeg-devel] [PATCH v2 3/3] avcodec/pngenc: write eXIf chunks

2024-09-16 Thread Leo Izen
Write EXIF metadata exposed AV_FRAME_DATA_EXIF as an eXIf chunk to PNG files, if present. Signed-off-by: Leo Izen --- libavcodec/pngenc.c | 4 tests/ref/fate/cover-art-mp3-id3v2-remux | 6 +++--- tests/ref/fate/mov-cover-image | 6 +++--- 3 files changed, 10

[FFmpeg-devel] [PATCH v2 2/3] avcodec/pngdec: parse eXIf chunk

2024-09-16 Thread Leo Izen
Add support to parse eXIf chunks using the new EXIF framework. Signed-off-by: Leo Izen --- libavcodec/pngdec.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c index c5b32c166d..efd173e154 100644 --- a/libavcodec

[FFmpeg-devel] [PATCH v2 1/3] various: change EXIF metadata into AVFrameSideData

2024-09-16 Thread Leo Izen
tests to read the keys from the side data instead of from the main frame metadata. This commit also deprecates an avpriv_ function in exif.h, exposing the parsing functionality as a public API in the exported libavcodec/exif.h header file. Signed-off-by: Leo Izen --- fftools/ffprobe.c

[FFmpeg-devel] [PATCH v2 0/3] [RFC] Exif Overhaul

2024-09-16 Thread Leo Izen
yMatrix is not in the dihedral group D4. Currently there's no code that takes an AVDictionary and writes it back into EXIF as these are not compatible structures. EXIF includes integers of varying lengths, while AVDictionary contains strings only. Leo Izen (3): various: change EXIF metadata

Re: [FFmpeg-devel] [PATCH] avcodec/aacenc: Correct option description for aac_coder fast

2024-07-28 Thread Leo Izen
eo coding", offsetof(AACEncContext, options.mid_side), AV_OPT_TYPE_BOOL, {.i64 = -1}, -1, 1, AACENC_FLAGS}, {"aac_is", "Intensity stereo coding", offsetof(AACEncContext, options.intensity_stereo), AV_OPT_TYPE_BOOL, {.i64 = 1}, -1, 1, AACENC_FLAGS},

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/pngdec: use 8-bit sBIT cap for indexed PNGs per spec

2024-07-28 Thread Leo Izen
On 7/19/24 12:04 PM, Leo Izen wrote: The PNG specification[1] says that sBIT entries must be at most the bit depth specified in IHDR, unless the PNG is indexed-color, in which case sBIT must be between 1 and 8. We should not reject valid sBITs on PNGs with indexed color. [1]: https://www.w3.org

[FFmpeg-devel] [PATCH 2/2] avcodec/pngenc: fix sBIT writing for indexed-color PNGs

2024-07-19 Thread Leo Izen
://www.w3.org/TR/png-3/#11sBIT Regression since: c125860892e931d9b10f88ace73c91484815c3a8. Signed-off-by: Leo Izen Reported-by: Ramiro Polla: --- libavcodec/pngenc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libavcodec/pngenc.c b/libavcodec/pngenc.c index 7ae16fa2c5

[FFmpeg-devel] [PATCH 1/2] avcodec/pngdec: use 8-bit sBIT cap for indexed PNGs per spec

2024-07-19 Thread Leo Izen
84b454935fae2633a8a5dd075e22393f3e8f932f. Signed-off-by: Leo Izen Reported-by: Ramiro Polla --- libavcodec/pngdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c index cb861e5f60..c5b32c166d 100644 --- a/libavcodec/pngdec.c +++ b

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

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/png: more informative error message for invalid sBIT size

2024-07-15 Thread Leo Izen
On 7/12/24 3:03 PM, Leo Izen wrote: If the sBIT chunk size is invalid, we should print a more informative error message rather than return an error and print nothing. Signed-off-by: Leo Izen --- libavcodec/pngdec.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) Will merge soon

[FFmpeg-devel] [PATCH v3] fate/png: add mDCv and cLLi read and write test

2024-07-15 Thread Leo Izen
This test confirms that we can write mDCv and cLLi chunks and read them back via the png decoder. It uses an HEVC conformance sample with this metadata as the base source for the side data in the frames. Signed-off-by: Leo Izen Reported-by: Jan Ekström Reviewed-by: Jan Ekström Reviewed-by

Re: [FFmpeg-devel] [PATCH 02/11] avfilter/af_channelsplit: fix mixed declaration and code

2024-07-14 Thread Leo Izen
av_frame_clone(buf); if (!buf_out) return AVERROR(ENOMEM); This LGTM, I submitted a similar patch. - Leo Izen ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, v

[FFmpeg-devel] [PATCH] avfilter/af_channelsplit: fix declaration-after-statement warning

2024-07-14 Thread Leo Izen
Declare AVFrame *buf_out with the rest of the declarations to fix a compiler warning about Declarations after Statements in ISO C90. Signed-off-by: Leo Izen --- libavfilter/af_channelsplit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavfilter/af_channelsplit.c b

Re: [FFmpeg-devel] [PATCH v2 1/1] fate/png: add mDCv read and write test

2024-07-14 Thread Leo Izen
On 7/9/24 12:45 PM, Leo Izen wrote: This test confirms that we can write mDCv chunks and read them back via the png decoder. It uses an HEVC conformance sample with this metadata as the base source for the side data in the frames. Signed-off-by: Leo Izen Reported-by: Jan Ekström Reviewed-by

[FFmpeg-devel] [PATCH 2/2] avcodec/png: more informative error message for invalid sBIT size

2024-07-12 Thread Leo Izen
If the sBIT chunk size is invalid, we should print a more informative error message rather than return an error and print nothing. Signed-off-by: Leo Izen --- libavcodec/pngdec.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c

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

2024-07-12 Thread Leo Izen
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. Signed-off-by: Leo Izen Reported-by: Ramiro Polla --- libavcodec/pngdec.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [FFmpeg-devel] [PATCH] avformat/mov: ensure pasp box derived SAR is used if present

2024-07-10 Thread Leo Izen
sc->h_spacing = num; +sc->v_spacing = den; } If den == 0, nothing is assigned at all, but if den != 0 and if num == 0, we assign 0 to h_spacing, which will end up doing nothing because we check h_spacing && v_spacing later on in the other

Re: [FFmpeg-devel] [PATCHv3] swscale: prevent undefined behaviour in the PUTRGBA macro

2024-07-09 Thread Leo Izen
); #define PUTRGB48(dst, src, asrc, i, abase) \ Y= src[ 2 * i]; \ Are these able to be negative? If not, it may be wise to cast to uint32_t instead as left shifting a negative integer is UB. - Leo Izen (Traneptora) ___

[FFmpeg-devel] [PATCH v2 1/1] fate/png: add mDCv read and write test

2024-07-09 Thread Leo Izen
This test confirms that we can write mDCv chunks and read them back via the png decoder. It uses an HEVC conformance sample with this metadata as the base source for the side data in the frames. Signed-off-by: Leo Izen Reported-by: Jan Ekström Reviewed-by: Andreas Rheinhardt --- tests/fate

[FFmpeg-devel] [PATCH v2 0/1] fate/png: add mDCv read and write test

2024-07-09 Thread Leo Izen
Changes since v1: - changed transcode command Leo Izen (1): fate/png: add mDCv read and write test tests/fate/image.mak| 6 ++ tests/ref/fate/png-mdcv | 22 ++ 2 files changed, 28 insertions(+) create mode 100644 tests/ref/fate/png-mdcv -- 2.45.2

[FFmpeg-devel] [PATCH] fate/png: add mDCv read and write test

2024-07-08 Thread Leo Izen
This test confirms that we can write mDCv chunks and read them back via the png decoder. It uses an HEVC conformance sample with this metadata as the base source for the side data in the frames. Signed-off-by: Leo Izen Reported-by: Jan Ekström --- tests/fate/image.mak| 5 + tests/ref

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/pngenc: fix mDCv typo

2024-07-03 Thread Leo Izen
On 7/2/24 9:44 AM, Leo Izen wrote: When mDCv support was added, there was a typo in both variable names and also the MKTAG itself, incorrectly listing it as mDVc. The tag name stands for Mastering Display Color Volume so mDCv is correct. Typo originally introduced in

[FFmpeg-devel] [PATCH 2/2] avcodec/pngenc: fix mDCv typo

2024-07-02 Thread Leo Izen
When mDCv support was added, there was a typo in both variable names and also the MKTAG itself, incorrectly listing it as mDVc. The tag name stands for Mastering Display Color Volume so mDCv is correct. Typo originally introduced in 78949041417caaef0c82b2b23d7defdd88aa2378. Signed-off-by: Leo

[FFmpeg-devel] [PATCH 1/2] avcodec/pngdec: fix mDCv typo

2024-07-02 Thread Leo Izen
c7a57b0f70f8d1574aa0f0dbe98db85d8ac91c76. Signed-off-by: Leo Izen Reported-by: Ramiro Polla --- libavcodec/pngdec.c | 53 +++-- 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c index 1c910e6a5b..180806e5e1 100644

Re: [FFmpeg-devel] [PATCH v2] avcodec/aacdec_lpd: remove unused local variables

2024-06-27 Thread Leo Izen
On 6/27/24 1:27 PM, Lynne via ffmpeg-devel wrote: On 21/06/2024 23:20, Leo Izen wrote: int idx, and int first_tcx_flag are set but not used, so this commit removes their declarations and assignments. Sorry, missed this patch, LGTM. Applied as 539d2e989d7ce3556a549d59ee9c5125ae7d7b6b - Leo

Re: [FFmpeg-devel] [PATCH v2] avcodec/aacdec_lpd: remove unused local variables

2024-06-27 Thread Leo Izen
On 6/21/24 5:20 PM, Leo Izen wrote: int idx, and int first_tcx_flag are set but not used, so this commit removes their declarations and assignments. --- libavcodec/aac/aacdec_lpd.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libavcodec/aac/aacdec_lpd.c b

Re: [FFmpeg-devel] [PATCH 1/4] avcodec/jpegxl_parser: ensure input padding is zeroed

2024-06-27 Thread Leo Izen
that one is unnecessary, but this one is fine. I have no comment on the generic patches. - Leo Izen (Traneptora) ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email

[FFmpeg-devel] [PATCH v2] avcodec/aacdec_lpd: remove unused local variables

2024-06-21 Thread Leo Izen
int idx, and int first_tcx_flag are set but not used, so this commit removes their declarations and assignments. --- libavcodec/aac/aacdec_lpd.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libavcodec/aac/aacdec_lpd.c b/libavcodec/aac/aacdec_lpd.c index 796edd2ab5..91

[FFmpeg-devel] [PATCH] avcodec/aacdec_lpd: remove unused local variables

2024-06-08 Thread Leo Izen
int idx, and int first_tcx_flag are set but not used, so this commit removes their declarations and assignments. Signed-off-by: Leo Izen --- libavcodec/aac/aacdec_lpd.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libavcodec/aac/aacdec_lpd.c b/libavcodec/aac

[FFmpeg-devel] [PATCH v2 1/1] avcodec, avformat/ffjni: fix duplicate JNI symbols

2024-03-27 Thread Leo Izen
Use SHLIBOBJS and STLIBOBJS in the Makefiles for avcodec and avformat, and add a stub ffjni.c to libavformat, which allows the symbols to be duplicated for shared builds but not static builds. Signed-off-by: Leo Izen --- libavcodec/Makefile | 1 + libavformat/Makefile | 1 + libavformat

[FFmpeg-devel] [PATCH v2 0/1] avcodec, avformat/ffjni: fix duplicate JNI symbols

2024-03-27 Thread Leo Izen
Changes since v1: - Rebased onto master I was unable to credit the original reporter with a Reported-by because the name used Chinese characters (and it translated to 'admin'). Leo Izen (1): avcodec,avformat/ffjni: fix duplicate JNI symbols libavcodec/Makefile | 1 + libavforma

Re: [FFmpeg-devel] [PATCH v2] doc: Add libtoch backend option to dnn_processing

2024-03-26 Thread Leo Izen
commit message, you want libtorch, not libtoch. - Leo Izen (Traneptora) ___ 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

Re: [FFmpeg-devel] [PATCH] avformat/dvdvideodec: add explicit inttypes.h include

2024-03-24 Thread Leo Izen
ard in order to alphabetize it. - Leo Izen (Traneptora) ___ 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".

[FFmpeg-devel] [PATCH 2/2] avutil/film_grain_params: remove do loop in CHECK macro

2024-03-23 Thread Leo Izen
The continue statement will break out of the do/while loop, not the outer loop as intended. This is one (compound) statement anyway, so we can remove the do/while entirely. Signed-off-by: Leo Izen --- libavutil/film_grain_params.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff

  1   2   3   4   5   6   7   >