Re: [FFmpeg-devel] [PATCH V2 08/10] libavutil: add side data AVDnnBoundingBox for dnn based detect/classify filters

2021-02-11 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of Mark > Thompson > Sent: 2021年2月11日 6:19 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH V2 08/10] libavutil: add side data > AVDnnBoundingBox for dnn based detect/classify filters > > On 10/02/2021 09:34, Guo, Yej

Re: [FFmpeg-devel] [PATCH v2 1/4] avcodec/aarch64/hevcdsp: port SIMD idct functions

2021-02-11 Thread Martin Storsjö
On Thu, 4 Feb 2021, Josh Dekker wrote: From: Reimar Döffinger Makes SIMD-optimized 8x8 and 16x16 idcts for 8 and 10 bit depth available on aarch64. For a UHD HDR (10 bit) sample video these were consuming the most time and this optimization reduced overall decode time from 19.4s to 16.4s, appr

Re: [FFmpeg-devel] [PATCH v2 2/4] avcodec/aarch64/hevcdsp: port add_residual functions

2021-02-11 Thread Martin Storsjö
On Thu, 4 Feb 2021, Josh Dekker wrote: From: Reimar Döffinger Speedup is fairly small, around 1.5%, but these are fairly simple. Signed-off-by: Josh Dekker --- libavcodec/aarch64/hevcdsp_idct_neon.S| 190 ++ libavcodec/aarch64/hevcdsp_init_aarch64.c | 24 +++ 2 files c

Re: [FFmpeg-devel] [PATCH v2 3/4] avcodec/aarch64/hevcdsp: add idct_dc NEON

2021-02-11 Thread Martin Storsjö
On Thu, 4 Feb 2021, Josh Dekker wrote: Signed-off-by: Josh Dekker --- libavcodec/aarch64/hevcdsp_idct_neon.S| 54 +++ libavcodec/aarch64/hevcdsp_init_aarch64.c | 16 +++ 2 files changed, 70 insertions(+) diff --git a/libavcodec/aarch64/hevcdsp_idct_neon.S b/libavcode

Re: [FFmpeg-devel] [PATCH 2/3] libavformat/hls: add support for SAMPLE-AES decryption in HLS demuxer

2021-02-11 Thread Steven Liu
> 在 2021年2月3日,09:11,Steven Liu 写道: > > > >> 2021年2月2日 下午10:51,Nachiket Tarate 写道: >> >> Hello Steven, >> >> Was this test passing earlier (without my patch) ? > Hi Nachiket, > no, and it to support sample aes without your patch >> >> Because SAMPLE-AES encryption method is for MPEG-TS fo

Re: [FFmpeg-devel] [PATCH v2 4/4] avcodec/aarch64/hevcdsp: add sao_band NEON

2021-02-11 Thread Martin Storsjö
On Thu, 4 Feb 2021, Josh Dekker wrote: Only works for 8x8. Signed-off-by: Josh Dekker --- libavcodec/aarch64/Makefile | 3 +- libavcodec/aarch64/hevcdsp_init_aarch64.c | 7 ++ libavcodec/aarch64/hevcdsp_sao_neon.S | 87 +++ 3 files changed, 96 insertions(+)

Re: [FFmpeg-devel] [PATCH] avfilter: add monochrome video filter

2021-02-11 Thread Paul B Mahol
Will apply soon. ___ 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] [RFC][v4] Tech Resolution Process

2021-02-11 Thread Jean-Baptiste Kempf
--- doc/dev_community/resolution_process.md | 91 + 1 file changed, 91 insertions(+) create mode 100644 doc/dev_community/resolution_process.md diff --git a/doc/dev_community/resolution_process.md b/doc/dev_community/resolution_process.md new file mode 100644 index 0

[FFmpeg-devel] [PATCH v5 07/10] avcodec: add vvc parser

2021-02-11 Thread Nuo Mi
--- configure | 1 + libavcodec/Makefile | 1 + libavcodec/parsers.c| 1 + libavcodec/vvc_parser.c | 310 4 files changed, 313 insertions(+) create mode 100644 libavcodec/vvc_parser.c diff --git a/configure b/configure index 11

[FFmpeg-devel] [PATCH v5 06/10] avcodec/h2645_parse: add nal header parser for h266/vvc

2021-02-11 Thread Nuo Mi
--- libavcodec/h2645_parse.c | 74 ++-- 1 file changed, 71 insertions(+), 3 deletions(-) diff --git a/libavcodec/h2645_parse.c b/libavcodec/h2645_parse.c index a36ef4f5a0..35f9d035a9 100644 --- a/libavcodec/h2645_parse.c +++ b/libavcodec/h2645_parse.c @@ -1,5 +

[FFmpeg-devel] [PATCH v5 10/10] avcodec: add vvc metadata bsf

2021-02-11 Thread Nuo Mi
We run following command with all 265 VTM-11.0 clips: ffmpeg -i in.bit -c:v copy -bsf vvc_metadata -f vvc out.bit The output bitstream can get same yuv as the origin. --- configure | 1 + libavcodec/Makefile| 1 + libavcodec/bitstream_filters.c | 1 + libav

[FFmpeg-devel] [PATCH v5 00/10] add vvc raw demuxer, muxer, parser, metadata bsf

2021-02-11 Thread Nuo Mi
Major changes since v4: * Remove active_xps in CodedBitstreamH266Context * Add H266AuDetector in CodedBitstreamH266Context. It's needed by h266_metadata_update_fragment and cbs_h2645_unit_requires_zero_byte Misc: * Correct raw muxer extesion from .hevc to .vvc. * Fixed missed cbs_sei_h266_types i

[FFmpeg-devel] [PATCH v5 09/10] avcodec/cbs_h2645: vvc, do not skip nals for nuh_layer_id > 0

2021-02-11 Thread Nuo Mi
--- libavcodec/cbs_h2645.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c index 81177c1096..6dc4f79930 100644 --- a/libavcodec/cbs_h2645.c +++ b/libavcodec/cbs_h2645.c @@ -604,8 +604,9 @@ static int cbs_h2645_fragment_add_nals

[FFmpeg-devel] [PATCH v5 01/10] cbs_h2645: refact, use cbs_h2645_replace_ps to replace cbs_h26*_replace_*ps

2021-02-11 Thread Nuo Mi
From: Mark Thompson --- libavcodec/cbs_h2645.c | 171 +++-- 1 file changed, 130 insertions(+), 41 deletions(-) diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c index 6005d46e0d..36212d1da6 100644 --- a/libavcodec/cbs_h2645.c +++ b/libavcodec/cbs_h

[FFmpeg-devel] [PATCH v5 08/10] avformat: add h266/vvc muxer

2021-02-11 Thread Nuo Mi
--- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/rawenc.c | 25 + 3 files changed, 27 insertions(+) diff --git a/libavformat/Makefile b/libavformat/Makefile index 2b9d0eee7f..d3a755a47a 100644 --- a/libavformat/Makefile +++ b/libavforma

[FFmpeg-devel] [PATCH v5 02/10] avcodec/vvc: add shared header for vvc

2021-02-11 Thread Nuo Mi
--- libavcodec/vvc.h | 142 +++ 1 file changed, 142 insertions(+) create mode 100644 libavcodec/vvc.h diff --git a/libavcodec/vvc.h b/libavcodec/vvc.h new file mode 100644 index 00..ca15297d7a --- /dev/null +++ b/libavcodec/vvc.h @@ -0,0 +1,142

[FFmpeg-devel] [PATCH v5 04/10] cbs_h2645: refact, allow INVALID_OFFSET for id_offset and active_offset

2021-02-11 Thread Nuo Mi
--- libavcodec/cbs_h2645.c | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c index 36212d1da6..fdc527f8e8 100644 --- a/libavcodec/cbs_h2645.c +++ b/libavcodec/cbs_h2645.c @@ -664,6 +664,7 @@ static int cbs_h2

Re: [FFmpeg-devel] [PATCH] avcodec/hevcdec: check that the local context list exists before dereferencing it

2021-02-11 Thread Nuo Mi
hevcdec and pthread_slice has some memory manage issues. 1. hls_slice_data_wpp did not check the return value of ff_alloc_entries and av_malloc. 2. ff_alloc_entries did not check the return value of pthread_cond_init and pthread_mutex_init 2. Even hls_slice_data_wpp return some error for memory all

[FFmpeg-devel] [PATCH v5 03/10] avformat: add vvc raw demux

2021-02-11 Thread Nuo Mi
--- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/vvcdec.c | 61 3 files changed, 63 insertions(+) create mode 100644 libavformat/vvcdec.c diff --git a/libavformat/Makefile b/libavformat/Makefile index 10fee749c8..2b9d0

[FFmpeg-devel] [PATCH] avcodec/hevcdec: add some missing allocation checks

2021-02-11 Thread James Almer
Signed-off-by: James Almer --- libavcodec/hevcdec.c | 25 +++-- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index 898dac8cbb..325c7850e6 100644 --- a/libavcodec/hevcdec.c +++ b/libavcodec/hevcdec.c @@ -515,6 +515,9

Re: [FFmpeg-devel] [PATCH] avcodec/hevcdec: add some missing allocation checks

2021-02-11 Thread Paul B Mahol
probably ok ___ 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] avcodec/pthread_frame: Fix checks and cleanup during init

2021-02-11 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Up until now, ff_frame_thread_init had several bugs: > 1. It did not check whether the condition and mutexes >could be successfully created. > 2. In case an error happened when setting up the child threads, >ff_frame_thread_free is called to clean up all threads set up

[FFmpeg-devel] [PATCH] avcodec/pthread_frame: Fix checks and cleanup during init

2021-02-11 Thread Andreas Rheinhardt
Up until now, ff_frame_thread_init had several bugs: 1. It did not check whether the condition and mutexes could be successfully created. 2. In case an error happened when setting up the child threads, ff_frame_thread_free is called to clean up all threads set up so far, including the curr

Re: [FFmpeg-devel] [PATCH] avcodec/hevcdec: check that the local context list exists before dereferencing it

2021-02-11 Thread James Almer
On 2/10/2021 8:59 PM, Paul B Mahol wrote: On Wed, Feb 10, 2021 at 6:57 PM Andreas Rheinhardt < andreas.rheinha...@gmail.com> wrote: James Almer: Since the decoder is not flagged as init cleanup capable, hevc_decode_free() is being called manually if the hevc_decode_extradata() call fails at

[FFmpeg-devel] [PATCH 2/2] avcodec/dpx: add support for other single component 8bit files

2021-02-11 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavcodec/dpx.c | 8 1 file changed, 8 insertions(+) diff --git a/libavcodec/dpx.c b/libavcodec/dpx.c index 702caa385e..5372e3d586 100644 --- a/libavcodec/dpx.c +++ b/libavcodec/dpx.c @@ -497,6 +497,14 @@ static int decode_frame(AVCodecContext *avctx,

[FFmpeg-devel] [PATCH 1/2] avcodec/dpx: add float support for single components and rgb(a)

2021-02-11 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavcodec/dpx.c | 71 +--- 1 file changed, 67 insertions(+), 4 deletions(-) diff --git a/libavcodec/dpx.c b/libavcodec/dpx.c index 12bc165415..702caa385e 100644 --- a/libavcodec/dpx.c +++ b/libavcodec/dpx.c @@ -159,8 +1

[FFmpeg-devel] [PATCH v2] avfilter/vf_zscale: add support for setting scaling filter parameters

2021-02-11 Thread Jan Ekström
param_a/b are utilized for this. --- Changes from v1: * Documentation was added. * The author of the zimg library noted that the bicubic parameters technically can go negative. Thus the range is -DBL_MAX to DBL_MAX. --- doc/filters.texi| 7 +++ libavfilter/vf_zscale.c | 7 +++

Re: [FFmpeg-devel] [PATCH] avcodec/hevcdec: add some missing allocation checks

2021-02-11 Thread James Almer
On 2/11/2021 12:57 PM, Paul B Mahol wrote: probably ok Applied. Thanks. ___ 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

Re: [FFmpeg-devel] [PATCH v2] avfilter/vf_zscale: add support for setting scaling filter parameters

2021-02-11 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 v2] avfilter/vf_zscale: add support for setting scaling filter parameters

2021-02-11 Thread Jan Ekström
On Thu, Feb 11, 2021 at 8:31 PM Paul B Mahol wrote: > > lgtm Thanks, applied as 58e59396f5fe93f0606dc458d84c609b5d23ea1c . Jan ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit

Re: [FFmpeg-devel] [PATCH] libavcodec/hevcdsp: port SIMD idct functions from 32-bit.

2021-02-11 Thread Reimar Döffinger
Hi Martin! > On 10 Feb 2021, at 22:53, Martin Storsjö wrote: > > +.macro idct_16x16 bitdepth > +function ff_hevc_idct_16x16_\bitdepth\()_neon, export=1 > +//r0 - coeffs > +mov x15, lr > + Binutils doesn't recognize "lr" as alias for x30 >>> It didn’t

Re: [FFmpeg-devel] [PATCH] avdevice/avdevice: Deprecate AVDevice Capabilities API

2021-02-11 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Anton Khirnov: >> Quoting Andreas Rheinhardt (2021-02-09 09:04:23) >>> Can I get an update on how to proceed with this patch? >> >> It doesn't seem that anyone actually objected to this patch, so go ahead >> and push IMO. >> >>> >>> - Andreas >>> >>> PS: I could already remove

[FFmpeg-devel] Avoid a decoded frame copy in mmaldec for raspberrypi

2021-02-11 Thread Lluís Batlle i Rossell
Hello, I needed to acquire mjpeg from a v4l2 uvc webcam in a Raspberry pi, and I saw mmaldec lacked mjpeg and also was doing an unnecessary copy. I used two patches I found in the mailing list archives to enable mjpeg mmaldec and then wrote one that avoids the copy. It works fine for me but I hav

[FFmpeg-devel] [PATCH 3/4] avcodec/sonic: Use unsigned temporary in predictor_calc_error()

2021-02-11 Thread Michael Niedermayer
Fixes: signed integer overflow: -2147471366 - 18638 cannot be represented in type 'int' Fixes: 30157/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SONIC_fuzzer-5171199746506752 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by:

[FFmpeg-devel] [PATCH 4/4] avformat/r3d: Check samples before computing duration

2021-02-11 Thread Michael Niedermayer
Fixes: signed integer overflow: -4611686024827895807 + -4611686016279904256 cannot be represented in type 'long' Fixes: 30161/clusterfuzz-testcase-minimized-ffmpeg_dem_R3D_fuzzer-5694406713802752 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg

[FFmpeg-devel] [PATCH 1/4] avcodec/pnm_parser: Check av_image_get_buffer_size() for failure

2021-02-11 Thread Michael Niedermayer
Fixes: out of array access Fixes: 30135/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PBM_fuzzer-4997145650397184 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/pnm_parser.c | 6 -- 1

[FFmpeg-devel] [PATCH 2/4] avcodec/mv30: Check available space in decode_intra() more completly

2021-02-11 Thread Michael Niedermayer
Fixes: Timeout (>10sec -> instantaneous) Fixes: 30147/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MV30_fuzzer-5549246684200960 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/mv30.c | 2

Re: [FFmpeg-devel] [PATCH 1/4] avcodec/pnm_parser: Check av_image_get_buffer_size() for failure

2021-02-11 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 4/4] avformat/r3d: Check samples before computing duration

2021-02-11 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 2/4] avcodec/mv30: Check available space in decode_intra() more completly

2021-02-11 Thread Paul B Mahol
this is hack ___ 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 0/3] mjpeg_mmal and avoid a frame copy in mmaldec

2021-02-11 Thread Lluís Batlle i Rossel
From: Lluís Batlle i Rossell I needed to acquire mjpeg from a v4l2 uvc webcam in a Raspberry pi, and I saw mmaldec lacked mjpeg and also was doing an unnecessary copy.

[FFmpeg-devel] [PATCH 1/3] libavcodec/mmaldec: enable MJPEG decoding

2021-02-11 Thread Lluís Batlle i Rossel
From: Lluís Batlle i Rossell From: Cosmin Gorgovan --- configure | 1 + libavcodec/allcodecs.c | 1 + libavcodec/mmaldec.c | 4 3 files changed, 6 insertions(+) diff --git a/configure b/configure index a76c2ec4ae..048bedb589 100755 --- a/configure +++ b/configure @@ -3105,

[FFmpeg-devel] [PATCH 2/3] libavcodec/mmaldec: continue after receiving EOS without having sent one

2021-02-11 Thread Lluís Batlle i Rossel
From: Lluís Batlle i Rossell From: Cosmin Gorgovan The previous logic in mmaldec was causing the MMAL MJPEG decoder to stop if it received an invalid frame - which happened to be the first frame received from a UVC camera via V4L2 in my application --- libavcodec/mmaldec.c | 8 ++-- 1 file

[FFmpeg-devel] [PATCH 3/3] mmaldec with plain yuv420p without copy

2021-02-11 Thread Lluís Batlle i Rossel
From: Lluís Batlle i Rossell --- libavcodec/mmaldec.c | 48 1 file changed, 22 insertions(+), 26 deletions(-) diff --git a/libavcodec/mmaldec.c b/libavcodec/mmaldec.c index 4dfaacbb41..097b990f92 100644 --- a/libavcodec/mmaldec.c +++ b/libavcodec/mma

Re: [FFmpeg-devel] [PATCH 1/4] avcodec/pnm_parser: Check av_image_get_buffer_size() for failure

2021-02-11 Thread Michael Niedermayer
On Thu, Feb 11, 2021 at 10:27:58PM +0100, Paul B Mahol wrote: > lgtm will apply thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Avoid a single point of failure, be that a person or equipment. signature.asc Description: PGP signature __

[FFmpeg-devel] [PATCH] avcodec/pngdec: fix possible race condition with APNG decoding

2021-02-11 Thread Paul B Mahol
Fixes #9017 Signed-off-by: Paul B Mahol --- libavcodec/pngdec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c index 395b86bbe7..61642b7cbe 100644 --- a/libavcodec/pngdec.c +++ b/libavcodec/pngdec.c @@ -711,13 +711,13 @@ static i

Re: [FFmpeg-devel] [PATCH] libsvtav1: Add logical_processors option

2021-02-11 Thread Mark Thompson
On 10/02/2021 23:53, Paul B Mahol wrote: On Wed, Feb 10, 2021 at 11:08 PM Mark Thompson wrote: On 10/02/2021 17:16, Christopher Degawa wrote: From: Christopher Degawa Equivalent to the --lp option for SvtAv1EncApp, and is the only way to control how much cpu power svt-av1 uses for now Not

Re: [FFmpeg-devel] [PATCH 1/3] libavcodec/mmaldec: enable MJPEG decoding

2021-02-11 Thread Mark Thompson
On 11/02/2021 21:48, Lluís Batlle i Rossel wrote: From: Lluís Batlle i Rossell From: Cosmin Gorgovan --- configure | 1 + libavcodec/allcodecs.c | 1 + libavcodec/mmaldec.c | 4 3 files changed, 6 insertions(+) diff --git a/configure b/configure index a76c2ec4ae..048

Re: [FFmpeg-devel] [PATCH] libsvtav1: Add logical_processors option

2021-02-11 Thread Mark Thompson
On 10/02/2021 23:49, Christopher Degawa wrote: Based on my limited understanding of the code, it's limiting the usage using pthread_setaffinity_np and CPU_SET on Linux to limit the process to certain CPUs, but it also has a default and max of the return of `sysconf(_SC_NPROCESSORS_ONLN)`. Accordi

Re: [FFmpeg-devel] [PATCH] libsvtav1: Add logical_processors option

2021-02-11 Thread Paul B Mahol
On Thu, Feb 11, 2021 at 11:15 PM Mark Thompson wrote: > On 10/02/2021 23:53, Paul B Mahol wrote: > > On Wed, Feb 10, 2021 at 11:08 PM Mark Thompson wrote: > > > >> On 10/02/2021 17:16, Christopher Degawa wrote: > >>> From: Christopher Degawa > >>> > >>> Equivalent to the --lp option for SvtAv1E

Re: [FFmpeg-devel] [PATCH 3/3] mmaldec with plain yuv420p without copy

2021-02-11 Thread Mark Thompson
On 11/02/2021 21:48, Lluís Batlle i Rossel wrote: From: Lluís Batlle i Rossell --- libavcodec/mmaldec.c | 48 1 file changed, 22 insertions(+), 26 deletions(-) diff --git a/libavcodec/mmaldec.c b/libavcodec/mmaldec.c index 4dfaacbb41..097b990f92

[FFmpeg-devel] [PATCH 1/3] avformat/electronicarts: Clear partial_packet on error

2021-02-11 Thread Michael Niedermayer
Fixes: Infinite loop Fixes: 30165/clusterfuzz-testcase-minimized-ffmpeg_dem_EA_fuzzer-6224642371092480 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavformat/electronicarts.c | 1 + 1 file changed,

[FFmpeg-devel] [PATCH 3/3] avformat/flvdec: Check array entry number

2021-02-11 Thread Michael Niedermayer
Fixes: signed integer overflow: -2147483648 - 1 cannot be represented in type 'int' Fixes: 30209/clusterfuzz-testcase-minimized-ffmpeg_dem_FLV_fuzzer-5724831658147840 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niede

[FFmpeg-devel] [PATCH 2/3] avformat/jacosubdec: Use 64bit intermediate for start/end timestamp shift

2021-02-11 Thread Michael Niedermayer
Fixes: signed integer overflow: -1957694447 + -1620425806 cannot be represented in type 'int' Fixes: 30207/clusterfuzz-testcase-minimized-ffmpeg_dem_JACOSUB_fuzzer-5050791771635712 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by:

Re: [FFmpeg-devel] [PATCH 1/3] avformat/electronicarts: Clear partial_packet on error

2021-02-11 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/3] libavcodec/mmaldec: enable MJPEG decoding

2021-02-11 Thread Lluís Batlle i Rossell
On Thu, Feb 11, 2021 at 10:19:01PM +, Mark Thompson wrote: > On 11/02/2021 21:48, Lluís Batlle i Rossel wrote: > > From: Lluís Batlle i Rossell > > > > From: Cosmin Gorgovan > > > > --- > > configure | 1 + > > libavcodec/allcodecs.c | 1 + > > libavcodec/mmaldec.c | 4 ++

Re: [FFmpeg-devel] [PATCH 3/3] mmaldec with plain yuv420p without copy

2021-02-11 Thread Lluís Batlle i Rossell
On Thu, Feb 11, 2021 at 10:34:11PM +, Mark Thompson wrote: > On 11/02/2021 21:48, Lluís Batlle i Rossel wrote: > > From: Lluís Batlle i Rossell > > > > + > > Random whitespace change? likely. I can fix that. > > > if (!ref) > > return AVERROR(ENOMEM); > > @@ -140,8 +141,19

[FFmpeg-devel] [PATCH] avcodec/dpx: check for possible buffer overreads

2021-02-11 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavcodec/dpx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/dpx.c b/libavcodec/dpx.c index 5372e3d586..68a2762017 100644 --- a/libavcodec/dpx.c +++ b/libavcodec/dpx.c @@ -606,6 +606,9 @@ static int decode_frame(AVCodecContext *avctx, f

[FFmpeg-devel] [PATCH]lavc/pnm: Support decoding gray float pbm images.

2021-02-11 Thread Carl Eugen Hoyos
Hi! Attached patch allows to decode gray float pbm images, sample by ami_stuff. Please comment, Carl Eugen From 71283c6de2eb5ef45382390d695845abb500b316 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Thu, 11 Feb 2021 23:37:06 +0100 Subject: [PATCH] lavc/pnm: Allow decoding of gray float p

Re: [FFmpeg-devel] [PATCH]lavc/pnm: Support decoding gray float pbm images.

2021-02-11 Thread Paul B Mahol
This is variant of PFM images, PBM image format is only fixed point gray. ___ 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 wi

Re: [FFmpeg-devel] [PATCH]lavc/pnm: Support decoding gray float pbm images.

2021-02-11 Thread Carl Eugen Hoyos
Am Fr., 12. Feb. 2021 um 00:18 Uhr schrieb Paul B Mahol : > > This is variant of PFM images, PBM image format is only fixed point gray. Should I change the commit message or the patch? Thank you, Carl Eugen ___ ffmpeg-devel mailing list ffmpeg-devel@ffm

Re: [FFmpeg-devel] [PATCH]lavc/pnm: Support decoding gray float pbm images.

2021-02-11 Thread Paul B Mahol
On Fri, Feb 12, 2021 at 12:21 AM Carl Eugen Hoyos wrote: > Am Fr., 12. Feb. 2021 um 00:18 Uhr schrieb Paul B Mahol >: > > > > This is variant of PFM images, PBM image format is only fixed point gray. > > Should I change the commit message or the patch? > commit message > > Thank you, Carl Eug

Re: [FFmpeg-devel] [PATCH] avcodec/hevcdec: add some missing allocation checks

2021-02-11 Thread Nuo Mi
On Thu, Feb 11, 2021 at 11:49 PM James Almer wrote: > Signed-off-by: James Almer > --- > libavcodec/hevcdec.c | 25 +++-- > 1 file changed, 19 insertions(+), 6 deletions(-) > > diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c > index 898dac8cbb..325c7850e6 100644 > -

Re: [FFmpeg-devel] [PATCH] avcodec/hevcdec: check that the local context list exists before dereferencing it

2021-02-11 Thread Nuo Mi
On Fri, Feb 12, 2021 at 12:19 AM James Almer wrote: > > >>> Signed-off-by: James Almer > >>> --- > >>> Maybe ff_frame_thread_free() should not call AVCodec->close() for > thread > >> contexts > >>> where AVCodec->init() failed and FF_CODEC_CAP_INIT_CLEANUP is not set? > >>> > >> > >> Fixing this

Re: [FFmpeg-devel] [PATCH] avcodec/pthread_frame: Fix checks and cleanup during init

2021-02-11 Thread Nuo Mi
On Fri, Feb 12, 2021 at 12:06 AM Andreas Rheinhardt < andreas.rheinha...@gmail.com> wrote: > Up until now, ff_frame_thread_init had several bugs: > 1. It did not check whether the condition and mutexes >could be successfully created. > 2. In case an error happened when setting up the child thr

[FFmpeg-devel] [PATCH] libavcodec/adts_header: add frame_length field and avpriv function to parse AAC ADTS header

2021-02-11 Thread Nachiket Tarate
These will be used by HLS demuxer in case of SAMPLE-AES decryption. Signed-off-by: Nachiket Tarate --- libavcodec/adts_header.c | 1 + libavcodec/adts_header.h | 14 ++ libavcodec/adts_parser.c | 28 3 files changed, 43 insertions(+) diff --git a/libavc