Re: [FFmpeg-devel] [PATCH 22/36] fftools/ffmpeg: drop an obsolete hack

2023-05-25 Thread Wang, Fei W
On Wed, 2023-05-17 at 12:20 +0200, Anton Khirnov wrote: > This special handling for decoder flushing has not been needed since > af1761f7b5, as the filtergraph actually is drained after that commit. > --- > fftools/ffmpeg.c | 11 --- > 1 file changed, 11 deletions(-) > > diff --git a/ffto

Re: [FFmpeg-devel] [PATCH 1/3] avutil/dict: add av_dict_pop

2023-05-25 Thread Stefano Sabatini
On date Monday 2023-05-22 11:23:24 +0200, Marvin Scholz wrote: > On 22 May 2023, at 1:52, Stefano Sabatini wrote: > > > On date Monday 2023-05-01 13:44:54 +0200, Marvin Scholz wrote: > >> This new API allows to remove an entry and obtain ownership of the > >> key/value that was associated with the

Re: [FFmpeg-devel] [IMPORTANT] Missing documentation

2023-05-25 Thread Gyan Doshi
On 2023-05-26 11:18 am, Stefano Sabatini wrote: On date Sunday 2023-05-21 11:45:35 +0200, Paul B Mahol wrote: On 5/20/23, Gyan Doshi wrote: On 2023-05-20 05:20 pm, Paul B Mahol wrote: Hi, What is about muxer/demuxer documentation? More than half is not documented at all. I'm busy working

Re: [FFmpeg-devel] [IMPORTANT] Missing documentation

2023-05-25 Thread Stefano Sabatini
On date Sunday 2023-05-21 11:45:35 +0200, Paul B Mahol wrote: > On 5/20/23, Gyan Doshi wrote: > > > > On 2023-05-20 05:20 pm, Paul B Mahol wrote: > >> Hi, > >> > >> What is about muxer/demuxer documentation? More than half is not > >> documented at all. > >> > >> I'm busy working on other things,

[FFmpeg-devel] [PATCH 5/5] avcodec/hevc_refs: Check that nb_refs stays <= HEVC_MAX_REFS

2023-05-25 Thread Michael Niedermayer
Fixes: 58528/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HEVC_fuzzer-5834725318328320 Fixes: index 16 out of bounds for type 'int [16]' Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/he

[FFmpeg-devel] [PATCH 4/5] avcodec/hevcdec: Avoid null pointer dereferences in MC

2023-05-25 Thread Michael Niedermayer
Fixes: runtime error: pointer index expression with base 0x overflowed to 0xfff8 Fixes: 58440/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HEVC_fuzzer-5956015530311680 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpe

[FFmpeg-devel] [PATCH 3/5] avcodec/rka: Avoid undefined left shift

2023-05-25 Thread Michael Niedermayer
Fixes: left shift of 34136248 by 6 places cannot be represented in type 'int' Fixes: 58429/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RKA_fuzzer-5692211592560640 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Nied

[FFmpeg-devel] [PATCH 2/5] avcodec/takdsp: Fix integer overflows

2023-05-25 Thread Michael Niedermayer
Fixes: avcodec/takdsp.c:44:23: runtime error: signed integer overflow: -2097158 - 2147012608 cannot be represented in type 'int' Fixes: 58417/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TAK_fuzzer-526891966464 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tre

[FFmpeg-devel] [PATCH 1/5] avformat/mov: We do not support creation times of 300 billion years ago

2023-05-25 Thread Michael Niedermayer
Fixes: signed integer overflow: -9223372036854775808 - 2082844800 cannot be represented in type 'long' Fixes: 58384/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-6428383700713472 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-of

Re: [FFmpeg-devel] Add LSX optimization in avcodec and swscale.

2023-05-25 Thread Michael Niedermayer
On Mon, May 22, 2023 at 12:40:08PM +0800, Shiyou Yin wrote: > > > > 2023年5月20日 15:27,Hao Chen 写道: > > > > Retrigger the fate test. > > v1: Add LSX optimization in avcodec and swscale, due to the 2K series CPUs > > only support lsx. > > v2: Modified the implementation of some functions and adde

[FFmpeg-devel] [PATCH] lavc/pgssubdec: Correct rendering of palette updates.

2023-05-25 Thread cubicibo
Reference decoders (BD players) have a graphic plane to store the rendered output. That plane is only refreshed by a window segment. It is evaluated with the last palette and reused on palette updates. This patch adds a conditionally writable graphic plane. The decoder now differentiates appropria

Re: [FFmpeg-devel] [PATCH v3] avcodec/av1dec: convert to receive_frame()

2023-05-25 Thread James Almer
On 5/20/2023 4:00 PM, James Almer wrote: This removes the overhead of inserting the av1_frame_split bsf as part of the decoding process. Signed-off-by: James Almer --- configure | 2 +- libavcodec/av1dec.c | 77 ++--- libavcodec/av1dec.h |

[FFmpeg-devel] [PATCH v5] lavc/h264chroma: RISC-V V add motion compensation for 8x8 chroma blocks

2023-05-25 Thread Arnie Chang
Optimize the put and avg filtering for 8x8 chroma blocks Signed-off-by: Arnie Chang --- v5: Fix the mulw issue addressed during the v4 review checkasm: using random seed 1900907821 RVVi32: - h264chroma.chroma_mc [OK] checkasm: all 2 tests passed avg_h264_chroma_mc1_8_c: 1821.5 avg_h264_chroma_mc

[FFmpeg-devel] [PATCH v5 7/7] avutil/la: Add function performance testing

2023-05-25 Thread Hao Chen
From: yuanhecai This patch supports the use of the "checkasm --bench" testing feature on loongarch platform. Change-Id: I42790388d057c9ade0dfa38a19d9c1fd44ca0bc3 --- libavutil/loongarch/timer.h | 48 + libavutil/timer.h | 2 ++ 2 files changed, 50

[FFmpeg-devel] [PATCH v5 6/7] swscale/la: Add following builtin optimized functions

2023-05-25 Thread Hao Chen
From: Jin Bo yuv420_rgb24_lsx yuv420_bgr24_lsx yuv420_rgba32_lsx yuv420_argb32_lsx yuv420_bgra32_lsx yuv420_abgr32_lsx ./configure --disable-lasx ffmpeg -i ~/media/1_h264_1080p_30fps_3Mbps.mp4 -f rawvideo -pix_fmt rgb24 -y /dev/null -an before: 184fps after: 207fps --- libswscale/loongarch/Make

[FFmpeg-devel] [PATCH v5 4/7] avcodec/la: Add LSX optimization for h264 qpel.

2023-05-25 Thread Hao Chen
From: yuanhecai ./configure --disable-lasx ffmpeg -i 1_h264_1080p_30fps_3Mbps.mp4 -f rawvideo -y /dev/null -an before: 214fps after: 274fps --- libavcodec/loongarch/Makefile |2 + libavcodec/loongarch/h264qpel.S | 1686 + .../loongarch/h264qpel_

[FFmpeg-devel] [PATCH v5 3/7] avcodec/la: Add LSX optimization for h264 chroma and intrapred.

2023-05-25 Thread Hao Chen
From: Lu Wang ./configure --disable-lasx ffmpeg -i 1_h264_1080p_30fps_3Mbps.mp4 -f rawvideo -y /dev/null -an before: 199fps after: 214fps --- libavcodec/loongarch/Makefile |4 +- .../loongarch/h264_intrapred_init_loongarch.c | 18 +- libavcodec/loongarch/h264_intrapred_las

[FFmpeg-devel] [PATCH v5 1/7] avcodec/la: add LSX optimization for h264 idct.

2023-05-25 Thread Hao Chen
From: Shiyou Yin loongson_asm.S is LoongArch asm optimization helper. Add functions: ff_h264_idct_add_8_lsx ff_h264_idct8_add_8_lsx ff_h264_idct_dc_add_8_lsx ff_h264_idct8_dc_add_8_lsx ff_h264_idct_add16_8_lsx ff_h264_idct8_add4_8_lsx ff_h264_idct_add8_8_lsx ff_h264_idct_add8_422_

[FFmpeg-devel] Add LSX optimization in avcodec and swscale.

2023-05-25 Thread Hao Chen
v1: Add LSX optimization in avcodec and swscale, due to the 2K series CPUs only support lsx. v2: Modified the implementation of some functions and added support for the checkasm --bench feature. v3: Fix whitespace errors in patch. v4: Remove clobbering memory in libavutil/loongarch/timer.h v5: Fi

Re: [FFmpeg-devel] [FFmpeg-cvslog] avfilter/vf_subtitles: add wrap_unicode option

2023-05-25 Thread Gyan Doshi
On 2023-05-25 09:05 am, Zhao Zhili wrote: ffmpeg | branch: master | Zhao Zhili | Tue May 23 13:22:25 2023 +0800| [43ace8f2bc29faf335e31b9893e6b8928ba3f541] | committer: Zhao Zhili avfilter/vf_subtitles: add wrap_unicode option So CJK can be wrapped automatically. Signed-off-by: Zhao Zhil

Re: [FFmpeg-devel] [PATCH v5 4/5] lavfi/format: wrap auto filters into structures

2023-05-25 Thread Wu, Tong1
>Possibility for infinite loops? >In what cases this helps, have graphs examples to test? Now we only have scale filter that can be auto inserted. This patch set basically gives the potential capability to add more auto filters. An auto hwmap filter is introduced for now. It can be beneficia