Re: [FFmpeg-devel] FFV1 slicecrc: "hashxx" instead of "CRC" for speed?

2022-10-26 Thread Kieran Kunhya
On Tue, 25 Oct 2022, 21:32 Peter B., wrote: > Hi everyone :) > > Would it possibly have a significant impact on coding speed of FFV1's > slicecrc option (Where a CRC is calculated for each frame slice), to use > a faster algorithm instead (if one exists)? > I'm wondering if, for example something

Re: [FFmpeg-devel] FFV1 slicecrc: "hashxx" instead of "CRC" for speed?

2022-10-26 Thread Paul B Mahol
On 10/26/22, Kieran Kunhya wrote: > On Tue, 25 Oct 2022, 21:32 Peter B., wrote: > >> Hi everyone :) >> >> Would it possibly have a significant impact on coding speed of FFV1's >> slicecrc option (Where a CRC is calculated for each frame slice), to use >> a faster algorithm instead (if one exists)

[FFmpeg-devel] [PATCH] avcodec/eatgq: prevent out of bounds memory access and endless loop

2022-10-26 Thread Peter Ross
--- libavcodec/eatgq.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libavcodec/eatgq.c b/libavcodec/eatgq.c index 89e9f20880..fdda8286ef 100644 --- a/libavcodec/eatgq.c +++ b/libavcodec/eatgq.c @@ -56,7 +56,7 @@ static av_cold int tgq_decode_init(AVCodecContext *a

[FFmpeg-devel] [PATCHv2] fate/microsoft: add mss2 region test case

2022-10-26 Thread Peter Ross
--- test file: https://trac.ffmpeg.org/attachment/ticket/3255/mss2_2.wmv (30 KiB) tests/fate/microsoft.mak | 3 ++- tests/ref/fate/mss2-region | 7 +++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 tests/ref/fate/mss2-region diff --git a/tests/fate/microsoft.mak b/te

Re: [FFmpeg-devel] [PATCH] avcodec/eatgq: prevent out of bounds memory access and endless loop

2022-10-26 Thread Andreas Rheinhardt
Peter Ross: > --- > libavcodec/eatgq.c | 10 +++--- > 1 file changed, 7 insertions(+), 3 deletions(-) > > diff --git a/libavcodec/eatgq.c b/libavcodec/eatgq.c > index 89e9f20880..fdda8286ef 100644 > --- a/libavcodec/eatgq.c > +++ b/libavcodec/eatgq.c > @@ -56,7 +56,7 @@ static av_cold int tgq

Re: [FFmpeg-devel] [PATCH 1/5 v2] avcodec/ac3dec: split off code discarding garbage at the beginning of a packet

2022-10-26 Thread James Almer
On 10/22/2022 6:02 PM, James Almer wrote: Signed-off-by: James Almer --- No changes since v1. libavcodec/ac3_parser.c | 19 +++ libavcodec/ac3_parser_internal.h | 2 ++ libavcodec/ac3dec.c | 15 ++- 3 files changed, 23 insertions(+), 13 de

Re: [FFmpeg-devel] [PATCH] RFC: v210enc optimisations and initial AVX-512

2022-10-26 Thread James Darnley
I guess it could also be scaled to ymm if you're a big Skylake fan :P (in which case you'd probably want to reorder the shuffle indices so

[FFmpeg-devel] [PATCH] Avoid possible integer overflow in yuv420 to rgba64 templates by saturating.

2022-10-26 Thread Drew Dunne
--- libswscale/output.c | 96 ++--- 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/libswscale/output.c b/libswscale/output.c index 0e1c1225a0..8c8f62682a 100644 --- a/libswscale/output.c +++ b/libswscale/output.c @@ -1109,20 +1109,20 @@ yuv2

Re: [FFmpeg-devel] [PATCH 10/12] avcodec: add MediaCodec encoder

2022-10-26 Thread Tomas Härdin
mån 2022-10-24 klockan 11:16 +0800 skrev Zhao Zhili: > > +typedef struct MediaCodecEncContext { > +    AVClass *avclass; > +    FFAMediaCodec *codec; > +    int use_ndk_codec; > +    FFANativeWindow *window; > + > +    int fps; > +    int width; > +    int height; > + > +    uint8_t *extradata; >

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/mpegvideo: Don't initialize H264Chroma ctx unnecessarily

2022-10-26 Thread Andreas Rheinhardt
Andreas Rheinhardt: > It is only used by the decoders' lowres code, so only initialize > it for decoders. > > Signed-off-by: Andreas Rheinhardt > --- > configure | 4 ++-- > libavcodec/mpegvideo.c | 1 - > libavcodec/mpegvideo_dec.c | 3 +++ > 3 files changed, 5 insertions(+

Re: [FFmpeg-devel] [PATCH 10/12] avcodec: add MediaCodec encoder

2022-10-26 Thread zhilizhao(赵志立)
> On Oct 27, 2022, at 05:17, Tomas Härdin wrote: > > mån 2022-10-24 klockan 11:16 +0800 skrev Zhao Zhili: >> >> +typedef struct MediaCodecEncContext { >> +AVClass *avclass; >> +FFAMediaCodec *codec; >> +int use_ndk_codec; >> +FFANativeWindow *window; >> + >> +int fps; >> +

Re: [FFmpeg-devel] [PATCH] avcodec/eatgq: prevent out of bounds memory access and endless loop

2022-10-26 Thread Peter Ross
On Wed, Oct 26, 2022 at 01:41:57PM +0200, Andreas Rheinhardt wrote: > Peter Ross: > > --- > > libavcodec/eatgq.c | 10 +++--- > > 1 file changed, 7 insertions(+), 3 deletions(-) > > > > diff --git a/libavcodec/eatgq.c b/libavcodec/eatgq.c > > index 89e9f20880..fdda8286ef 100644 > > --- a/liba