Re: [FFmpeg-devel] [PATCH v2 1/3] avcodec/jpegxl_parser: add JPEG XL parser

2023-06-21 Thread James Almer
On 6/21/2023 10:06 PM, Leo Izen wrote: On 6/21/23 20:59, James Almer wrote: On 6/21/2023 9:43 PM, Leo Izen wrote: diff --git a/libavcodec/jpegxl_parse.c b/libavcodec/jpegxl_parse.c new file mode 100644 index 00..be360acb08 --- /dev/null +++ b/libavcodec/jpegxl_parse.c @@ -0,0 +1,22 @@ +

Re: [FFmpeg-devel] [PATCH v2 1/3] avcodec/jpegxl_parser: add JPEG XL parser

2023-06-21 Thread Leo Izen
On 6/21/23 20:59, James Almer wrote: On 6/21/2023 9:43 PM, Leo Izen wrote: diff --git a/libavcodec/jpegxl_parse.c b/libavcodec/jpegxl_parse.c new file mode 100644 index 00..be360acb08 --- /dev/null +++ b/libavcodec/jpegxl_parse.c @@ -0,0 +1,22 @@ +/* + * JPEG XL Header Parser + * Copyrig

Re: [FFmpeg-devel] [PATCH v2 1/3] avcodec/jpegxl_parser: add JPEG XL parser

2023-06-21 Thread James Almer
On 6/21/2023 9:43 PM, Leo Izen wrote: diff --git a/libavcodec/jpegxl_parse.c b/libavcodec/jpegxl_parse.c new file mode 100644 index 00..be360acb08 --- /dev/null +++ b/libavcodec/jpegxl_parse.c @@ -0,0 +1,22 @@ +/* + * JPEG XL Header Parser + * Copyright (c) 2023 Leo Izen + * + * This file

[FFmpeg-devel] [PATCH v2 3/3] fate/jpegxl_anim: add demuxer fate test for jpegxl_anim

2023-06-21 Thread Leo Izen
Adds a fate test for the jpegxl_anim demuxer, that should allow testing for true positives and false positives for animated jpegxl files. Note that two of the test cases are not animated, in order to help sort out false positives. Signed-off-by: --- tests/Makefile | 1 +

[FFmpeg-devel] [PATCH v2 2/3] avformat/jpegxl: remove jpegxl_probe, instead call avcodec/jpegxl_parse

2023-06-21 Thread Leo Izen
This prevents code duplication in the source form by calling the parse code that was moved to avcodec last commit. The code will be duplicated in binary form for shared builds (it's not that large), but for source code it will only exist in one location now. Signed-off-by: --- libavformat/Makefi

[FFmpeg-devel] [PATCH v2 1/3] avcodec/jpegxl_parser: add JPEG XL parser

2023-06-21 Thread Leo Izen
Add a parser to libavcodec for AV_CODEC_ID_JPEGXL. It doesn't find the end of the stream in order to packetize the codec, but it does look at the headers to set preliminary information like dimensions and pixel format. Note that much of this code is duplicated from avformat/jpegxl_probe.c, but tha

[FFmpeg-devel] [PATCH v2 0/3] JXL Parser and FATE tests

2023-06-21 Thread Leo Izen
This test relies on FATE samples that haven't been uploaded yet. To test, unzip the following zipfile[1] in the FATE_SAMPLES directory, placing the test images in jxl/. [1]: https://buzo.us/y.zip sha256sum: 43a2eeb0dfdf471b47a9fdfb1653974fa156ceceb776891cc137569a8ebf0e75 signature: https://buzo.

[FFmpeg-devel] [PATCH] avcodec/parser: Check next against buffer index

2023-06-21 Thread Michael Niedermayer
Fixes: out of array access Fixes: crash-0d640731c7da52415670eb47a2af701cbe2e1a3b Found-by: Catena cyber Signed-off-by: Michael Niedermayer --- libavcodec/parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/parser.c b/libavcodec/parser.c index efc28b8918..db39

Re: [FFmpeg-devel] [PATCH] av1dec: handle dimension changes via get_format

2023-06-21 Thread James Almer
On 6/21/2023 6:42 PM, Dave Airlie wrote: On Thu, 22 Jun 2023 at 07:36, James Almer wrote: On 6/21/2023 6:15 PM, Dave Airlie wrote: On Thu, 22 Jun 2023 at 02:36, James Almer wrote: On 6/20/2023 8:36 PM, airl...@gmail.com wrote: From: Dave Airlie av1-1-b8-03-sizeup.ivf on vulkan causes

Re: [FFmpeg-devel] [PATCH] av1dec: handle dimension changes via get_format

2023-06-21 Thread Dave Airlie
On Thu, 22 Jun 2023 at 07:36, James Almer wrote: > > On 6/21/2023 6:15 PM, Dave Airlie wrote: > > On Thu, 22 Jun 2023 at 02:36, James Almer wrote: > >> > >> On 6/20/2023 8:36 PM, airl...@gmail.com wrote: > >>> From: Dave Airlie > >>> > >>> av1-1-b8-03-sizeup.ivf on vulkan causes gpu hangs as non

Re: [FFmpeg-devel] [PATCH] av1dec: handle dimension changes via get_format

2023-06-21 Thread James Almer
On 6/21/2023 6:15 PM, Dave Airlie wrote: On Thu, 22 Jun 2023 at 02:36, James Almer wrote: On 6/20/2023 8:36 PM, airl...@gmail.com wrote: From: Dave Airlie av1-1-b8-03-sizeup.ivf on vulkan causes gpu hangs as none of the images get resized when dimensions change, this detects the dim change

Re: [FFmpeg-devel] [PATCH] av1dec: handle dimension changes via get_format

2023-06-21 Thread Dave Airlie
On Thu, 22 Jun 2023 at 02:36, James Almer wrote: > > On 6/20/2023 8:36 PM, airl...@gmail.com wrote: > > From: Dave Airlie > > > > av1-1-b8-03-sizeup.ivf on vulkan causes gpu hangs as none of the > > images get resized when dimensions change, this detects the dim > > change and calls the get_forma

[FFmpeg-devel] [PATCH 3/3] avformat: use AV_PKT_MAX_PAYLOAD_SIZE

2023-06-21 Thread James Almer
Signed-off-by: James Almer --- libavformat/4xm.c | 2 +- libavformat/flac_picture.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/4xm.c b/libavformat/4xm.c index fdf6e4b84b..1a35299254 100644 --- a/libavformat/4xm.c +++ b/libavformat/4xm.c @@ -328,7 +

[FFmpeg-devel] [PATCH 2/3] avcodec: use AV_PKT_MAX_PAYLOAD_SIZE

2023-06-21 Thread James Almer
Signed-off-by: James Almer --- libavcodec/avpacket.c | 6 +++--- libavcodec/dvdsub_parser.c| 2 +- libavcodec/encode.c | 10 +- libavcodec/ffv1enc.c | 4 ++-- libavcodec/h264_mp4toannexb_bsf.c | 2 +- libavcodec/libopenjpegenc.c |

[FFmpeg-devel] [PATCH 1/3] avcodec/packet: add a define for the max buffer size a packet can hold

2023-06-21 Thread James Almer
Signed-off-by: James Almer --- TODO: Version bump and APIchanges entry. libavcodec/packet.h | 5 + 1 file changed, 5 insertions(+) diff --git a/libavcodec/packet.h b/libavcodec/packet.h index f28e7e7011..f7dd687c23 100644 --- a/libavcodec/packet.h +++ b/libavcodec/packet.h @@ -418,6 +418,11

[FFmpeg-devel] [PATCH 1/1] fate/jpegxl_anim: add demuxer fate test for jpegxl_anim

2023-06-21 Thread Leo Izen
Adds a fate test for the jpegxl_anim demuxer, that should allow testing for true positives and false positives for animated jpegxl files. Note that two of the test cases are not animated, in order to help sort out false positives. At the time of writing this patch, there's no internal decoder or p

[FFmpeg-devel] [PATCH 0/1] jpegxl_anim FATE test

2023-06-21 Thread Leo Izen
This test relies on FATE samples that haven't been uploaded yet. To test, unzip the following zipfile[1] in the FATE_SAMPLES directory, placing the test images in jxl/. [1]: https://buzo.us/y.zip sha256sum: 43a2eeb0dfdf471b47a9fdfb1653974fa156ceceb776891cc137569a8ebf0e75 signature: https://buzo.

[FFmpeg-devel] [PATCH 3/3] avcodec/evc_frame_merge: copy input packet props to output

2023-06-21 Thread James Almer
Signed-off-by: James Almer --- libavcodec/evc_frame_merge_bsf.c | 23 --- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/libavcodec/evc_frame_merge_bsf.c b/libavcodec/evc_frame_merge_bsf.c index 36ffec5736..8a09c12dbb 100644 --- a/libavcodec/evc_frame_merge_bsf

[FFmpeg-devel] [PATCH 2/3] avcodec/evc_frame_merge: reindent after previous commit

2023-06-21 Thread James Almer
Signed-off-by: James Almer --- libavcodec/evc_frame_merge_bsf.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/libavcodec/evc_frame_merge_bsf.c b/libavcodec/evc_frame_merge_bsf.c index 8af6095bf1..36ffec5736 100644 --- a/libavcodec/evc_frame_m

[FFmpeg-devel] [PATCH 1/3] avcodec/evc_frame_merge: properly support packets with more than one NALU

2023-06-21 Thread James Almer
Parse through all NALUs in a packet, pull new ones when a complete AU could not be assembled, or keep them around if an AU was assembled while data remained in them. Signed-off-by: James Almer --- libavcodec/evc_frame_merge_bsf.c | 110 +++ 1 file changed, 69 insertio

[FFmpeg-devel] [PATCH] vulkan_decode: simplify and make session parameter generation more robust

2023-06-21 Thread Lynne
This commit scraps a bool to signal to recreate the session parameters, but instead destroys them, forcing them to be recreated. As this can happen between start_frame and end_frame, do this at both places. >From eb6e92f599f8fa7689f16c3ac99f33eedf79b5a8 Mon Sep 17 00:00:00 2001 From: Lynne Date:

Re: [FFmpeg-devel] [PATCH] av1dec: handle dimension changes via get_format

2023-06-21 Thread James Almer
On 6/20/2023 8:36 PM, airl...@gmail.com wrote: From: Dave Airlie av1-1-b8-03-sizeup.ivf on vulkan causes gpu hangs as none of the images get resized when dimensions change, this detects the dim change and calls the get_format to reinit the context. --- libavcodec/av1dec.c | 12

Re: [FFmpeg-devel] [PATCH] av1dec: handle dimension changes via get_format

2023-06-21 Thread Leo Izen
On 6/20/23 19:36, airl...@gmail.com wrote: From: Dave Airlie av1-1-b8-03-sizeup.ivf on vulkan causes gpu hangs as none of the images get resized when dimensions change, this detects the dim change and calls the get_format to reinit the context. --- libavcodec/av1dec.c | 12 1 fi

Re: [FFmpeg-devel] [PATCH 1/9] avformat/evcdec: ensure there are enough bytes to seekback

2023-06-21 Thread James Almer
On 6/20/2023 11:40 AM, James Almer wrote: Signed-off-by: James Almer --- libavformat/evcdec.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libavformat/evcdec.c b/libavformat/evcdec.c index 890babd3cb..9c4969e78f 100644 --- a/libavformat/evcdec.c +++ b/libavformat/

[FFmpeg-devel] [PATCH 2/2] lavc/libx264: add mb_info option

2023-06-21 Thread Carotti, Elias
Hi all, please find the second part of the patch set. Best, Elias NICE SRL, viale Monte Grappa 3/5, 20124 Milano, Italia, Registro delle Imprese di Milano Monza Brianza Lodi REA n. 2096882, Capitale Sociale: 10.329,14 EUR i.v., Cod. Fisc. e P.IVA 01133050052, Societa con Socio Unico From 2a

Re: [FFmpeg-devel] [PATCH] Optimization: support for libx264's mb_info

2023-06-21 Thread Carotti, Elias
On Sun, 2023-06-18 at 12:18 +0200, Stefano Sabatini wrote: > CAUTION: This email originated from outside of the organization. Do > not click links or open attachments unless you can confirm the sender > and know the content is safe. > > > > On date Monday 2023-06-12 17:28:10 +, Carotti, Elia

Re: [FFmpeg-devel] [PATCH 6/6] doc/developer: Require new modules to include tests

2023-06-21 Thread Anton Khirnov
Quoting Paul B Mahol (2023-06-19 18:09:06) > NAK You like throwing this letter sequence around, but without some actual arguments it's meaningless and will be ignored. -- Anton Khirnov ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpe

[FFmpeg-devel] [PATCH] lavc/videotoolboxenc: fix enabling low-latency encode

2023-06-21 Thread xufuji456
Use CFDictionarySetValue to enable low-latency encoding mode. Since the key is a type of "EncoderSpecification", instead of "CompressionProperty". Signed-off-by: xufuji456 <839789...@qq.com> --- libavcodec/videotoolboxenc.c | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-

Re: [FFmpeg-devel] [PATCH] libavformat/mpegts.c: fix hardcoded 5-bytes skip for metadata streams.

2023-06-21 Thread Anton Khirnov
Quoting to...@rastageeks.org (2023-06-20 07:09:33) > From: Romain Beauxis > > Before the introduction of AV_CODEC_ID_TIMED_ID3 for timed_id3 metadata > streams > in mpegts (commit 4a4437c0fbc8f7afe0c533070395a42e56b4ee75), > AV_CODEC_ID_SMPTE_KLV > was the only existing codec for metadata. > >

Re: [FFmpeg-devel] [PATCH] tests/fate/ffmpeg: silence the audio for fate-ffmpeg-streamloop-transcode-av

2023-06-21 Thread Anton Khirnov
pushed with precision=fixed -- Anton Khirnov ___ 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".