Re: [FFmpeg-devel] [PATCH 3/3] avcodec/libx264: Fix leak in case of allocation failure

2023-03-13 Thread Anton Khirnov
Patches 3-6 LGTM -- 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".

Re: [FFmpeg-devel] [PATCH 2/3] avfilter/vf_ssim360: Remove dead code

2023-03-13 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2023-03-12 22:53:44) > Fixes Coverity issue #1520669. > > Signed-off-by: Andreas Rheinhardt > --- > libavfilter/vf_ssim360.c | 4 > 1 file changed, 4 deletions(-) Looks ok. -- Anton Khirnov ___ ffmpeg-devel mailing

Re: [FFmpeg-devel] [PATCH 1/3] avfilter/vf_ssim360: Use correct type in sizeof

2023-03-13 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2023-03-12 22:52:49) > SSIM360Context.ssim360_hist is an array of four pointers to double; > so sizeof(*ssim360_hist[0]) (=sizeof(double)) is the correct size > to use to calculate the amount of memory to allocate, not > sizeof(*ssim360_hist) (which is sizeof(double*)).

Re: [FFmpeg-devel] [PATCH v2] avformat/matroska: Write WebVTT subtitles according to MKV specs

2023-03-13 Thread Andreas Rheinhardt
Gwyneth Morgan: > When writing WebMs, FFmpeg muxes WebVTT subtitles with the D_WEBVTT/* > codec tags from the WebM specs [1]. However, it does the same when > muxing MKV files, and the Matroska specifications instead use > S_TEXT/WEBVTT tags for WebVTT subtitles [2], which FFmpeg currently >

[FFmpeg-devel] [PATCH v2] avformat/matroska: Write WebVTT subtitles according to MKV specs

2023-03-13 Thread Gwyneth Morgan
When writing WebMs, FFmpeg muxes WebVTT subtitles with the D_WEBVTT/* codec tags from the WebM specs [1]. However, it does the same when muxing MKV files, and the Matroska specifications instead use S_TEXT/WEBVTT tags for WebVTT subtitles [2], which FFmpeg currently doesn't understand. Support

[FFmpeg-devel] [PATCH] avformat/assenc: Fix potential NULL + 1

2023-03-13 Thread Andreas Rheinhardt
Incrementing a NULL pointer is undefined behaviour, yet this is what would happen in case trailer were NULL before the check. Signed-off-by: Andreas Rheinhardt --- libavformat/assenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/assenc.c

[FFmpeg-devel] [PATCH] avcodec/decode: Reset MMX state for receive_frame decoders, too

2023-03-13 Thread Andreas Rheinhardt
FFmpeg's assembly code currently does not abide by the plattform-specific ABIs wrt its handling of the X86 MMX flag: Resetting the MMX state is deferred to avoid doing it multiple times instead of ensuring that the CPU is in floating point state upon return from any function. Furthermore,

Re: [FFmpeg-devel] [PATCH v6 1/2] avcodec/avutil: move dynamic HDR10+ metadata parsing to libavutil

2023-03-13 Thread Andreas Rheinhardt
Raphaël Zumer: > Signed-off-by: Raphaël Zumer > --- > libavcodec/Makefile | 6 +- > libavcodec/av1dec.c | 6 +- > libavcodec/dynamic_hdr10_plus.c | 198 --- > libavcodec/dynamic_hdr10_plus.h | 35 -- > libavcodec/h2645_sei.c

Re: [FFmpeg-devel] [PATCH] decklink: Add support for compressed AC-3 output over SDI

2023-03-13 Thread Marton Balint
On Thu, 9 Mar 2023, Devin Heitmueller wrote: Extend the decklink output to include support for compressed AC-3, encapsulated using the SMPTE ST 377:2015 standard. This functionality can be exercised by using the "copy" codec when the input audio stream is AC-3. For example: ./ffmpeg -i

[FFmpeg-devel] [PATCH v6 2/2] avutil: add HDR10+ dynamic metadata serialization function

2023-03-13 Thread Raphaël Zumer
Co-authored-by: Mohammad Izadi Signed-off-by: Raphaël Zumer --- doc/APIchanges | 5 ++ libavutil/hdr_dynamic_metadata.c | 148 +++ libavutil/hdr_dynamic_metadata.h | 13 +++ libavutil/version.h | 2 +- 4 files changed, 167

[FFmpeg-devel] [PATCH v6 1/2] avcodec/avutil: move dynamic HDR10+ metadata parsing to libavutil

2023-03-13 Thread Raphaël Zumer
Signed-off-by: Raphaël Zumer --- libavcodec/Makefile | 6 +- libavcodec/av1dec.c | 6 +- libavcodec/dynamic_hdr10_plus.c | 198 --- libavcodec/dynamic_hdr10_plus.h | 35 -- libavcodec/h2645_sei.c | 6 +-

Re: [FFmpeg-devel] [PATCH v5 2/2] avutil: add HDR10+ dynamic metadata serialization function

2023-03-13 Thread Raphaël Zumer
On 3/13/23 19:25, James Almer wrote: >>> You are allocating without any padding. This implies that one could not >>> use this buffer with our GetBit-API or in other places where one needed >>> a padded buffer. >> Is there any comparable code that does that? I feel like padding a buffer >> should

Re: [FFmpeg-devel] [PATCH v5 2/2] avutil: add HDR10+ dynamic metadata serialization function

2023-03-13 Thread James Almer
On 3/13/2023 8:19 PM, Raphaël Zumer wrote: On 3/13/23 18:35, Andreas Rheinhardt wrote: size being mandatory is different from similar APIs. There is even a usecase without size: If you simply feed this to something that expects the data to be serialized and trust the data to be complete, you

Re: [FFmpeg-devel] [PATCH v5 2/2] avutil: add HDR10+ dynamic metadata serialization function

2023-03-13 Thread Raphaël Zumer
On 3/13/23 18:35, Andreas Rheinhardt wrote: > size being mandatory is different from similar APIs. There is even a > usecase without size: If you simply feed this to something that expects > the data to be serialized and trust the data to be complete, you don't > need the size. OK, I'll amend

Re: [FFmpeg-devel] [PATCH v5 1/2] avcodec/avutil: move dynamic HDR10+ metadata parsing to libavutil

2023-03-13 Thread Raphaël Zumer
On 3/13/23 18:19, James Almer wrote: > On 3/13/2023 6:38 PM, Raphaël Zumer wrote: >> diff --git a/libavutil/hdr_dynamic_metadata.c >> b/libavutil/hdr_dynamic_metadata.c >> index 0fa1ee82de..98f399b032 100644 >> --- a/libavutil/hdr_dynamic_metadata.c >> +++ b/libavutil/hdr_dynamic_metadata.c >> @@

Re: [FFmpeg-devel] [PATCH 1/3] avfilter/vf_ssim360: Use correct type in sizeof

2023-03-13 Thread Jan Ekström
On Sun, Mar 12, 2023 at 11:52 PM Andreas Rheinhardt wrote: > > SSIM360Context.ssim360_hist is an array of four pointers to double; > so sizeof(*ssim360_hist[0]) (=sizeof(double)) is the correct size > to use to calculate the amount of memory to allocate, not > sizeof(*ssim360_hist) (which is

Re: [FFmpeg-devel] avformat/mxfenc: fix stored/sampled/displayed width/height

2023-03-13 Thread Pierre-Anthony Lemieux
On Mon, Mar 13, 2023 at 3:30 PM Marton Balint wrote: > > > > On Fri, 10 Mar 2023, Marton Balint wrote: > > > > > > > On Mon, 6 Mar 2023, Nicolas Gaullier wrote: > > > > The width is one thing; for whatever reason, there is a divergence > > between DV100 on one hand and AVCI/XDCAMHD35 on

Re: [FFmpeg-devel] [PATCH v5 2/2] avutil: add HDR10+ dynamic metadata serialization function

2023-03-13 Thread Andreas Rheinhardt
Raphaël Zumer: > Co-authored-by: Mohammad Izadi > Signed-off-by: Raphaël Zumer > --- > doc/APIchanges | 5 ++ > libavutil/hdr_dynamic_metadata.c | 145 +++ > libavutil/hdr_dynamic_metadata.h | 13 +++ > libavutil/version.h | 2 +- >

Re: [FFmpeg-devel] [PATCH 2/2] avutil: add HDR10+ dynamic metadata serialization function

2023-03-13 Thread James Almer
On 3/13/2023 7:25 PM, Andreas Rheinhardt wrote: James Almer: On 3/9/2023 11:18 AM, Raphaël Zumer wrote: Hi, While I omitted adding v2/v3 here, I believe all comments on this set of patches have been addressed so far, unless anyone strongly disagrees with the rationale for moving dynamic HDR

Re: [FFmpeg-devel] avformat/mxfenc: fix stored/sampled/displayed width/height

2023-03-13 Thread Marton Balint
On Fri, 10 Mar 2023, Marton Balint wrote: On Mon, 6 Mar 2023, Nicolas Gaullier wrote: The width is one thing; for whatever reason, there is a divergence between DV100 on one hand and AVCI/XDCAMHD35 on the other. In my understanding, in current practices, DV obey s337 (stored width

Re: [FFmpeg-devel] [PATCH 2/2] avutil: add HDR10+ dynamic metadata serialization function

2023-03-13 Thread Andreas Rheinhardt
James Almer: > On 3/9/2023 11:18 AM, Raphaël Zumer wrote: >> Hi, >> >> While I omitted adding v2/v3 here, I believe all comments on this set >> of patches have been addressed so far, unless anyone strongly >> disagrees with the rationale for moving dynamic HDR parsing and >> serialization to

Re: [FFmpeg-devel] [PATCH v5 2/2] avutil: add HDR10+ dynamic metadata serialization function

2023-03-13 Thread James Almer
On 3/13/2023 6:39 PM, Raphaël Zumer wrote: Co-authored-by: Mohammad Izadi Signed-off-by: Raphaël Zumer --- doc/APIchanges | 5 ++ libavutil/hdr_dynamic_metadata.c | 145 +++ libavutil/hdr_dynamic_metadata.h | 13 +++ libavutil/version.h

Re: [FFmpeg-devel] [PATCH v5 1/2] avcodec/avutil: move dynamic HDR10+ metadata parsing to libavutil

2023-03-13 Thread James Almer
On 3/13/2023 6:38 PM, Raphaël Zumer wrote: diff --git a/libavutil/hdr_dynamic_metadata.c b/libavutil/hdr_dynamic_metadata.c index 0fa1ee82de..98f399b032 100644 --- a/libavutil/hdr_dynamic_metadata.c +++ b/libavutil/hdr_dynamic_metadata.c @@ -20,6 +20,16 @@ #include "hdr_dynamic_metadata.h"

Re: [FFmpeg-devel] [PATCH] avcodec/libsvtav1: use larger of bit rate and max rate for buffer size

2023-03-13 Thread Jan Ekström
On Mon, Mar 13, 2023 at 11:57 AM Jan Ekström wrote: > > On Thu, Mar 9, 2023 at 8:57 PM Jan Ekström wrote: > > > > Generally if maxrate is set, the calculation should be maxrate over > > bufsize. This additionally enables CRF + maxrate & bufsize usage. > > > > In order to keep negative values

[FFmpeg-devel] [PATCH v5 2/2] avutil: add HDR10+ dynamic metadata serialization function

2023-03-13 Thread Raphaël Zumer
Co-authored-by: Mohammad Izadi Signed-off-by: Raphaël Zumer --- doc/APIchanges | 5 ++ libavutil/hdr_dynamic_metadata.c | 145 +++ libavutil/hdr_dynamic_metadata.h | 13 +++ libavutil/version.h | 2 +- 4 files changed, 164

[FFmpeg-devel] [PATCH v5 1/2] avcodec/avutil: move dynamic HDR10+ metadata parsing to libavutil

2023-03-13 Thread Raphaël Zumer
Signed-off-by: Raphaël Zumer --- libavcodec/Makefile | 6 +- libavcodec/av1dec.c | 6 +- libavcodec/dynamic_hdr10_plus.c | 198 --- libavcodec/dynamic_hdr10_plus.h | 35 -- libavcodec/h2645_sei.c | 6 +-

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/libxavs: Use frame_num instead of frame_number

2023-03-13 Thread Marton Balint
On Sun, 12 Mar 2023, Andreas Rheinhardt wrote: Forgotten in 6b6f7db81932f94876ff4bcfd2da0582b8ab897e. This and the next similar patch in the series LGTM. Thanks, Marton Signed-off-by: Andreas Rheinhardt --- libavcodec/libxavs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [FFmpeg-devel] [PATCH v4 2/2] avutil: add HDR10+ dynamic metadata serialization function

2023-03-13 Thread Raphaël Zumer
On 3/13/23 16:47, James Almer wrote: > On 3/13/2023 5:23 PM, Raphaël Zumer wrote: >> Signed-off-by: Raphaël Zumer >> --- >> doc/APIchanges | 5 ++ >> libavutil/hdr_dynamic_metadata.c | 146 +++ >> libavutil/hdr_dynamic_metadata.h | 12 +++ >>

Re: [FFmpeg-devel] [PATCH v4 2/2] avutil: add HDR10+ dynamic metadata serialization function

2023-03-13 Thread James Almer
On 3/13/2023 5:23 PM, Raphaël Zumer wrote: Signed-off-by: Raphaël Zumer --- doc/APIchanges | 5 ++ libavutil/hdr_dynamic_metadata.c | 146 +++ libavutil/hdr_dynamic_metadata.h | 12 +++ libavutil/version.h | 2 +- 4 files

Re: [FFmpeg-devel] [PATCH 5/6] fftools/ffplay: stop using AVFrame.pkt_pos

2023-03-13 Thread Marton Balint
On Fri, 10 Mar 2023, Anton Khirnov wrote: This field is ad-hoc and will be deprecated. Use the recently-added AV_CODEC_FLAG_COPY_OPAQUE to pass arbitrary user data from packets to frames. --- fftools/ffplay.c | 24 ++-- 1 file changed, 22 insertions(+), 2 deletions(-)

Re: [FFmpeg-devel] [PATCH v4 1/2] avcodec/avutil: move dynamic HDR10+ metadata parsing to libavutil

2023-03-13 Thread James Almer
On 3/13/2023 5:22 PM, Raphaël Zumer wrote: Signed-off-by: Raphaël Zumer --- libavcodec/Makefile | 2 +- libavcodec/dynamic_hdr10_plus.c | 198 --- libavcodec/dynamic_hdr10_plus.h | 35 -- libavcodec/h2645_sei.c | 6 +-

[FFmpeg-devel] [PATCH v4 2/2] avutil: add HDR10+ dynamic metadata serialization function

2023-03-13 Thread Raphaël Zumer
Signed-off-by: Raphaël Zumer --- doc/APIchanges | 5 ++ libavutil/hdr_dynamic_metadata.c | 146 +++ libavutil/hdr_dynamic_metadata.h | 12 +++ libavutil/version.h | 2 +- 4 files changed, 164 insertions(+), 1 deletion(-) diff --git

[FFmpeg-devel] [PATCH v4 1/2] avcodec/avutil: move dynamic HDR10+ metadata parsing to libavutil

2023-03-13 Thread Raphaël Zumer
Signed-off-by: Raphaël Zumer --- libavcodec/Makefile | 2 +- libavcodec/dynamic_hdr10_plus.c | 198 --- libavcodec/dynamic_hdr10_plus.h | 35 -- libavcodec/h2645_sei.c | 6 +- libavutil/hdr_dynamic_metadata.c | 180

Re: [FFmpeg-devel] [PATCH 3/3] avcodec/libvpxdec: Constify VP9-decoder

2023-03-13 Thread James Zern
On Sun, Mar 12, 2023 at 11:18 AM Andreas Rheinhardt wrote: > > Possible since 8d226fb9786f34760e80e0d6b403bd63e9ac4ddd. > > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/allcodecs.c | 2 +- > libavcodec/libvpxdec.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > lgtm.

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/avutil: move dynamic HDR metadata parsing to libavutil

2023-03-13 Thread James Almer
On 3/13/2023 2:34 PM, Raphaël Zumer wrote: On 3/13/23 13:10, James Almer wrote: On 3/13/2023 2:05 PM, Raphaël Zumer wrote: On 3/13/23 12:58, James Almer wrote: On 3/13/2023 1:56 PM, Raphaël Zumer wrote: On 3/13/23 12:09, Andreas Rheinhardt wrote: +/** + * Parse the user data

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/avutil: move dynamic HDR metadata parsing to libavutil

2023-03-13 Thread Raphaël Zumer
On 3/13/23 13:10, James Almer wrote: > On 3/13/2023 2:05 PM, Raphaël Zumer wrote: >> On 3/13/23 12:58, James Almer wrote: >>> On 3/13/2023 1:56 PM, Raphaël Zumer wrote: On 3/13/23 12:09, Andreas Rheinhardt wrote: >> >> +/** >> + * Parse the user data registered ITU-T T.35 to

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/avutil: move dynamic HDR metadata parsing to libavutil

2023-03-13 Thread James Almer
On 3/13/2023 2:05 PM, Raphaël Zumer wrote: On 3/13/23 12:58, James Almer wrote: On 3/13/2023 1:56 PM, Raphaël Zumer wrote: On 3/13/23 12:09, Andreas Rheinhardt wrote: +/** + * Parse the user data registered ITU-T T.35 to AVbuffer (AVDynamicHDRVivid). + * @param s A pointer containing the

[FFmpeg-devel] Fwd: Fate test for mxfdec.c: prefer metadata from Footer -

2023-03-13 Thread emcodem
Am 2023-02-16 18:14, schrieb emco...@ffastrans.com: Am 2023-02-12 01:25, schrieb Tomas Härdin: fre 2023-02-03 klockan 14:54 +0100 skrev emco...@ffastrans.com: Am 2021-07-03 15:13, schrieb emco...@ffastrans.com: > Am 2021-06-28 21:58, schrieb emco...@ffastrans.com: > > Am 2021-06-28 03:00,

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/avutil: move dynamic HDR metadata parsing to libavutil

2023-03-13 Thread Raphaël Zumer
On 3/13/23 12:58, James Almer wrote: > On 3/13/2023 1:56 PM, Raphaël Zumer wrote: >> On 3/13/23 12:09, Andreas Rheinhardt wrote: +/** + * Parse the user data registered ITU-T T.35 to AVbuffer (AVDynamicHDRVivid). + * @param s A pointer containing the decoded

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/avutil: move dynamic HDR metadata parsing to libavutil

2023-03-13 Thread James Almer
On 3/13/2023 1:56 PM, Raphaël Zumer wrote: On 3/13/23 12:09, Andreas Rheinhardt wrote: +/** + * Parse the user data registered ITU-T T.35 to AVbuffer (AVDynamicHDRVivid). + * @param s A pointer containing the decoded AVDynamicHDRVivid structure. + * @param data The byte array containing the

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/avutil: move dynamic HDR metadata parsing to libavutil

2023-03-13 Thread Raphaël Zumer
On 3/13/23 12:09, Andreas Rheinhardt wrote: >> >> +/** >> + * Parse the user data registered ITU-T T.35 to AVbuffer >> (AVDynamicHDRVivid). >> + * @param s A pointer containing the decoded AVDynamicHDRVivid structure. >> + * @param data The byte array containing the raw ITU-T T.35 data. >> + *

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/avutil: move dynamic HDR metadata parsing to libavutil

2023-03-13 Thread Andreas Rheinhardt
Raphaël Zumer: > Resending this patch set due to my mail client messing with the line wrapping > in the messages I sent earlier today. > > Below is a copy of the initial explanation. > > This patch set implements serialization for HDR10+ dynamic metadata > (AVDynamicHDRPlus), which is the

[FFmpeg-devel] [PATCH] avfilter: Remove mcdeint, uspp filters

2023-03-13 Thread Andreas Rheinhardt
These filters have been disabled two years ago in commit 95054bfa48cc71db1c7bf66a6b6628cb62f262bf at the major bump before the last major bump. No one stepped up to port them, so this commit removes them. Signed-off-by: Andreas Rheinhardt --- LICENSE.md | 2 -

Re: [FFmpeg-devel] [PATCH 1/1] avcodec/dolby_e: Add error recovery when parse_mantissas run out of bits

2023-03-13 Thread Nicolas Gaullier
>fre 2023-03-10 klockan 10:17 +0100 skrev Nicolas Gaullier: >> +    if (i == c->nb_groups - 1 >> +    && count * size1 > get_bits_left(>gb) >> +    && get_bits_left(>gb) >= 0 >> +    && (int)(mnt - c->mantissas) >= MIN_MANTISSAS) { >> +   

[FFmpeg-devel] [PATCH] avcodec/h264dec: Remove dead function

2023-03-13 Thread Andreas Rheinhardt
The H.264 decoder does not support draw_horiz_band (it does not have the AV_CODEC_CAP_DRAW_HORIZ_BAND), making ff_h264_draw_horiz_band() practically dead. Signed-off-by: Andreas Rheinhardt --- libavcodec/dxva2_h264.c | 7 +-- libavcodec/h264_slice.c | 2 -- libavcodec/h264dec.c| 35

Re: [FFmpeg-devel] [PATCH 2/2] avutil: add HDR10+ dynamic metadata serialization function

2023-03-13 Thread Anton Khirnov
Quoting Raphaël Zumer (2023-03-12 22:50:27) > I expanded on this in another email in the chain, but the buffer size needs > to be communicated to the user, as it is not embedded in the payload. It > seems needlessly convoluted to me to create a separate function solely to > calculate the size

[FFmpeg-devel] [PATCH 5/6] avcodec/libx264: Use dedicated pointer for accesses

2023-03-13 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/libx264.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index df70e9df9b..94006d2b20 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -498,19 +498,19

[FFmpeg-devel] [PATCH 6/6] avcodec/libx264: Use av_pix_fmt_count_planes() where appropriate

2023-03-13 Thread Andreas Rheinhardt
This also fixes the number of planes for the NV formats (this seems to not have caused any problems). Signed-off-by: Andreas Rheinhardt --- libavcodec/libx264.c | 24 +--- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/libavcodec/libx264.c

[FFmpeg-devel] [PATCH 4/6] avcodec/libx264: Pass x264_picture_t* directly

2023-03-13 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/libx264.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index e59939a8a7..df70e9df9b 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -311,11 +311,8 @@ static

Re: [FFmpeg-devel] [PATCH 1/1] avcodec/dolby_e: Add error recovery when parse_mantissas run out of bits

2023-03-13 Thread Tomas Härdin
fre 2023-03-10 klockan 10:17 +0100 skrev Nicolas Gaullier: > +    if (i == c->nb_groups - 1 > +    && count * size1 > get_bits_left(>gb) > +    && get_bits_left(>gb) >= 0 > +    && (int)(mnt - c->mantissas) >= MIN_MANTISSAS) { > + 

Re: [FFmpeg-devel] [PATCH 3/3] avfilter: add avx2 filter_line function for bwdif

2023-03-13 Thread James Darnley
On 3/11/23 17:14, Thomas Mundt wrote: +%if mmsize == 32 +vpbroadcastd m12, DWORD clip_maxm I get a green pattern at bit depths > 8. Looks good with: vpbroadcastw m12, WORD clip_maxm +%else movdm12, DWORD clip_maxm SPLATW m12, m12, 0 +%endif Of

Re: [FFmpeg-devel] [PATCH 2/3] checkasm: add test for bwdif

2023-03-13 Thread James Darnley
On 3/11/23 17:18, Thomas Mundt wrote: I'm not familiar with checkasm tests, but isn't this one limited to a bit depth of 8? Yes, that was the idea because I was only intending to modify the 8-bit function, for now. The function pointer is the same for all depths so you need to

Re: [FFmpeg-devel] [PATCH] avcodec/libsvtav1: use larger of bit rate and max rate for buffer size

2023-03-13 Thread Jan Ekström
On Thu, Mar 9, 2023 at 8:57 PM Jan Ekström wrote: > > Generally if maxrate is set, the calculation should be maxrate over > bufsize. This additionally enables CRF + maxrate & bufsize usage. > > In order to keep negative values from enabling zero to be treated > as larger and causing a division by

Re: [FFmpeg-devel] [PATCH] avutil/frame: move wipe_side_data counter to its utilized scope

2023-03-13 Thread Jan Ekström
On Mon, Mar 13, 2023 at 12:10 AM Andreas Rheinhardt wrote: > > Jan Ekström: > > Originally in 77b2cd7b41d7ec8008b6fac753c04f77824c514c this > > counter was separate in av_frame_unref, in which the same counter > > was re-utilized multiple times over multiple loops. > > > > This code was then