Re: [FFmpeg-devel] [PATCH v5 1/1] avformat: Add IPFS protocol support.

2022-02-09 Thread Mark Gaiser
On Thu, Feb 10, 2022 at 2:15 AM Mark Gaiser wrote: > This patch adds support for: > - ffplay ipfs:// > - ffplay ipns:// > > IPFS data can be played from so called "ipfs gateways". > A gateway is essentially a webserver that gives access to the > distributed IPFS network. > > This protocol support

Re: [FFmpeg-devel] [PATCH v4 1/1] avformat: Add IPFS protocol support.

2022-02-09 Thread Mark Gaiser
On Wed, Feb 9, 2022 at 6:36 PM Mark Gaiser wrote: > On Mon, Feb 7, 2022 at 4:09 PM Tomas Härdin wrote: > >> fre 2022-02-04 klockan 15:12 +0100 skrev Mark Gaiser: >> > On Fri, Feb 4, 2022 at 12:10 PM Tomas Härdin >> > wrote: >> > >> > > tor 2022-02-03 klockan 18:29 +0100 skrev Mark Gaiser: >> >

[FFmpeg-devel] [PATCH v5 1/1] avformat: Add IPFS protocol support.

2022-02-09 Thread Mark Gaiser
This patch adds support for: - ffplay ipfs:// - ffplay ipns:// IPFS data can be played from so called "ipfs gateways". A gateway is essentially a webserver that gives access to the distributed IPFS network. This protocol support (ipfs and ipns) therefore translates ipfs:// and ipns:// to a http:/

[FFmpeg-devel] [PATCH v5 0/1] Add IPFS protocol support.

2022-02-09 Thread Mark Gaiser
Hi, This patch series adds support for IPFS. V5: - "c->gateway" is now not modified anymore - Moved most variables to the stack - Even more strict checks with the auto detection logic - Errors are now AVERROR :) - Added more logging and changed some debug ones to info ones as they are valuable

Re: [FFmpeg-devel] [PATCH v4 1/1] avformat: Add IPFS protocol support.

2022-02-09 Thread Mark Gaiser
On Mon, Feb 7, 2022 at 4:09 PM Tomas Härdin wrote: > fre 2022-02-04 klockan 15:12 +0100 skrev Mark Gaiser: > > On Fri, Feb 4, 2022 at 12:10 PM Tomas Härdin > > wrote: > > > > > tor 2022-02-03 klockan 18:29 +0100 skrev Mark Gaiser: > > > > > > > > +typedef struct IPFSGatewayContext { > > > > +

Re: [FFmpeg-devel] [PATCH 1/6] avcodec/pthread_frame: Don't prematurily presume frame-threading

2022-02-09 Thread Anton Khirnov
patchset looks good -- Anton Khirnov ___ 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] avcodec/setts_bsf: set the output packet duration to 0

2022-02-09 Thread James Almer
It's not possible to know the resulting packet's duration after applying the expression as it depends on the timestamp of the next packet, which we haven't seen yet. The old duration, if any, is no longer valid, so just remove it. Signed-off-by: James Almer --- libavcodec/setts_bsf.c | 1 + 1 fi

[FFmpeg-devel] arm64: Add Armv8.3-A PAC support to assembly files

2022-02-09 Thread Andre Kempe
Hi everyone, This patch adds signing and validation of LinkRegister when storing to and Loading from stack using Pointer Authentication Codes (PACs). PAC support is turned on or off at compile time based on the presence of the __ARM_FEATURE_PAC_DEFAULT feature macro. Without PAC enabled at compil

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/jpeglsdec: Increase range for N in ls_get_code_runterm() by using unsigned

2022-02-09 Thread Michael Niedermayer
On Sat, Feb 05, 2022 at 08:53:04PM +0100, Michael Niedermayer wrote: > Fixes: left shift of 32768 by 16 places cannot be represented in type 'int' > Fixes: Timeout > Fixes: > 44219/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SMVJPEG_fuzzer-4679455379947520 > Fixes: > 44088/clusterfuzz-testc

Re: [FFmpeg-devel] [PATCH 2/2] avformat/utils: Fix invalid NULL pointer operation in ff_parse_key_value()

2022-02-09 Thread Michael Niedermayer
On Fri, Feb 04, 2022 at 01:58:11AM +0100, Michael Niedermayer wrote: > Fixes: pointer index expression with base 0x overflowed to > 0x > Fixes: > 44012/clusterfuzz-testcase-minimized-ffmpeg_dem_HLS_fuzzer-5670607746891776 > > Found-by: continuous fuzzing process > ht

Re: [FFmpeg-devel] [PATCH 1/2] avformat/matroskadec: Fix infinite loop with bz decompression

2022-02-09 Thread Michael Niedermayer
On Fri, Feb 04, 2022 at 04:07:10PM +0100, Michael Niedermayer wrote: > On Fri, Feb 04, 2022 at 04:29:18AM +0100, Andreas Rheinhardt wrote: > > Michael Niedermayer: > > > Fixes: Infinite loop > > > Fixes: > > > 43932/clusterfuzz-testcase-minimized-ffmpeg_dem_MATROSKA_fuzzer-6175167573786624 > > >

Re: [FFmpeg-devel] [PATCH 1/2] avformat/utils: keep chapter monotonicity on chapter updates

2022-02-09 Thread Michael Niedermayer
On Tue, Feb 01, 2022 at 07:52:38PM +0100, Michael Niedermayer wrote: > Updating a chapter with the same id does not break monotonicity > Fixes: Timeout > Fixes: > 43727/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-4960623367159808 > > Found-by: continuous fuzzing process > https://github

Re: [FFmpeg-devel] [PATCH 1/2] avformat/matroskadec: Check desc_bytes

2022-02-09 Thread Michael Niedermayer
On Sat, Feb 05, 2022 at 10:58:28PM +0100, Andreas Rheinhardt wrote: > Andreas Rheinhardt: > > Michael Niedermayer: > >> Fixes: Division by 0 > >> Fixes: > >> 44035/clusterfuzz-testcase-minimized-ffmpeg_dem_WEBM_DASH_MANIFEST_fuzzer-4826721386364928 > >> > >> Found-by: continuous fuzzing process >

Re: [FFmpeg-devel] [PATCH 186/281] alac: convert to new channel layout API

2022-02-09 Thread Anton Khirnov
Quoting James Almer (2022-01-13 03:02:19) > diff --git a/libavcodec/alac_data.h b/libavcodec/alac_data.h > index 650d6dcd15..a68a5f2648 100644 > --- a/libavcodec/alac_data.h > +++ b/libavcodec/alac_data.h > @@ -23,6 +23,8 @@ > > #include > > +#include "libavutil/channel_layout.h" > + > enum

Re: [FFmpeg-devel] [PATCH] zscale video filter performance optimization 4x

2022-02-09 Thread Guillaume POIRIER
Hello Victoria, On Sun, 6 Feb 2022 at 16:12, Victoria Zhislina wrote: > I wasn't aware of the cases where width/height can change between frames - > never seen them in real life, but right you are, iI will change my code > accordingly - to make re-init if some change happened. If you want to

Re: [FFmpeg-devel] [PATCH 1/2] avformat/hls: Use unsigned for iv computation

2022-02-09 Thread Michael Niedermayer
On Wed, Feb 09, 2022 at 01:55:31PM +0800, Steven Liu wrote: > Michael Niedermayer 于2022年2月8日周二 22:59写道: > > > > Fixes: signed integer overflow: 9223372036854775748 + 60 cannot be > > represented in type 'long' > > Fixes: > > 44417/clusterfuzz-testcase-minimized-ffmpeg_dem_HLS_fuzzer-580244388197

Re: [FFmpeg-devel] [PATCH] avcodec/motion_est: Fix xy indexing on range violation in ff_get_best_fcode()

2022-02-09 Thread Michael Niedermayer
On Wed, Feb 09, 2022 at 03:39:20AM +0100, Andreas Rheinhardt wrote: > Michael Niedermayer: > > This codepath seems untested, no testcases change > > > > Found-by: > > Signed-off-by: Michael Niedermayer > > --- > > libavcodec/motion_est.c | 8 +--- > > 1 file changed, 5 insertions(+), 3 dele

Re: [FFmpeg-devel] [PATCH 1/4] libswscale: Re-factor ff_shuffle_filter_coefficients.

2022-02-09 Thread Alan Kelly
Hi Michael, Thanks for your feedback. I have updated the patches and split this patch into two, one with cosmetic fixes and one propagating the errors. Since there is now an extra patch in the set and the commit messages have changed, new threads have been started. Alan On Thu, Feb 3, 2022 at 3:

[FFmpeg-devel] [PATCH 5/5] checkasm/sw_scale: hscale does not requires cpuflag test.

2022-02-09 Thread Alan Kelly
This is done in ff_shuffle_filter_coefficients. --- tests/checkasm/sw_scale.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/checkasm/sw_scale.c b/tests/checkasm/sw_scale.c index 3c0a083b42..e7f916d3a8 100644 --- a/tests/checkasm/sw_scale.c +++ b/tests/checkasm/sw_

[FFmpeg-devel] [PATCH 4/5] libswscale: Propagate error codes from ff_shuffle_filter_coefficients

2022-02-09 Thread Alan Kelly
--- libswscale/swscale_internal.h | 2 +- libswscale/utils.c| 14 -- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h index 3a78d95ba6..26d28d42e6 100644 --- a/libswscale/swscale_internal.h +++ b/l

[FFmpeg-devel] [PATCH 3/5] libswscale: Enable hscale_avx2 for all input sizes.

2022-02-09 Thread Alan Kelly
ff_shuffle_filter_coefficients shuffles the tail as required. --- libswscale/utils.c | 19 --- libswscale/x86/swscale.c | 6 ++ 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/libswscale/utils.c b/libswscale/utils.c index 1d919e863a..31c365fcee 100644 ---

[FFmpeg-devel] [PATCH 2/5] libswscale: Avx2 hscale can process inputs of any size.

2022-02-09 Thread Alan Kelly
The main loop processes blocks of 16 pixels. The tail processes blocks of size 4. --- libswscale/x86/scale_avx2.asm | 48 +-- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/libswscale/x86/scale_avx2.asm b/libswscale/x86/scale_avx2.asm index 20acdbd63

[FFmpeg-devel] [PATCH 1/5] libswscale: Re-factor ff_shuffle_filter_coefficients.

2022-02-09 Thread Alan Kelly
Make the code more readable and follow the style guide. --- libswscale/utils.c | 64 +++--- 1 file changed, 37 insertions(+), 27 deletions(-) diff --git a/libswscale/utils.c b/libswscale/utils.c index c5ea8853d5..1d919e863a 100644 --- a/libswscale/utils.c +

Re: [FFmpeg-devel] [PATCH 1/2] http: Improve handling of Content-Range with Transfer-Encoding:chunked

2022-02-09 Thread Paul B Mahol
On Wed, Feb 9, 2022 at 1:56 AM Vittorio Giovara wrote: > On Thu, Feb 3, 2022 at 3:12 PM Derek Buitenhuis < > derek.buitenh...@gmail.com> > wrote: > > > On 2/3/2022 1:26 AM, Aman Karmani wrote: > > > The size part of the range header is optional, and can be '*' as well. > > > > > > See also > > >