[FFmpeg-devel] [PATCH] vulkan_decode: use coded_width/height instead of the non-coded width and h

2023-10-23 Thread Lynne
Fixes several samples. There may be issues with cropping, but so far, I have not found any in my samples set. Patch attached. >From b928053158ec5f63d3c07a9daa9b802cb9229858 Mon Sep 17 00:00:00 2001 From: Lynne Date: Tue, 24 Oct 2023 06:33:07 +0200 Subject: [PATCH] vulkan_decode: use

Re: [FFmpeg-devel] hwcontext_vulkan: improve queue family init code

2023-10-23 Thread Lynne
Oct 22, 2023, 03:56 by d...@lynne.ee: > When users zero-init'd the struct, or left it as-is, the encode > queue family matched the graphics queue family, which led it to be > incorrectly logged as being used for encode. > > This just improves the logging so this isn't printed anymore. > > Patch

Re: [FFmpeg-devel] [REFUND-REQUEST]] VDD23 Travel

2023-10-23 Thread Steven Liu
Stefano Sabatini 于2023年10月10日周二 14:09写道: Hi Stefano, > > On date Sunday 2023-10-08 10:09:03 +0800, Steven Liu wrote: > > Nice to see you all after so long. > > My request is for my flights, 9750,00 CNY Beijing from/to Abu Dhabi, > > Abu Dhabi from/to Dublin > > Approved on my side, pending

Re: [FFmpeg-devel] [PATCH v2 00/13] YUVJ removal

2023-10-23 Thread Vittorio Giovara
On Sat, Oct 21, 2023 at 4:20 PM Michael Niedermayer wrote: > On Fri, Oct 20, 2023 at 07:13:00PM -0400, Ronald S. Bultje wrote: > > Hi, > > > > On Fri, Oct 20, 2023 at 12:14 PM Vittorio Giovara < > > vittorio.giov...@gmail.com> wrote: > > > > > tbh while it's great that this functionality exists

[FFmpeg-devel] [PATCH v2 3/3] avutil/channel_layout: add a 7.1.4 channel layout

2023-10-23 Thread James Almer
From: Will Wolcott Mapping to ITU-R BS.2051-3 "Sound System J" and ITU-R BS.1196-8 "Channel Configuration 19". Signed-off-by: Will Wolcott Signed-off-by: James Almer --- doc/utils.texi| 2 ++ libavutil/channel_layout.c| 1 + libavutil/channel_layout.h| 2 ++

[FFmpeg-devel] [PATCH v2 2/3] avutil/channel_layout: add a 5.1.4 channel layout

2023-10-23 Thread James Almer
Mapping to ITU-R BS.2051-3 "Sound System D" and ITU-R BS.1196-8 "Channel Configuration 16". Signed-off-by: James Almer --- doc/utils.texi| 2 ++ libavutil/channel_layout.c| 1 + libavutil/channel_layout.h| 2 ++ tests/ref/fate/channel_layout | 1 + 4 files changed, 6

[FFmpeg-devel] [PATCH v2 1/3] avutil/channel_layout: rename 7.1(top) channel layout to 5.1.2

2023-10-23 Thread James Almer
This layout maps to ITU-R BS.2051-3 "Sound System C" and ITU-R BS.1196-8 "Channel Configuration 14", and it being the first layout with top layer channels, it's best to use a different scheme to properly convey the presence and amount of said channels. The new name will also be a better fit for

Re: [FFmpeg-devel] [PATCH 1/3] avutil/channel_layout: rename 7.1(top) channel layout to 5.1.2

2023-10-23 Thread Hendrik Leppkes
On Tue, Oct 24, 2023 at 1:57 AM James Almer wrote: > > On 10/23/2023 8:49 PM, Hendrik Leppkes wrote: > > On Tue, Oct 24, 2023 at 1:46 AM Hendrik Leppkes wrote: > >> > >> On Tue, Oct 24, 2023 at 1:24 AM James Almer wrote: > >>> > >>> This layout maps to ITU-R BS.2051-3 "Sound System C" and ITU-R

Re: [FFmpeg-devel] [PATCH 1/3] avutil/channel_layout: rename 7.1(top) channel layout to 5.1.2

2023-10-23 Thread James Almer
On 10/23/2023 8:49 PM, Hendrik Leppkes wrote: On Tue, Oct 24, 2023 at 1:46 AM Hendrik Leppkes wrote: On Tue, Oct 24, 2023 at 1:24 AM James Almer wrote: This layout maps to ITU-R BS.2051-3 "Sound System C" and ITU-R BS.1196-8 "Channel Configuration 14", and it being the first layout with

Re: [FFmpeg-devel] [PATCH 1/3] avutil/channel_layout: rename 7.1(top) channel layout to 5.1.2

2023-10-23 Thread Hendrik Leppkes
On Tue, Oct 24, 2023 at 1:46 AM Hendrik Leppkes wrote: > > On Tue, Oct 24, 2023 at 1:24 AM James Almer wrote: > > > > This layout maps to ITU-R BS.2051-3 "Sound System C" and ITU-R BS.1196-8 > > "Channel > > Configuration 14", and it being the first layout with top layer channels, > > it's > >

Re: [FFmpeg-devel] [PATCH 1/3] avutil/channel_layout: rename 7.1(top) channel layout to 5.1.2

2023-10-23 Thread Hendrik Leppkes
On Tue, Oct 24, 2023 at 1:24 AM James Almer wrote: > > This layout maps to ITU-R BS.2051-3 "Sound System C" and ITU-R BS.1196-8 > "Channel > Configuration 14", and it being the first layout with top layer channels, it's > best to use a different scheme to properly convey the presence and amount

[FFmpeg-devel] [PATCH 3/3] avutil/channel_layout: add a 7.1.4 channel layout

2023-10-23 Thread James Almer
From: Will Wolcott Mapping to ITU-R BS.2051-3 "Sound System J" and ITU-R BS.1196-8 "Channel Configuration 19". Signed-off-by: Will Wolcott Signed-off-by: James Almer --- doc/utils.texi| 2 ++ libavutil/channel_layout.c| 1 + libavutil/channel_layout.h| 2 ++

[FFmpeg-devel] [PATCH 2/3] avutil/channel_layout: add a 5.1.4 channel layout

2023-10-23 Thread James Almer
Mapping to ITU-R BS.2051-3 "Sound System D" and ITU-R BS.1196-8 "Channel Configuration 16". Signed-off-by: James Almer --- doc/utils.texi| 2 ++ libavutil/channel_layout.c| 1 + libavutil/channel_layout.h| 2 ++ tests/ref/fate/channel_layout | 1 + 4 files changed, 6

[FFmpeg-devel] [PATCH 1/3] avutil/channel_layout: rename 7.1(top) channel layout to 5.1.2

2023-10-23 Thread James Almer
This layout maps to ITU-R BS.2051-3 "Sound System C" and ITU-R BS.1196-8 "Channel Configuration 14", and it being the first layout with top layer channels, it's best to use a different scheme to properly convey the presence and amount of said channels. The new name will also be a better fit for

Re: [FFmpeg-devel] [PATCH 2/6] avcodec/cbs: Do not assert on traces beyond 255 bits

2023-10-23 Thread Mark Thompson
On 23/10/2023 21:53, Michael Niedermayer wrote: On Sun, Oct 22, 2023 at 03:34:20PM +0100, Mark Thompson wrote: On 22/10/2023 01:35, Michael Niedermayer wrote: Fixes: Assertion length < 256 failed at libavcodec/cbs.c:517 Fixes:

Re: [FFmpeg-devel] [REFUND-REQUEST] VDD23 Travel

2023-10-23 Thread Stefano Sabatini
On date Monday 2023-10-23 22:42:02 +0200, Michael Niedermayer wrote: > On Sat, Oct 21, 2023 at 02:10:13PM +0200, Anton Khirnov wrote: > > Hi, > > requesting refund of travel costs for VDD23: > > * PRG -> DUB: 2789 CZK ≈ 116 € > > * DUB -> PRG: 112.44 € > > * bus DUB <-> Dublin: 12 € > > total:

Re: [FFmpeg-devel] [REFUND-REQUEST] Travel & Accomodation for LDP 23

2023-10-23 Thread Stefano Sabatini
On date Saturday 2023-10-21 11:39:02 +0200, ffmpeg-devel Mailing List wrote: > Hi, > > I went to Prag for the LinuxDays Prague 23 [1] by Bus and stayed at the > university Dorm/Hotel. > > Bus:54,98 EUR > Hotel: 154,08 EUR (converted from CZK by VISA) > = > Total: 209,06 EUR

Re: [FFmpeg-devel] [PATCH 2/6] avcodec/cbs: Do not assert on traces beyond 255 bits

2023-10-23 Thread Michael Niedermayer
On Sun, Oct 22, 2023 at 03:34:20PM +0100, Mark Thompson wrote: > On 22/10/2023 01:35, Michael Niedermayer wrote: > > Fixes: Assertion length < 256 failed at libavcodec/cbs.c:517 > > Fixes: > > 62673/clusterfuzz-testcase-minimized-ffmpeg_BSF_TRACE_HEADERS_fuzzer-6490971837431808 > > > > Found-by:

Re: [FFmpeg-devel] [PATCH 5/6] avutil/tx_template: fix integer ovberflwo in fft3()

2023-10-23 Thread Michael Niedermayer
On Sun, Oct 22, 2023 at 03:55:47AM +0200, Lynne wrote: > Oct 22, 2023, 02:36 by mich...@niedermayer.cc: > > > Fixes: signed integer overflow: -1028966111 + -1314089526 cannot be > > represented in type 'int' > > Fixes: > >

Re: [FFmpeg-devel] [REFUND-REQUEST] VDD23 Travel

2023-10-23 Thread Michael Niedermayer
On Sat, Oct 21, 2023 at 02:10:13PM +0200, Anton Khirnov wrote: > Hi, > requesting refund of travel costs for VDD23: > * PRG -> DUB: 2789 CZK ≈ 116 € > * DUB -> PRG: 112.44 € > * bus DUB <-> Dublin: 12 € > total: ~240 € LGTM thx [...] -- Michael GnuPG fingerprint:

Re: [FFmpeg-devel] [REFUND-REQUEST] Travel & Accomodation for LDP 23

2023-10-23 Thread Michael Niedermayer
On Sat, Oct 21, 2023 at 11:39:02AM +0200, Thilo Borgmann via ffmpeg-devel wrote: > Hi, > > I went to Prag for the LinuxDays Prague 23 [1] by Bus and stayed at the > university Dorm/Hotel. > > Bus:54,98 EUR > Hotel: 154,08 EUR (converted from CZK by VISA) > = > Total: 209,06

[FFmpeg-devel] [PATCH 2/2] avutil/mem: add av_dynarray2_add_nofree

2023-10-23 Thread James Almer
Signed-off-by: James Almer --- libavutil/mem.c | 17 + libavutil/mem.h | 32 +--- 2 files changed, 46 insertions(+), 3 deletions(-) diff --git a/libavutil/mem.c b/libavutil/mem.c index 36b8940a0c..bd37710968 100644 --- a/libavutil/mem.c +++

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/rv60: RealVideo 6.0 decoder

2023-10-23 Thread Peter Ross
On Mon, Oct 23, 2023 at 12:14:52PM +0200, Anton Khirnov wrote: > Quoting Peter Ross (2023-10-22 01:31:32) > > On Wed, Oct 18, 2023 at 04:42:01PM +0200, Anton Khirnov wrote: > > > Quoting Peter Ross (2023-10-18 10:03:54) > > [..] > > > I think you can simplify this into: > > > if

Re: [FFmpeg-devel] [PATCH 1/9] avcodec/vlc: merge lost 16bit end of array check

2023-10-23 Thread Michael Niedermayer
On Mon, Oct 23, 2023 at 01:02:16AM +0200, Paul B Mahol wrote: [...] > Make sure you do not break >8 bit support in utvideo and magicyuv decoders. Make sure the fate tests cover these cases thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB The bravest are

Re: [FFmpeg-devel] [PATCH 5/9] avcodec/vlc: Pass VLC_MULTI_ELEM directly not by pointer

2023-10-23 Thread Michael Niedermayer
On Mon, Oct 23, 2023 at 02:10:35AM -0400, Leo Izen wrote: > On 10/22/23 17:51, Michael Niedermayer wrote: > > This makes the code more testable as uninitialized fields are 0 > > and not random values from the last call > > > > Signed-off-by: Michael Niedermayer > > --- > > libavcodec/vlc.c |

Re: [FFmpeg-devel] [PATCH] avcodec/cbs_h266: fix SPS VUI extension data leak

2023-10-23 Thread Andreas Rheinhardt
Nuo Mi: > On Mon, Oct 23, 2023 at 7:46 PM Andreas Rheinhardt < > andreas.rheinha...@outlook.com> wrote: > >> Nuo Mi: >>> On Sun, Oct 22, 2023 at 8:58 PM Andreas Rheinhardt < >>> andreas.rheinha...@outlook.com> wrote: >>> Nuo Mi: > Fixes: VUI extension leak > Fixes: >>

[FFmpeg-devel] [PATCH] avcodec/cbs_h2645: Fix leak of SPS VUI extension data

2023-10-23 Thread Andreas Rheinhardt
Fixes: VUI extension leak Fixes: 63004/clusterfuzz-testcase-minimized-ffmpeg_BSF_VVC_METADATA_fuzzer-4928832253329408 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Andreas Rheinhardt --- libavcodec/cbs_h2645.c | 12

Re: [FFmpeg-devel] [PATCH] avcodec/cbs_h266: fix SPS VUI extension data leak

2023-10-23 Thread Nuo Mi
On Mon, Oct 23, 2023 at 7:46 PM Andreas Rheinhardt < andreas.rheinha...@outlook.com> wrote: > Nuo Mi: > > On Sun, Oct 22, 2023 at 8:58 PM Andreas Rheinhardt < > > andreas.rheinha...@outlook.com> wrote: > > > >> Nuo Mi: > >>> Fixes: VUI extension leak > >>> Fixes: > >> >

[FFmpeg-devel] [PATCH v2] avformat: introduce AVStreamGroup

2023-10-23 Thread James Almer
Signed-off-by: James Almer --- Changes since the first version: - The union will now hold pointers to Group type specific structs - The array of elements in the group is now of pointers to the streams rather than index values. - Simplified the helpers - Changed field type for idx and id -

[FFmpeg-devel] [PATCH avcodec/amfenc: 10-bit support, v5, 3/3] avcodec/amfenc: add 10 bit encoding in av1_amf

2023-10-23 Thread Evgeny Pavlov
v2: refactored after review Signed-off-by: Evgeny Pavlov Co-authored-by: Dmitrii Ovchinnikov --- libavcodec/amfenc.c | 2 ++ libavcodec/amfenc_av1.c | 22 ++ 2 files changed, 24 insertions(+) diff --git a/libavcodec/amfenc.c b/libavcodec/amfenc.c index

[FFmpeg-devel] [PATCH avcodec/amfenc: 10-bit support, v5, 2/3] avcodec/amfenc: HDR metadata.

2023-10-23 Thread Evgeny Pavlov
From: nyanmisaka v2: fixes for indentation --- libavcodec/amfenc.c | 83 + 1 file changed, 83 insertions(+) diff --git a/libavcodec/amfenc.c b/libavcodec/amfenc.c index 0bd15dd812..068bb53002 100644 --- a/libavcodec/amfenc.c +++ b/libavcodec/amfenc.c

[FFmpeg-devel] [PATCH avcodec/amfenc: 10-bit support, v5, 1/3] avcodec/amfenc: Fixes the color information in the output.

2023-10-23 Thread Evgeny Pavlov
From: Michael Fabian 'Xaymar' Dirks added 10 bit support for amf hevc. before: command - ffmpeg.exe -hide_banner -y -hwaccel d3d11va -hwaccel_output_format d3d11 -i test_10bit_file.mkv -an -c:v h264_amf res.dx11_hw_h264.mkv output - Format of input frames context (p010le) is not supported by

Re: [FFmpeg-devel] [PATCH] libavcodec/amfenc: Add more pixel formats support

2023-10-23 Thread Evgeny Pavlov
On Sun, Oct 22, 2023 at 5:01 PM Mark Thompson wrote: > On 20/10/2023 09:13, Evgeny Pavlov wrote: > > On Tue, Jul 18, 2023 at 10:32 AM Evgeny Pavlov > wrote: > > > >> This commit adds BGRA, RGBA and ARGB pixel formats for AMF encoders > >> > >> Signed-off-by: Evgeny Pavlov > >> --- > >>

Re: [FFmpeg-devel] [PATCH] avcodec/cbs_h266: fix SPS VUI extension data leak

2023-10-23 Thread Andreas Rheinhardt
Nuo Mi: > On Sun, Oct 22, 2023 at 8:58 PM Andreas Rheinhardt < > andreas.rheinha...@outlook.com> wrote: > >> Nuo Mi: >>> Fixes: VUI extension leak >>> Fixes: >> 63004/clusterfuzz-testcase-minimized-ffmpeg_BSF_VVC_METADATA_fuzzer-4928832253329408 >>> >>> Found-by: continuous fuzzing process >>

Re: [FFmpeg-devel] [PATCH] avcodec/cbs_h266: fix SPS VUI extension data leak

2023-10-23 Thread Nuo Mi
On Sun, Oct 22, 2023 at 8:58 PM Andreas Rheinhardt < andreas.rheinha...@outlook.com> wrote: > Nuo Mi: > > Fixes: VUI extension leak > > Fixes: > 63004/clusterfuzz-testcase-minimized-ffmpeg_BSF_VVC_METADATA_fuzzer-4928832253329408 > > > > Found-by: continuous fuzzing process >

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/rv60: RealVideo 6.0 decoder

2023-10-23 Thread Anton Khirnov
Quoting Peter Ross (2023-10-22 01:31:32) > On Wed, Oct 18, 2023 at 04:42:01PM +0200, Anton Khirnov wrote: > > Quoting Peter Ross (2023-10-18 10:03:54) > [..] > > I think you can simplify this into: > > if (s->last_frame[NEXT_PIC]->data[0]) { > > av_frame_move_ref(frame,

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/rv60: RealVideo 6.0 decoder

2023-10-23 Thread Peter Ross
On Sun, Oct 22, 2023 at 03:37:34PM +0200, Andreas Rheinhardt wrote: > Peter Ross: > > --- > > diff --git a/libavformat/matroska.c b/libavformat/matroska.c > > index 5878594e68..1674806f29 100644 > > --- a/libavformat/matroska.c > > +++ b/libavformat/matroska.c > > @@ -95,6 +95,7 @@ const CodecTags

Re: [FFmpeg-devel] [PATCH] fftools: Check HAVE_GETSTDHANDLE before using GetStdHandle

2023-10-23 Thread Anton Khirnov
Quoting Martin Storsjö (2023-10-22 13:08:44) > GetStdHandle is unavailable outside of the desktop API subset. > > This didn't use to be a problem with earlier WinSDKs, as kbhit also > used to be available only for desktop apps, and this whole section is > wrapped in #if HAVE_KBHIT. With newer

Re: [FFmpeg-devel] [PATCH] libavcodec/aarch64/hevc: Require consistent use of trailing semicolon

2023-10-23 Thread Martin Storsjö
On Tue, 26 Sep 2023, Martin Storsjö wrote: --- Some patches had inconsistent semicolons when invoking these macros. By omitting the trailing semicolon in the macro, it requires the callers to use it consistently. --- libavcodec/aarch64/hevcdsp_init_aarch64.c | 6 +++--- 1 file changed, 3

Re: [FFmpeg-devel] [PATCH] lavc/webp: Remove frame threading

2023-10-23 Thread Thilo Borgmann via ffmpeg-devel
Am 22.10.23 um 16:30 schrieb Andreas Rheinhardt: Thilo Borgmann via ffmpeg-devel: Revealed by the patch to support animated webp, the current frame threading implementation contains a data race. No, it doesn't: The current implementation does not call ff_thread_finish_setup() in vp8.c for

Re: [FFmpeg-devel] [PATCH 5/9] avcodec/vlc: Pass VLC_MULTI_ELEM directly not by pointer

2023-10-23 Thread Leo Izen
On 10/22/23 17:51, Michael Niedermayer wrote: This makes the code more testable as uninitialized fields are 0 and not random values from the last call Signed-off-by: Michael Niedermayer --- libavcodec/vlc.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git