Re: [FFmpeg-devel] [PATCH] lavc/qsvenc: add return check for ff_qsv_map_pixfmt

2022-01-06 Thread Xiang, Haihao
> -Original Message- > From: ffmpeg-devel On Behalf Of Linjie > Fu > Sent: Tuesday, February 25, 2020 10:03 > To: ffmpeg-devel@ffmpeg.org > Cc: Fu, Linjie > Subject: [FFmpeg-devel] [PATCH] lavc/qsvenc: add return check for > ff_qsv_map_pixfmt > > Return an error directly if pixfmt is n

[FFmpeg-devel] [PATCH V4 2/2] libavutil/hwcontext_opencl: fix a bug for mapping qsv frame to opencl

2022-01-06 Thread Wenbin Chen
From: nyanmisaka mfxHDLPair was added to qsv, so modify qsv->opencl map function as well. Now the following commandline works: ffmpeg -v verbose -init_hw_device vaapi=va:/dev/dri/renderD128 \ -init_hw_device qsv=qs@va -init_hw_device opencl=ocl@va -filter_hw_device ocl \ -hwaccel qsv -hwaccel_ou

[FFmpeg-devel] [PATCH V4 1/2] libavcodec/vaapi_decode: fix the problem that init_pool_size < nb_surface

2022-01-06 Thread Wenbin Chen
For vaapi if the init_pool_size is not zero, the pool size is fixed. This means max surfaces is init_pool_size, but when mapping vaapi frame to qsv frame, the init_pool_size < nb_surface. The cause is that vaapi_decode_make_config() config the init_pool_size and it is called twice. The first time i

Re: [FFmpeg-devel] [PATCH v1] lavc/av1dec: use frame split bsf

2022-01-06 Thread Xiang, Haihao
On Tue, 2022-01-04 at 08:29 +, Xiang, Haihao wrote: > On Tue, 2021-12-28 at 06:00 +, Xiang, Haihao wrote: > > On Wed, 2021-12-15 at 16:06 +0800, Fei Wang wrote: > > > Split packed data in case of its contains multiple show frame in some > > > non-standard bitstream. This can benefit decoder

Re: [FFmpeg-devel] [PATCH V2] doc/encoders.texi: Add doc for qsv

2022-01-06 Thread Xiang, Haihao
On Thu, 2022-01-06 at 11:00 +0800, Wenbin Chen wrote: > Add doc for qsv decoder. > Add more option's introduction to qsv encoder. > > Signed-off-by: Wenbin Chen > --- > doc/decoders.texi | 42 > doc/encoders.texi | 253 +- > 2 files changed,

[FFmpeg-devel] [PATCH v4] avfilter/vpp_qsv: fix regression on older api versions (e.g. 1.11)

2022-01-06 Thread ffmpegagent
From: softworkz Commit 8b83dad82512a6948b63408f964463b063ad24c9 introduced a regression in a way that scaling via vpp_qsv doesn't work any longer for devices with an MSDK runtime version lower than 1.19. This is true for older CPUs which are stuck at 1.11. The commit added checks for the compile-

Re: [FFmpeg-devel] [PATCH v3] avfilter/vpp_qsv: fix regression on older api versions (e.g. 1.11)

2022-01-06 Thread Soft Works
> -Original Message- > From: Xiang, Haihao > Sent: Friday, January 7, 2022 7:48 AM > To: ffmpeg-devel@ffmpeg.org > Cc: haihao.xiang-at-intel@ffmpeg.org; softwo...@hotmail.com > Subject: Re: [FFmpeg-devel] [PATCH v3] avfilter/vpp_qsv: fix regression on > older api versions (e.g. 1.11

Re: [FFmpeg-devel] [PATCH v3] avfilter/vpp_qsv: fix regression on older api versions (e.g. 1.11)

2022-01-06 Thread Xiang, Haihao
On Fri, 2022-01-07 at 03:58 +, ffmpegagent wrote: > From: softworkz > > Commit 8b83dad82512a6948b63408f964463b063ad24c9 introduced a > regression in a way that scaling via vpp_qsv doesn't work any longer > for devices with an MSDK runtime version lower than 1.19. This is true > for older CPUs

[FFmpeg-devel] [PATCH 4/4] avcodec/dvdsubdec: fix writing ppm

2022-01-06 Thread ffmpegagent
From: softworkz fopen needs (b)inary mode Signed-off-by: softworkz --- libavcodec/dvdsubdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c index c0f796068e..f3d1a4e2fc 100644 --- a/libavcodec/dvdsubdec.c +++ b/libavcodec/dv

[FFmpeg-devel] [PATCH 3/4] avcodec/dvdsubdec: don't dump images to disk based on DEBUG define

2022-01-06 Thread ffmpegagent
From: softworkz It's been a regular annoyance. Introduce a debug-only parameter for this. Signed-off-by: softworkz --- libavcodec/dvdsubdec.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c index 52259f0730..c0f796068

[FFmpeg-devel] [PATCH 2/4] avcodec/dvbsubdec: fix writing ppm

2022-01-06 Thread ffmpegagent
From: softworkz fopen needs (b)inary mode Signed-off-by: softworkz --- libavcodec/dvbsubdec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c index 8db9963fda..f65bf960a4 100644 --- a/libavcodec/dvbsubdec.c +++ b/libavcode

[FFmpeg-devel] [PATCH 1/4] avcodec/dvbsubdec: don't dump images to disk based on DEBUG define

2022-01-06 Thread ffmpegagent
From: softworkz It's been a regular annoyance. Introduce a debug-only parameter for this. Signed-off-by: softworkz --- libavcodec/dvbsubdec.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c index bc741a1de6..

[FFmpeg-devel] [PATCH 0/4] avcodec/dvbsubdec, dvdsubdec: don't dump images to disk based on DEBUG define

2022-01-06 Thread ffmpegagent
It's annoying and unexpected, but still useful at times (as I've realized just recently). This is a follow-up to the earlier submission here: https://www.mail-archive.com/ffmpeg-devel@ffmpeg.org/msg128080.html There has been a comment from Anton, questioning whether the dump-feature is useful. Me

[FFmpeg-devel] [PATCH v3] avfilter/vpp_qsv: fix regression on older api versions (e.g. 1.11)

2022-01-06 Thread ffmpegagent
From: softworkz Commit 8b83dad82512a6948b63408f964463b063ad24c9 introduced a regression in a way that scaling via vpp_qsv doesn't work any longer for devices with an MSDK runtime version lower than 1.19. This is true for older CPUs which are stuck at 1.11. The commit added checks for the compile-

[FFmpeg-devel] [PATCH] Add libavformat/tests/imf to .gitignore

2022-01-06 Thread pal
From: Pierre-Anthony Lemieux Signed-off-by: Pierre-Anthony Lemieux --- libavformat/tests/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/tests/.gitignore b/libavformat/tests/.gitignore index 7ceb7a356b..aabf76345e 100644 --- a/libavformat/tests/.gitignore +++ b/libavf

Re: [FFmpeg-devel] [PATCH] lavu/videotoolbox: add support for memory mapping frames

2022-01-06 Thread Aman Karmani
On Sun, Jan 2, 2022 at 6:22 PM Cameron Gutman wrote: > On 1/2/22 19:21, Aman Karmani wrote: > > > > > > On Sun, Jan 2, 2022 at 4:33 PM Cameron Gutman > wrote: > > > > Signed-off-by: Cameron Gutman aicomman...@gmail.com>> > > --- > > libavutil/hwcontext

Re: [FFmpeg-devel] [PATCH 4/4] aarch64: Disable ff_hevc_sao_band_filter_8x8_8_neon out of precaution

2022-01-06 Thread Martin Storsjö
On Wed, 5 Jan 2022, Martin Storsjö wrote: While this function on its own passes all of fate-hevc, there's indications that the function might need to handle widths that aren't a multiple of 8 (noted in commit f63f9be37c799ddc835af358034630d31fb7db02, which later was reverted). --- libavcodec/aar

[FFmpeg-devel] [PATCH 15/15] avformat/img2dec: Don't include disabled demuxers

2022-01-06 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavformat/img2dec.c | 73 +-- 1 file changed, 42 insertions(+), 31 deletions(-) diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c index a6084ceef0..4d5ac51b53 100644 --- a/libavformat/img2dec.c +++ b/libavfo

[FFmpeg-devel] [PATCH 14/14] avdevice/iec61883: #if unused code away, fix -O0 compilation

2022-01-06 Thread Andreas Rheinhardt
iec61883_parse_queue_hdv() is only called when the mpegts-demuxer is available and can be optimized away when not. Yet this optimization is not a given and i fails with e.g. GCC 11 when using -O0 in which case one will get a compilation error because the call to the unavailable avpriv_mpegts_parse_

[FFmpeg-devel] [PATCH 13/14] configure: Let decklink indev suggest libzvbi

2022-01-06 Thread Andreas Rheinhardt
Fixes build errors if libzvbi is enabled while libzvbi_teletextdec is disabled. Signed-off-by: Andreas Rheinhardt --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index 1225faf15a..11342d5cec 100755 --- a/configure +++ b/configure @@ -3500,6 +3500,7 @@ caca

[FFmpeg-devel] [PATCH 12/12] avformat/matroskaenc: Fix build with only WebM muxer enabled

2022-01-06 Thread Andreas Rheinhardt
In this case ff_isom_put_dvcc_dvvc() might not be available, leading to linking failures. Given that WebM currently doesn't support DOVI, this is fixed by #if'ing the offending code away if the Matroska muxer is not enabled. Signed-off-by: Andreas Rheinhardt --- libavformat/matroskaenc.c | 2 ++

[FFmpeg-devel] [PATCH 11/12] avformat/rtsp: #if unused functions away, fix -O0 compilation

2022-01-06 Thread Andreas Rheinhardt
parse_rtsp_message() is only called if the rtsp demuxer is enabled and so it is normally compiled away if said demuxer is disabled. Yet this does not happen when compiling with -O0 and this leads to a linking failure because parse_rtsp_message() calls functions that may not be available if the rtsp

Re: [FFmpeg-devel] [PATCH 09/10] avformat/Makefile: Fix name of PhotoCD demuxer

2022-01-06 Thread Paul B Mahol
LGTM ___ 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".

[FFmpeg-devel] [PATCH 10/10] avformat/Makefile: Add entries for CRI, GEM and PGX image pipe demuxers

2022-01-06 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavformat/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/Makefile b/libavformat/Makefile index 95972d5277..300a32bae1 100644 --- a/libavformat/Makefile +++ b/libavformat/Makefile @@ -259,9 +259,11 @@ OBJS-$(CONFIG_IMAGE2PIPE_MUX

[FFmpeg-devel] [PATCH 08/10] avformat/Makefile: Add missing amv-muxer->riffenc.o dependency

2022-01-06 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavformat/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/Makefile b/libavformat/Makefile index 1d0396ba3e..9f7ec6eba8 100644 --- a/libavformat/Makefile +++ b/libavformat/Makefile @@ -92,7 +92,7 @@ OBJS-$(CONFIG_AMR_

[FFmpeg-devel] [PATCH 09/10] avformat/Makefile: Fix name of PhotoCD demuxer

2022-01-06 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavformat/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/Makefile b/libavformat/Makefile index 9f7ec6eba8..95972d5277 100644 --- a/libavformat/Makefile +++ b/libavformat/Makefile @@ -271,7 +271,7 @@ OBJS-$(CONFIG_IM

[FFmpeg-devel] [PATCH 07/10] avformat/Makefile: Add missing alp-muxer->rawenc.o dependency

2022-01-06 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavformat/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/Makefile b/libavformat/Makefile index 6bd8af1bca..1d0396ba3e 100644 --- a/libavformat/Makefile +++ b/libavformat/Makefile @@ -87,7 +87,7 @@ OBJS-$(CONFIG_AIFF

Re: [FFmpeg-devel] [PATCH v8 2/3] libavdevice/avfoundation.m: Replace mutex-based concurrency handling in avfoundation.m by a thread-safe fifo queue with maximum length

2022-01-06 Thread Romain Beauxis
Le mer. 5 janv. 2022 à 08:50, Marvin Scholz a écrit : > > On 31 Dec 2021, at 18:43, Romain Beauxis wrote: > > > * Use a CMSimpleQueueEnqueue with maximum length to queue and process > > incoming audio and video frames. > > * Log avfoundation errors. > > * Use AVERROR_EXTERNAL instead of AVERROR(EI

Re: [FFmpeg-devel] [PATCH v8 1/3] libavdevice/avfoundation.m: use AudioConvert, extend supported formats

2022-01-06 Thread Marvin Scholz
On 6 Jan 2022, at 15:34, Romain Beauxis wrote: Le mer. 5 janv. 2022 à 08:58, Thilo Borgmann a écrit : Am 05.01.22 um 15:51 schrieb Marvin Scholz: On 31 Dec 2021, at 18:42, Romain Beauxis wrote: * Implement support for AudioConverter * Switch to AudioConverter's API to convert unsupported

[FFmpeg-devel] [PATCH v9 3/3] libavdevice/avfoundation.m: Allow to select devices by unique ID

2022-01-06 Thread Romain Beauxis
Signed-off-by: Romain Beauxis --- This is the third patch of a series of 3 that fix, cleanup and enhance the avfoundation implementation for libavdevice. These patches come from an actual user-facing application relying on libavdevice’s implementation of avfoundation audio input. Without them, Av

[FFmpeg-devel] [PATCH v9 2/3] libavdevice/avfoundation.m: Replace mutex-based concurrency handling in avfoundation.m by a thread-safe fifo queue with maximum length

2022-01-06 Thread Romain Beauxis
* Use a CMSimpleQueueEnqueue with maximum length to queue and process incoming audio and video frames. * Log avfoundation errors. * Use AVERROR_EXTERNAL instead of AVERROR(EIO) in avfoundation errors. Signed-off-by: Romain Beauxis --- This is the first patch of a series of 3 that fix, cleanup an

[FFmpeg-devel] [PATCH v9 1/3] libavdevice/avfoundation.m: use AudioConvert, extend supported formats

2022-01-06 Thread Romain Beauxis
* Implement support for AudioConverter * Switch to AudioConverter's API to convert unsupported PCM formats (non-interleaved, non-packed) to supported formats * Minimize data copy. This fixes: https://trac.ffmpeg.org/ticket/9502 API ref: https://developer.apple.com/documentation/audiotoolbox/aud

[FFmpeg-devel] [PATCH v3 5/5] fate/jpegxl: add JPEG XL demux and parse FATE test

2022-01-06 Thread Leo Izen
Add a fate test for the JPEG XL parser in libavcodec and its image2 wrapper inside libavformat. --- tests/fate/image.mak| 10 ++ tests/ref/fate/jxl-parse-codestream | 6 ++ tests/ref/fate/jxl-parse-container | 6 ++ 3 files changed, 22 insertions(+) create mode

[FFmpeg-devel] [PATCH v3 4/5] avformat/image2: add Jpeg XL as image2 format

2022-01-06 Thread Leo Izen
This commit adds support to libavformat for muxing and demuxing Jpeg XL images as image2 streams. --- libavformat/allformats.c | 1 + libavformat/img2.c | 1 + libavformat/img2dec.c| 19 +++ libavformat/img2enc.c| 6 +++--- libavformat/mov.c| 1 + libavfor

[FFmpeg-devel] [PATCH v3 3/5] avcodec/libjxl: add Jpeg XL encoding via libjxl

2022-01-06 Thread Leo Izen
This commit adds encoding support to libavcodec for Jpeg XL images via the external library libjxl. --- configure | 3 +- libavcodec/Makefile| 1 + libavcodec/allcodecs.c | 1 + libavcodec/libjxlenc.c | 383 + 4 files changed, 387 inse

[FFmpeg-devel] [PATCH v3 2/5] avcodec/libjxl: add Jpeg XL decoding via libjxl

2022-01-06 Thread Leo Izen
This commit adds decoding support to libavcodec for Jpeg XL images via the external library libjxl. --- MAINTAINERS | 1 + configure | 5 + doc/general_contents.texi | 7 + libavcodec/Makefile | 1 + libavcodec/allcodecs.c| 1 + libavcodec/libjxl.c

[FFmpeg-devel] [PATCH v3 1/5] avcodec/jpegxl: add Jpeg XL image codec and parser

2022-01-06 Thread Leo Izen
This commit adds support to libavcodec to read and parse encoded Jpeg XL images. Jpeg XL is intended to be an extended-life replacement to legacy mjpeg. --- MAINTAINERS| 2 + libavcodec/Makefile| 1 + libavcodec/codec_desc.c| 9 + libavcodec/codec_id.h | 1

[FFmpeg-devel] [PATCH v3 0/5]

2022-01-06 Thread Leo Izen
I've fixed some typos I discovered when looking at my code and refactored it slightly. -Leo Izen (thebombzen) ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or

[FFmpeg-devel] [PATCH 6/6] fate/amrwb: Fix container type

2022-01-06 Thread Andreas Rheinhardt
All the AMRWB samples are in a mov container. Also use FATE_SAMPLES_FFMPEG instead of FATE_SAMPLES_AVCONV. Signed-off-by: Andreas Rheinhardt --- tests/fate/amrwb.mak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fate/amrwb.mak b/tests/fate/amrwb.mak index 617cefca00..

[FFmpeg-devel] [PATCH 5/6] fate/amr[nw]b: Add remux tests

2022-01-06 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- tests/fate/amrnb.mak | 8 +- tests/fate/amrwb.mak | 8 +- tests/ref/fate/amrnb-remux | 58 ++ tests/ref/fate/amrwb-remux | 58 ++ 4 files changed, 130 insertions(+),

Re: [FFmpeg-devel] [PATCH 1/4] avcodec/hevcdec: Combine multiple allocations

2022-01-06 Thread Michael Niedermayer
On Thu, Jan 06, 2022 at 10:56:37AM +0100, Andreas Rheinhardt wrote: > Michael Niedermayer: > > On Wed, Jan 05, 2022 at 10:18:11PM +0100, Andreas Rheinhardt wrote: > >> Reduces the number of allocs and frees. > >> > >> Signed-off-by: Andreas Rheinhardt > >> --- > >> libavcodec/hevcdec.c | 11 -

Re: [FFmpeg-devel] [PATCH v2] lavfi/drawtext: Add localtime_ms for millisecond precision

2022-01-06 Thread Thilo Borgmann
Am 03.01.22 um 16:22 schrieb Thilo Borgmann: > Am 29.12.21 um 12:46 schrieb Nicolas George: >> "zhilizhao(赵志立)" (12021-12-29): >>> How about add a restriction like this: >>> >>> if (format.endsWith(“%S")) >>> enable the feature >>> else >>> warning message >>> >>> It’s a useful feature, it

[FFmpeg-devel] [PATCH 4/4] avformat/amr: Fix writing AMR header

2022-01-06 Thread Andreas Rheinhardt
Regression since f282c34c009e3653ec160c3880e64fc1a9300d0e. Signed-off-by: Andreas Rheinhardt --- Will add FATE-remux tests for the muxer later. libavformat/amr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/amr.c b/libavformat/amr.c index 8e14052200..40d5b

[FFmpeg-devel] [PATCH 3/4] avformat/amr: Don't reset AVFormatContext.priv_data

2022-01-06 Thread Andreas Rheinhardt
The AMR muxer doesn't have a private context, so it's priv_data will be NULL. If it weren't, simply setting it to NULL would lead to a memleak. Signed-off-by: Andreas Rheinhardt --- libavformat/amr.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavformat/amr.c b/libavformat/amr.c index

[FFmpeg-devel] [PATCH 2/4] avformat/Makefile, amr: Add missing amr-demuxers->rawdec.o dependency

2022-01-06 Thread Andreas Rheinhardt
Forgotten in 1f447fd95463bbf39a78d886359a3006d82f6a94. Also only enable amr_probe() and amr_read_header() in case the AMR demuxer is enabled; this avoids having to add a rawdec.o dependency to the muxer. Signed-off-by: Andreas Rheinhardt --- libavformat/Makefile | 6 +++--- libavformat/amr.c

Re: [FFmpeg-devel] [PATCH 1/3] avformat/takdec: Don't initialize get_bits context to read one value

2022-01-06 Thread Paul B Mahol
LGTM ___ 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 1/4] avcodec/hevcdec: Combine multiple allocations

2022-01-06 Thread Andreas Rheinhardt
Michael Niedermayer: > On Wed, Jan 05, 2022 at 10:18:11PM +0100, Andreas Rheinhardt wrote: >> Reduces the number of allocs and frees. >> >> Signed-off-by: Andreas Rheinhardt >> --- >> libavcodec/hevcdec.c | 11 --- >> 1 file changed, 4 insertions(+), 7 deletions(-) > > something in the p

Re: [FFmpeg-devel] [PATCH] avformat/rawvideodec: check packet size

2022-01-06 Thread Andreas Rheinhardt
Michael Niedermayer: > Fixes: division by zero > Fixes: > 43347/clusterfuzz-testcase-minimized-ffmpeg_dem_V210X_fuzzer-5846911637127168 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-by: Michael Niedermayer > --- > libavfo

Re: [FFmpeg-devel] [PATCH 4/4] avcodec/hevcdec: Avoid redundant entry_point_offsets array

2022-01-06 Thread Michael Niedermayer
On Wed, Jan 05, 2022 at 10:19:08PM +0100, Andreas Rheinhardt wrote: > Instead modify the offsets in place. > > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/hevcdec.c | 19 +-- > libavcodec/hevcdec.h | 1 - > 2 files changed, 9 insertions(+), 11 deletions(-) This seems t

Re: [FFmpeg-devel] [PATCH 1/4] avcodec/hevcdec: Combine multiple allocations

2022-01-06 Thread Michael Niedermayer
On Wed, Jan 05, 2022 at 10:18:11PM +0100, Andreas Rheinhardt wrote: > Reduces the number of allocs and frees. > > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/hevcdec.c | 11 --- > 1 file changed, 4 insertions(+), 7 deletions(-) something in the patches today causes a segfault i

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/mlpdec: Use get_bits() instead of get_bits_long() when possible

2022-01-06 Thread Andreas Rheinhardt
Michael Niedermayer: > On Wed, Jan 05, 2022 at 10:38:34PM +0100, Andreas Rheinhardt wrote: >> huff_lsbs is guaranteed to be in the range of 0..24 and >> so is lsb_bits here, so one can use get_bits(). >> >> Signed-off-by: Andreas Rheinhardt >> --- >> libavcodec/mlpdec.c | 2 +- >> 1 file changed,

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/mlpdec: Use get_bits() instead of get_bits_long() when possible

2022-01-06 Thread Michael Niedermayer
On Wed, Jan 05, 2022 at 10:38:34PM +0100, Andreas Rheinhardt wrote: > huff_lsbs is guaranteed to be in the range of 0..24 and > so is lsb_bits here, so one can use get_bits(). > > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/mlpdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-

[FFmpeg-devel] [PATCH] avformat/Makefile: Add missing libamqp->urldecode dependency

2022-01-06 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavformat/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/Makefile b/libavformat/Makefile index c479ea998e..cc19325397 100644 --- a/libavformat/Makefile +++ b/libavformat/Makefile @@ -667,7 +667,7 @@ OBJS-$(CONFIG_UD

Re: [FFmpeg-devel] [PATCH] Fix for possible buffer overflow.

2022-01-06 Thread Michael Niedermayer
On Wed, Jan 05, 2022 at 04:26:09PM -0800, AlexisWilke wrote: > If it is true that the (index + c) can be larger than s->limiter_buf_size > then the overflow potential has to be handled in the previous two statements. > > Signed-off-by: AlexisWilke > --- > libavfilter/af_loudnorm.c | 7 --- >

Re: [FFmpeg-devel] [PATCH] avformat/rawvideodec: check packet size

2022-01-06 Thread lance . lmwang
On Thu, Jan 06, 2022 at 09:42:03AM +0100, Michael Niedermayer wrote: > Fixes: division by zero > Fixes: > 43347/clusterfuzz-testcase-minimized-ffmpeg_dem_V210X_fuzzer-5846911637127168 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Sign

[FFmpeg-devel] [PATCH] avformat/rawvideodec: check packet size

2022-01-06 Thread Michael Niedermayer
Fixes: division by zero Fixes: 43347/clusterfuzz-testcase-minimized-ffmpeg_dem_V210X_fuzzer-5846911637127168 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavformat/rawvideodec.c | 2 ++ 1 file chang

Re: [FFmpeg-devel] [PATCH V2 2/3] libavcodec/vaapi_encode: Change the way to call async to increase performance

2022-01-06 Thread Andreas Rheinhardt
Chen, Wenbin: >> Wenbin Chen: >>> Fix: #7706. After commit 5fdcf85bbffe7451c2, vaapi encoder's performance >>> decrease. The reason is that vaRenderPicture() and vaSyncBuffer() are >>> called at the same time (vaRenderPicture() always followed by a >>> vaSyncBuffer()). When we encode stream with B