Re: [FFmpeg-devel] [PATCH 5/6] avformat/movenc: utilize existing AC-3 parsing workflow for AC-3

2022-06-21 Thread Andreas Rheinhardt
Jan Ekström: > On Mon, Jun 20, 2022 at 12:10 PM Andreas Rheinhardt > wrote: >> >> Jan Ekström: >>> From: Jan Ekström >>> >>> Signed-off-by: Jan Ekström >>> --- >>> libavformat/Makefile | 1 + >>> libavformat/ac3_bitrate_tab.c | 22 ++ >>> libavformat/movenc.c | 55

[FFmpeg-devel] [PATCH] avfilter: add 3D scope multimedia filter

2022-06-21 Thread Paul B Mahol
Hello, Patch attached. From cef05f80e4a86fe0869b16bed9fe15ab2882b7a9 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Fri, 17 Jun 2022 18:27:19 +0200 Subject: [PATCH] avfilter: add 3D scope multimedia filter Signed-off-by: Paul B Mahol --- doc/filters.texi | 55 ++ libavfilter/

Re: [FFmpeg-devel] [PATCH] Make execute() and execute2() return FFMIN() of thread return codes

2022-06-21 Thread Tomas Härdin
lör 2022-06-18 klockan 16:38 +0200 skrev Anton Khirnov: > Quoting Tomas Härdin (2022-06-17 11:42:25) > > fre 2022-06-17 klockan 01:38 +0200 skrev Michael Niedermayer: > > > On Thu, Jun 16, 2022 at 11:04:01PM +0200, Tomas Härdin wrote: > > > > tor 2022-06-16 klockan 20:27 +0200 skrev Michael Niederm

Re: [FFmpeg-devel] [PATCH] Make execute() and execute2() return FFMIN() of thread return codes

2022-06-21 Thread Anton Khirnov
Quoting Tomas Härdin (2022-06-21 09:51:55) > lör 2022-06-18 klockan 16:38 +0200 skrev Anton Khirnov: > > Quoting Tomas Härdin (2022-06-17 11:42:25) > > > fre 2022-06-17 klockan 01:38 +0200 skrev Michael Niedermayer: > > > > On Thu, Jun 16, 2022 at 11:04:01PM +0200, Tomas Härdin wrote: > > > > > tor

Re: [FFmpeg-devel] [PATCH 09/13] lavc/jpeg2000: Speed up ff_jpeg2000_tag_tree_init() using stereotypes for sizes <= 4x4

2022-06-21 Thread Tomas Härdin
lör 2022-06-18 klockan 17:00 +0200 skrev Anton Khirnov: > Quoting Tomas Härdin (2022-06-14 16:43:38) > > > > +    if (w <= 4 && h <= 4) { > > +    int idx = w-1 + (h-1)*4; > > +    size_t sz = tt_sizes[idx]; > > +    av_fast_malloc(old, size, sz); > > Unchecked mallocs are of the beas

Re: [FFmpeg-devel] [PATCH 06/13] lavu/mem: Add ff_fast_recalloc()

2022-06-21 Thread Tomas Härdin
lör 2022-06-18 klockan 16:57 +0200 skrev Anton Khirnov: > Quoting Tomas Härdin (2022-06-16 14:44:45) > > ons 2022-06-15 klockan 09:15 -0300 skrev James Almer: > > > On 6/15/2022 6:59 AM, Tomas Härdin wrote: > > > > tis 2022-06-14 klockan 22:26 +0200 skrev Michael Niedermayer: > > > > > On Tue, Jun

Re: [FFmpeg-devel] [PATCH] Make execute() and execute2() return FFMIN() of thread return codes

2022-06-21 Thread Tomas Härdin
tis 2022-06-21 klockan 09:55 +0200 skrev Anton Khirnov: > Quoting Tomas Härdin (2022-06-21 09:51:55) > > lör 2022-06-18 klockan 16:38 +0200 skrev Anton Khirnov: > > > Quoting Tomas Härdin (2022-06-17 11:42:25) > > > > fre 2022-06-17 klockan 01:38 +0200 skrev Michael Niedermayer: > > > > > On Thu, J

Re: [FFmpeg-devel] [PATCH v3 3/5] avcodec/avs2_parser: parse more info

2022-06-21 Thread zhilizhao(赵志立)
> On Jun 21, 2022, at 10:45 AM, hwren wrote: > > At 2022-06-13 11:36:34, "Zhao Zhili" wrote: >> Including video resolution, framerate and picture type, etc. >> >> Signed-off-by: Zhao Zhili >> --- >> libavcodec/Makefile | 2 +- >> libavcodec/avs2.c| 42 >> libav

Re: [FFmpeg-devel] [PATCH v3 3/5] avcodec/avs2_parser: parse more info

2022-06-21 Thread zhilizhao(赵志立)
> On Jun 21, 2022, at 4:25 PM, zhilizhao(赵志立) wrote: > >> On Jun 21, 2022, at 10:45 AM, hwren wrote: >> >> At 2022-06-13 11:36:34, "Zhao Zhili" wrote: >>> Including video resolution, framerate and picture type, etc. >>> >>> Signed-off-by: Zhao Zhili >>> --- >>> libavcodec/Makefile |

Re: [FFmpeg-devel] [PATCH v3 3/5] avcodec/avs2_parser: parse more info

2022-06-21 Thread hwren
在 2022-06-21 16:28:37,"\"zhilizhao(赵志立)\"" 写道: > > >> On Jun 21, 2022, at 4:25 PM, zhilizhao(赵志立) wrote: >> >>> On Jun 21, 2022, at 10:45 AM, hwren wrote: >>> >>> At 2022-06-13 11:36:34, "Zhao Zhili" wrote: Including video resolution, framerate and picture type, etc. >

[FFmpeg-devel] [PATCH v2] libavcodec/qsvenc: Enable fixed QP configure in qsv CQP runtime

2022-06-21 Thread Wenbin Chen
From: Yue Heng Enable dynamic QP configuration in runtime on qsv encoder. Through AVFrame->metadata, we can set key "qsv_config_qp" to change QP configuration when we encode video in CQP mode. Signed-off-by: Yue Heng Signed-off-by: Wenbin Chen --- doc/encoders.texi | 10 + libavcodec/qs

Re: [FFmpeg-devel] [PATCH v20 1/5] libavutil: Add wchartoutf8(), wchartoansi(), utf8toansi(), getenv_utf8(), freeenv_utf8() and getenv_dup()

2022-06-21 Thread Martin Storsjö
On Mon, 20 Jun 2022, Martin Storsjö wrote: On Mon, 20 Jun 2022, Nil Admirari wrote: wchartoutf8() converts strings returned by WinAPI into UTF-8, which is FFmpeg's preffered encoding. Some external dependencies, such as AviSynth, are still not Unicode-enabled. utf8toansi() converts UTF-8 stri

Re: [FFmpeg-devel] [PATCH 5/6] avformat/movenc: utilize existing AC-3 parsing workflow for AC-3

2022-06-21 Thread Jan Ekström
On Tue, Jun 21, 2022 at 10:30 AM Andreas Rheinhardt wrote: > > Jan Ekström: > > On Mon, Jun 20, 2022 at 12:10 PM Andreas Rheinhardt > > wrote: > >> > >> Jan Ekström: > >>> From: Jan Ekström > >>> > >>> Signed-off-by: Jan Ekström > >>> --- > >>> libavformat/Makefile | 1 + > >>> libav

Re: [FFmpeg-devel] [PATCH 3/6] avformat/matroskaenc: Split updating CodecPrivate from writing it

2022-06-21 Thread Michael Niedermayer
On Tue, Jun 21, 2022 at 04:34:15AM +0200, Andreas Rheinhardt wrote: > Up until now, updating extradata was very ad-hoc: The amount of > space reserved for extradata was not recorded when writing the > header; instead the AAC code simply presumed that it was enough. > This commit changes this by rec

Re: [FFmpeg-devel] [PATCH] lavc/dovi_rpu: Fix UB for possible left shift of negative values

2022-06-21 Thread Thilo Borgmann
Am 20.06.22 um 11:06 schrieb Thilo Borgmann: Am 16.06.22 um 13:19 schrieb Thilo Borgmann: Am 16.06.22 um 12:40 schrieb Andreas Rheinhardt: Thilo Borgmann: Am 16.06.22 um 12:13 schrieb Andreas Rheinhardt: Thilo Borgmann: diff --git a/libavcodec/dovi_rpu.c b/libavcodec/dovi_rpu.c index a87562c

Re: [FFmpeg-devel] [PATCH] avformat/movenc: Support alpha channel for AVIF

2022-06-21 Thread Vignesh Venkatasubramanian
On Mon, Jun 13, 2022 at 10:17 AM James Zern wrote: > > On Wed, Jun 1, 2022 at 11:06 AM Vignesh Venkatasubramanian > wrote: > > > > AVIF specification allows for alpha channel as an auxiliary item (in > > case of still images) or as an auxiliary track (in case of animated > > images). Add support

Re: [FFmpeg-devel] [PATCH] avformat/mov: Only read the primary item for AVIF

2022-06-21 Thread Vignesh Venkatasubramanian
On Mon, Jun 13, 2022 at 9:32 AM Vignesh Venkatasubramanian wrote: > > On Fri, Jun 10, 2022 at 10:34 AM Vignesh Venkatasubramanian > wrote: > > > > On Thu, Jun 9, 2022 at 12:50 AM Gyan Doshi wrote: > > > > > > > > > > > > On 2022-06-08 10:51 pm, Vignesh Venkatasubramanian wrote: > > > > On Thu, J

Re: [FFmpeg-devel] [PATCH v3 1/1] lavc/aarch64: motion estimation functions in neon

2022-06-21 Thread Martin Storsjö
On Sat, 18 Jun 2022, Swinney, Jonathan wrote: - ff_pix_abs16_neon - ff_pix_abs16_xy2_neon In direct micro benchmarks of these ff functions verses their C implementations, these functions performed as follows on AWS Graviton 3. ff_pix_abs16_neon: pix_abs_0_0_c: 135.3 pix_abs_0_0_neon: 22.0 ff_

[FFmpeg-devel] [PATCH] fftools/ffplay: fix YUV conversion mode

2022-06-21 Thread Niklas Haas
From: Niklas Haas GL and Metal cache the state at time of texture creation. GLES2 and Direct3D 11 use the state at time of the render copy call. So the only way we can get the correct behavior consistently is by making sure the state is set for both the upload *and* the draw call. This probably

Re: [FFmpeg-devel] [PATCH 0/2] checkasm: updated tests for sw_scale

2022-06-21 Thread Martin Storsjö
On Mon, 13 Jun 2022, Swinney, Jonathan wrote: Here is an updated patch series for the yuv2plane[X|1] implementations and tests. The checkasm test wasn't working at all for aarch64, and the x86_64 behavior differs from the default implementation so I had to include some code to specialize the t

Re: [FFmpeg-devel] [PATCH 1/2] checkasm: updated tests for sw_scale

2022-06-21 Thread Martin Storsjö
On Mon, 13 Jun 2022, Swinney, Jonathan wrote: - added a test for yuv2plane1 (currently disabled for x86_64) What's the reason for having it disabled for x86 - is it another case where the current implementations there aren't bitexact? Could we avoid that by setting the bitexact flag for the

Re: [FFmpeg-devel] [PATCH 2/2] swscale/aarch64: add vscale specializations

2022-06-21 Thread Martin Storsjö
On Mon, 13 Jun 2022, Swinney, Jonathan wrote: This commit adds new code paths for vscale when filterSize is 2, 4, or 8. By using specialized code with unrolling to match the filterSize we can improve performance. This patch also corrects the behavor for filterSize 1 which was previously failing

Re: [FFmpeg-devel] [PATCH 3/6] avformat/matroskaenc: Split updating CodecPrivate from writing it

2022-06-21 Thread Andreas Rheinhardt
Michael Niedermayer: > On Tue, Jun 21, 2022 at 04:34:15AM +0200, Andreas Rheinhardt wrote: >> Up until now, updating extradata was very ad-hoc: The amount of >> space reserved for extradata was not recorded when writing the >> header; instead the AAC code simply presumed that it was enough. >> This

Re: [FFmpeg-devel] [PATCH 5/6] avformat/movenc: utilize existing AC-3 parsing workflow for AC-3

2022-06-21 Thread Andreas Rheinhardt
Jan Ekström: > On Tue, Jun 21, 2022 at 10:30 AM Andreas Rheinhardt > wrote: >> >> Jan Ekström: >>> On Mon, Jun 20, 2022 at 12:10 PM Andreas Rheinhardt >>> wrote: Jan Ekström: > From: Jan Ekström > > Signed-off-by: Jan Ekström > --- > libavformat/Makefile

Re: [FFmpeg-devel] [PATCH] avformat/hls: Limit start_seq_no to one bit less

2022-06-21 Thread Michael Niedermayer
On Fri, Jun 17, 2022 at 01:15:22AM +0200, Michael Niedermayer wrote: > This avoids overflow checks on additions with 32bit numbers > > Fixes: signed integer overflow: 9223372036854775806 + 2 cannot be represented > in type 'long' > Fixes: > 44012/clusterfuzz-testcase-minimized-ffmpeg_dem_HLS_fuz

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/jpeglsdec: fix end check for xfrm

2022-06-21 Thread Michael Niedermayer
On Thu, Jun 09, 2022 at 11:37:39PM +0200, Michael Niedermayer wrote: > Fixes: out of array access > Fixes: > 47871/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AMV_fuzzer-5646305956855808 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmp

Re: [FFmpeg-devel] [PATCH 3/3] avcodec/cdgraphics: limit scrolling to the line

2022-06-21 Thread Michael Niedermayer
On Thu, Jun 09, 2022 at 11:37:41PM +0200, Michael Niedermayer wrote: > Fixes: out of array access > Fixes: > 47877/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CDGRAPHICS_fuzzer-5690504626438144 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projec

[FFmpeg-devel] [PATCH 1/3] avcodec/hcadec: Don't use GetBit-API for byte-aligned reads

2022-06-21 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/hcadec.c | 80 ++--- 1 file changed, 39 insertions(+), 41 deletions(-) diff --git a/libavcodec/hcadec.c b/libavcodec/hcadec.c index 4e84942bb9..73ff62139d 100644 --- a/libavcodec/hcadec.c +++ b/libavcodec/hc

[FFmpeg-devel] [PATCH 2/3] avcodec/hcadec: Move transient GetBitContext to stack

2022-06-21 Thread Andreas Rheinhardt
This avoids keeping pointers to no longer valid data in the context. Signed-off-by: Andreas Rheinhardt --- libavcodec/hcadec.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/libavcodec/hcadec.c b/libavcodec/hcadec.c index 73ff62139d..7054575872 100644 --- a/l

[FFmpeg-devel] [PATCH 3/3] avcodec/hevc_ps: Don't use show_bits_long() unnecessarily

2022-06-21 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/hevc_ps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c index 764c4849ee..a955f585d9 100644 --- a/libavcodec/hevc_ps.c +++ b/libavcodec/hevc_ps.c @@ -659,7 +659,7 @@ static void deco

[FFmpeg-devel] [PATCH 1/3] Provided support for MPEG-5 EVC (Essential Video Coding) codec

2022-06-21 Thread Dawid Kozinski
Prerequisites that must be met before adding new codec - Added new entry to codec IDs list - Added new entry to the codec descriptor list - Bumped libavcodec minor version - Changes in Changelog and MAINTAINERS files Signed-off-by: Dawid Kozinski --- Changelog | 3 ++- MAINTAINERS

[FFmpeg-devel] [PATCH 2/3] Provided support for MPEG-5 EVC (Essential Video Coding) codec

2022-06-21 Thread Dawid Kozinski
- Added xeve encoder wrapper - Added xevd dencoder wrapper - Added documentation for xeve and xevd wrappers - Added parser for EVC format - Changes in project configuration file and libavcodec Makefile Signed-off-by: Dawid Kozinski --- configure | 8 + doc/decoders.texi

[FFmpeg-devel] [PATCH 3/3] Provided support for MPEG-5 EVC (Essential Video Coding) codec

2022-06-21 Thread Dawid Kozinski
- Added muxer for EVC format (MP4, raw) - Added demuxer for EVC format (MP4) - Added evc extension to the list of extensions for ff_mov_demuxer Signed-off-by: Dawid Kozinski --- doc/muxers.texi | 6 ++ libavformat/Makefile | 2 + libavformat/allformats.c | 2 + libavformat/evc

Re: [FFmpeg-devel] [PATCH 5/6] avformat/movenc: utilize existing AC-3 parsing workflow for AC-3

2022-06-21 Thread Jan Ekström
On Wed, Jun 22, 2022 at 1:05 AM Andreas Rheinhardt wrote: > > Jan Ekström: > > On Tue, Jun 21, 2022 at 10:30 AM Andreas Rheinhardt > > wrote: > >> > >> Jan Ekström: > >>> On Mon, Jun 20, 2022 at 12:10 PM Andreas Rheinhardt > >>> wrote: > > Jan Ekström: > > From: Jan Ekström >