Re: [FFmpeg-devel] [PATCH] avformat/hls: fix spelling and grammar on wrap warning

2022-10-06 Thread Gyan Doshi
On 2022-10-05 08:59 pm, Steven Liu wrote: Tristan Matthews 于2022年10月5日周三 22:44写道: --- libavformat/hls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index e622425e80..402eb2b5a0 100644 --- a/libavformat/hls.c +++

Re: [FFmpeg-devel] [PATCH v2] lavc/cbs_av1: restore CodedBitstreamAV1Context when AVERROR(ENOSPC)

2022-10-06 Thread Xiang, Haihao
On Wed, 2022-10-05 at 09:55 -0300, James Almer wrote: > On 9/27/2022 10:39 PM, Xiang, Haihao wrote: > > From: Haihao Xiang > > > > The current pbc might be small for an obu frame, so a new pbc is > > required then parse this obu frame again. Because > > CodedBitstreamAV1Context has already been

[FFmpeg-devel] [PATCH v2] lavc/qsvenc_hevc: use open GOP by default

2022-10-06 Thread Xiang, Haihao
From: Haihao Xiang HEVC spec has CRA frame which allows random access with open GOP, hence it can achieve higher compression efficiency. Signed-off-by: Haihao Xiang --- libavcodec/qsvenc_hevc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavcodec/qsvenc_hevc.c

Re: [FFmpeg-devel] [PATCH] lavc/qsvenc_hevc: use open GOP by default

2022-10-06 Thread Xiang, Haihao
> Xiang, Haihao: > > From: Haihao Xiang > > > > HEVC spec has CRA frame which allows random access with open GOP, hence > > it can achieve higher compression efficiency. > > > > Signed-off-by: Haihao Xiang > > --- > > libavcodec/qsvenc_hevc.c | 2 +- > > 1 file changed, 1 insertion(+), 1

[FFmpeg-devel] [PATCH 3/4] tools/target_dec_fuzzer: Adjust threshold for FFV1

2022-10-06 Thread Michael Niedermayer
Fixes: Timeout Fixes: 49446/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FFV1_fuzzer-5085639783088128 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- tools/target_dec_fuzzer.c | 1 + 1 file

[FFmpeg-devel] [PATCH 2/4] avcodec/ffv1dec: Fail earlier if prior context is corrupted

2022-10-06 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavcodec/ffv1dec.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavcodec/ffv1dec.c b/libavcodec/ffv1dec.c index d4bc60a7da8..958b3cd3c05 100644 --- a/libavcodec/ffv1dec.c +++ b/libavcodec/ffv1dec.c @@ -303,8 +303,11 @@ static

[FFmpeg-devel] [PATCH 1/4] avformat/asfdec_o: Check offset before adding index entry

2022-10-06 Thread Michael Niedermayer
Fixes: signed integer overflow: 9223372036854550860 + 530259564 cannot be represented in type 'long' Fixes: 49093/clusterfuzz-testcase-minimized-ffmpeg_dem_ASF_O_fuzzer-4697179192688640 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg

[FFmpeg-devel] [PATCH 4/4] avcodec/speedhq: Check buf_size to be big enough for DC

2022-10-06 Thread Michael Niedermayer
Fixes: Timeout Fixes: 51919/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SPEEDHQ_fuzzer-6023716480090112 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/speedhq.c | 2 ++ 1 file changed,

[FFmpeg-devel] [PATCH] checkasm: RISC-V 64-bit assembler test harness

2022-10-06 Thread Rémi Denis-Courmont
--- tests/checkasm/Makefile | 1 + tests/checkasm/checkasm.h | 10 ++ tests/checkasm/riscv/checkasm.S | 178 3 files changed, 189 insertions(+) create mode 100644 tests/checkasm/riscv/checkasm.S diff --git a/tests/checkasm/Makefile

[FFmpeg-devel] [PATCH] lavc/aacpsdsp: fix clobber on RISC-V LP64D/ILP32D

2022-10-06 Thread Rémi Denis-Courmont
Although the DSP function only uses single precision from RISC-V F, the caller may leave double precision values in the spilled registers if the calling convention supports double precision hardware floats. Then, we need to save and restore FS registers as double precision. Conversely, we do not

[FFmpeg-devel] [PATCH 2/2] avcodec/wmv2enc: Inline extradata size

2022-10-06 Thread Andreas Rheinhardt
This also allows the compiler to optimize the implicit checks performed by the PutBit-API away (Clang does so). Signed-off-by: Andreas Rheinhardt --- libavcodec/wmv2enc.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libavcodec/wmv2enc.c b/libavcodec/wmv2enc.c index

[FFmpeg-devel] [PATCH 1/2] avcodec/msmpeg4enc: Fix indentation

2022-10-06 Thread Andreas Rheinhardt
Forgotten after 2b9ab1d54a35f7d689b2396cfc59f9dbdcae391f. Signed-off-by: Andreas Rheinhardt --- libavcodec/msmpeg4enc.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libavcodec/msmpeg4enc.c b/libavcodec/msmpeg4enc.c index e40acdf3fc..f0d0045e69 100644 ---

Re: [FFmpeg-devel] [PATCH V2] lavc/libvpx: increase thread limit to 64

2022-10-06 Thread Andreas Rheinhardt
OvchinnikovDmitrii: > This change improves the performance and multicore scalability of the vp9 > codec for streaming single-pass encoded videos by taking advantage of up > to 64 cores in the system. The current thread limit for ffmpeg codecs is 16 > (MAX_AUTO_THREADS in pthread_internal.h) due to

Re: [FFmpeg-devel] [PATCH V2] lavc/libvpx: increase thread limit to 64

2022-10-06 Thread Dmitrii Ovchinnikov
Removed unnecessary comment as requested by Ronald S. Bultje. some more thoughts about the patch: This is my deduction from what I could find - There was a hard limit of 16 threads in libvpx as there was no benefit to adding more threads based upon the parallelism available in the the codec.

[FFmpeg-devel] [PATCH V2] lavc/libvpx: increase thread limit to 64

2022-10-06 Thread OvchinnikovDmitrii
This change improves the performance and multicore scalability of the vp9 codec for streaming single-pass encoded videos by taking advantage of up to 64 cores in the system. The current thread limit for ffmpeg codecs is 16 (MAX_AUTO_THREADS in pthread_internal.h) due to a limitation in H.264 codec

Re: [FFmpeg-devel] [PATCH] avcodec: ViewQuest VQC decoder

2022-10-06 Thread Andreas Rheinhardt
Peter Ross: > --- > Fixes ticket #5601 > > doc/general_contents.texi | 1 + > libavcodec/Makefile | 1 + > libavcodec/allcodecs.c| 1 + > libavcodec/codec_desc.c | 7 + > libavcodec/codec_id.h | 1 + > libavcodec/vqcdec.c | 443

Re: [FFmpeg-devel] [PATCH] lavc/qsvenc_hevc: use open GOP by default

2022-10-06 Thread Andreas Rheinhardt
Xiang, Haihao: > From: Haihao Xiang > > HEVC spec has CRA frame which allows random access with open GOP, hence > it can achieve higher compression efficiency. > > Signed-off-by: Haihao Xiang > --- > libavcodec/qsvenc_hevc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff

[FFmpeg-devel] [PATCH] avcodec: ViewQuest VQC decoder

2022-10-06 Thread Peter Ross
--- Fixes ticket #5601 doc/general_contents.texi | 1 + libavcodec/Makefile | 1 + libavcodec/allcodecs.c| 1 + libavcodec/codec_desc.c | 7 + libavcodec/codec_id.h | 1 + libavcodec/vqcdec.c | 443 ++ libavformat/riff.c

Re: [FFmpeg-devel] [PATCH] avformat/mxfdec: do not log warning of multiple ANC packets if count is 0

2022-10-06 Thread Tomas Härdin
ons 2022-10-05 klockan 17:12 +0100 skrev Gavin Smith: > On 09/09/2022 16:33, Gavin Smith wrote: > > > > On 09/09/2022 10:45, Tomas Härdin wrote: > > > ons 2022-09-07 klockan 15:28 +0100 skrev Gavin Smith: > > > > On 06/08/2022 21:44, Tomas Härdin wrote: > > > > > fre 2022-08-05 klockan 00:03

Re: [FFmpeg-devel] [PATCH] Encrypted SMPTE DC MXF - additional UL needed to unpack EKLV packet

2022-10-06 Thread Tomas Härdin
ons 2022-10-05 klockan 14:18 + skrev Richard Ayres: > > > mån 2022-10-03 klockan 11:47 + skrev Richard Ayres: > > > Thanks, Pierre-Anthony. I've updated the patch to remove the > > > unnecessary UL and it's now using mxf_match_uid() to detect the > > > EKLV > > > packet. > > > > > >

[FFmpeg-devel] [PATCH] lavc/qsvenc_hevc: use open GOP by default

2022-10-06 Thread Xiang, Haihao
From: Haihao Xiang HEVC spec has CRA frame which allows random access with open GOP, hence it can achieve higher compression efficiency. Signed-off-by: Haihao Xiang --- libavcodec/qsvenc_hevc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/qsvenc_hevc.c

[FFmpeg-devel] [PATCH 6/6] lavc/qsv: add support for decoding & encoding 12bit content

2022-10-06 Thread Xiang, Haihao
From: Fei Wang AV_PIX_FMT_P012, AV_PIX_FMT_Y212 and AV_PIX_FMT_XV36 are used in FFmpeg and MFX_FOURCC_P016, MFX_FOURCC_Y216, and MFX_FOURCC_Y416 are used in the SDK Signed-off-by: Fei Wang Signed-off-by: Wenbin Chen Signed-off-by: Haihao Xiang --- libavcodec/qsv.c | 30

[FFmpeg-devel] [PATCH 5/6] lavu/hwcontext_qsv: add support for 12bit content on Linux

2022-10-06 Thread Xiang, Haihao
From: Fei Wang P012, Y212 and XV36 are used for 12bit content in FFmpeg VAAPI, so these formats should be used in FFmpeg QSV too, however the SDK only declares support for P016, Y216 and Y416. So this commit fudged mappings between AV_PIX_FMT_P012 and MFX_FOURCC_P016, AV_PIX_FMT_Y212 and

[FFmpeg-devel] [PATCH 4/6] lavc/qsv: add support for decoding & encoding 10bit 4:4:4 content

2022-10-06 Thread Xiang, Haihao
From: Haihao Xiang AV_PIX_FMT_XV30 is used in FFmpeg and MFX_FOURCC_Y410 is used in the SDK. Signed-off-by: Haihao Xiang --- libavcodec/qsv.c | 9 + libavcodec/qsvdec.c | 2 ++ libavcodec/qsvenc_hevc.c | 1 + libavcodec/qsvenc_vp9.c | 1 + 4 files changed, 13

[FFmpeg-devel] [PATCH 3/6] lavu/hwcontext_qsv: add support for 10bit 4:4:4 content on Linux

2022-10-06 Thread Xiang, Haihao
From: Haihao Xiang XV30 is used for 10bit 4:4:4 content in FFmpeg VAAPI, so XV30 should be used for 10bit 4:4:4 content in FFmpeg QSV too because QSV is based on VAAPI on Linux. However the SDK only declares support for Y410 but does nothing with the alpha in Y410, so this commit fudged a

[FFmpeg-devel] [PATCH 2/6] lavc/qsv: specify Shift for each format too

2022-10-06 Thread Xiang, Haihao
From: Haihao Xiang Signed-off-by: Haihao Xiang --- libavcodec/qsv.c | 9 - libavcodec/qsv_internal.h | 2 +- libavcodec/qsvenc.c | 6 ++ 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c index 51aac16695..4e11b33a7d

[FFmpeg-devel] [PATCH 1/6] lavu/hwcontext_qsv: specify Shift for each format

2022-10-06 Thread Xiang, Haihao
From: Haihao Xiang We can't get Shift from bit depth for some formats in the SDK. For example, bit depth is 10, however Shift is 0 for Y410 (XV30 in FFmpeg). In order to support these formats in the next commits, this patch specified Shift for each format Signed-off-by: Haihao Xiang ---

Re: [FFmpeg-devel] [PATCH] avcodec/libsvtav1: Add support for multipass encoding

2022-10-06 Thread Gustav Grusell
Any chance of someone finding the time to have a look at this? /Gustav On Tue, Sep 27, 2022 at 11:06 PM Gustav Grusell wrote: > Implements support for 2-pass CRF and 3-pass VBR by implementing > reading and writing of stats file, and passing the pass number on > to the encoder. For 3-pass VBR,