Re: [FFmpeg-devel] [PATCH] avformat: Add check for ff_get_extradata

2022-02-22 Thread Paul B Mahol
On Tue, Feb 22, 2022 at 8:50 AM Jiasheng Jiang wrote: > As the potential failure of the memory allocation, the ff_get_extradata() > could return error if fails. > Therefore, it should be better to deal with the return value of the > ff_get_extradata() and return error if fails. > Not really nec

Re: [FFmpeg-devel] [PATCH] libavfilter: zscale performance optimization >4x

2022-02-22 Thread Paul B Mahol
On Tue, Feb 22, 2022 at 6:25 AM Lynne wrote: > 19 Feb 2022, 14:58 by niva...@gmail.com: > > > By ffmpeg threading support implementation via frame slicing and doing > > zimg_filter_graph_build that used to take 30-60% of each frame processig > > only if necessary (some parameters changed) > > the

Re: [FFmpeg-devel] [PATCH] libavfilter: zscale performance optimization >4x

2022-02-22 Thread Paul B Mahol
On Tue, Feb 22, 2022 at 9:15 AM Paul B Mahol wrote: > > > On Tue, Feb 22, 2022 at 6:25 AM Lynne wrote: > >> 19 Feb 2022, 14:58 by niva...@gmail.com: >> >> > By ffmpeg threading support implementation via frame slicing and doing >> > zimg_filter_graph_build that used to take 30-60% of each frame

Re: [FFmpeg-devel] [PATCH v2 1/4] lavc/vaapi_encode_h265: Add P frame to GPB frame support for hevc_vaapi

2022-02-22 Thread Wang, Fei W
On Tue, 2022-02-22 at 05:46 +, Xiang, Haihao wrote: > On Mon, 2022-02-21 at 12:06 +, Mark Thompson wrote: > > On 21/02/2022 02:13, Fei Wang wrote: > > > From: Linjie Fu > > > > > > Use GPB frames to replace regular P frames if backend driver does > > > not > > > support it. > > > > > > -

Re: [FFmpeg-devel] [PATCH] avformat: Add check for ff_get_extradata

2022-02-22 Thread Jiasheng Jiang
On Tue, Feb 22, 2022 at 04:10:51PM +0800, Paul B Mahol wrote: >> As the potential failure of the memory allocation, the ff_get_extradata() >> could return error if fails. >> Therefore, it should be better to deal with the return value of the >> ff_get_extradata() and return error if fails. >> > >

Re: [FFmpeg-devel] [PATCH] avformat: Add check for ff_get_extradata

2022-02-22 Thread Paul B Mahol
On Tue, Feb 22, 2022 at 10:14 AM Jiasheng Jiang wrote: > On Tue, Feb 22, 2022 at 04:10:51PM +0800, Paul B Mahol wrote: > > >> As the potential failure of the memory allocation, the > ff_get_extradata() > >> could return error if fails. > >> Therefore, it should be better to deal with the return v

Re: [FFmpeg-devel] [PATCH] libavfilter: zscale performance optimization >4x

2022-02-22 Thread Victoria Zhislina
Paul, I've got exactly the same feelings on zing threading usage myself and decided to go along the standard ffmpeg threading route. It looks more consistent here. Megathanks for reviewing my patch, I've fixed everything you've mentioned and even more. On Tue, Feb 22, 2022 at 11:15 AM Paul B Mahol

Re: [FFmpeg-devel] [PATCH v1] avfilter/vf_gblur_vulkan: add sizeV option

2022-02-22 Thread Lynne
22 Feb 2022, 07:27 by jianhua.wu-at-intel@ffmpeg.org: > Lynne: > >> Sent: Tuesday, February 22, 2022 1:38 PM >> To: FFmpeg development discussions and patches > de...@ffmpeg.org> >> Subject: Re: [FFmpeg-devel] [PATCH v1] avfilter/vf_gblur_vulkan: add sizeV >> option >> >> 18 Feb 2022, 16:24 by

Re: [FFmpeg-devel] [PATCH v1] avfilter/vf_gblur_vulkan: add sizeV option

2022-02-22 Thread Wu, Jianhua
Lynne: > Sent: Tuesday, February 22, 2022 5:36 PM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH v1] avfilter/vf_gblur_vulkan: add sizeV > option > > 22 Feb 2022, 07:27 by jianhua.wu-at-intel@ffmpeg.org: > > > Lynne: > > > >> Sent: Tue

Re: [FFmpeg-devel] Playback issue on Sony TVs caused by btrt box

2022-02-22 Thread Jan Ekström
On Tue, Feb 22, 2022 at 9:55 AM Marton Balint wrote: > > > > On Mon, 21 Feb 2022, Eran Kornblau wrote: > > >> > >> On Mon, Feb 21, 2022 at 5:07 PM Eran Kornblau > >> wrote: > >>> > >>> Hi all, > >>> > >>> We've recently upgraded our ffmpeg version, and we got a playback issue > >>> on some Sony

Re: [FFmpeg-devel] [PATCH] avfilter: Added siti filter

2022-02-22 Thread Thilo Borgmann
Am 15.02.22 um 09:54 schrieb Anton Khirnov: Quoting Thilo Borgmann (2022-02-12 11:55:39) Am 31.01.22 um 12:55 schrieb James Almer: +static int config_input(AVFilterLink *inlink) +{ +// Video input data avilable +AVFilterContext *ctx = inlink->dst; +SiTiContext *s = ctx->priv; +in

Re: [FFmpeg-devel] [PATCH] avfilter: Added siti filter

2022-02-22 Thread Thilo Borgmann
Am 18.02.22 um 17:08 schrieb Paul B Mahol: On Sat, Feb 12, 2022 at 11:55 AM Thilo Borgmann wrote: Am 31.01.22 um 12:55 schrieb James Almer: On 1/31/2022 8:53 AM, Anton Khirnov wrote: Quoting Thilo Borgmann (2022-01-18 14:58:07) Violations of code style. Enhanced. Not enough. There are

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

2022-02-22 Thread Thilo Borgmann
Am 08.02.22 um 11:41 schrieb Thilo Borgmann: Am 08.02.22 um 10:27 schrieb Andreas Rheinhardt: Thilo Borgmann: Am 01.02.22 um 00:40 schrieb Andreas Rheinhardt: Thilo Borgmann: Am 31.01.22 um 14:08 schrieb Nicolas George: Thilo Borgman (12022-01-31): v10 attached. Also going to apply soon i

Re: [FFmpeg-devel] [PATCH 1/2] avdevice/avfoundation: fix memleak

2022-02-22 Thread Thilo Borgmann
Am 19.02.22 um 09:45 schrieb "zhilizhao(赵志立)": On Feb 8, 2022, at 9:05 PM, Andreas Rheinhardt wrote: Thilo Borgmann: Am 08.02.22 um 13:50 schrieb Andreas Rheinhardt: Thilo Borgmann: Am 04.02.22 um 17:19 schrieb Zhao Zhili: --- libavdevice/avfoundation.m | 10 ++ 1 file ch

Re: [FFmpeg-devel] [PATCH 2/2] avdevice/avfoundation: check strdup

2022-02-22 Thread Thilo Borgmann
Am 04.02.22 um 17:19 schrieb Zhao Zhili: --- libavdevice/avfoundation.m | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) Pushed, thanks! -Thilo ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/lis

[FFmpeg-devel] [PATCH 0/7] Add UUID functionality to libavutil

2022-02-22 Thread Zane van Iperen
This patchset adds functions for handling UUIDs to libavutil, under the av_uuid_* prefix, and refactors the various ad-hoc handling to use it. This was proposed in [1]. This is _heavily_ based off libuuid with various parts of the code simplified to remove unnecessary functionality (e.g. generati

[FFmpeg-devel] [PATCH 1/7] avutil/uuid: add utility library for manipulating UUIDs as specified in RFC 4122

2022-02-22 Thread Zane van Iperen
Loosely based on libuuid Co-authored-by: Pierre-Anthony Lemieux Signed-off-by: Pierre-Anthony Lemieux Signed-off-by: Zane van Iperen --- libavutil/Makefile | 2 + libavutil/uuid.c | 156 ++ libavutil/uuid.h | 167 +++

[FFmpeg-devel] [PATCH 2/7] avutil/tests/uuid: add uuid tests

2022-02-22 Thread Zane van Iperen
From: Pierre-Anthony Lemieux Signed-off-by: Pierre-Anthony Lemieux Signed-off-by: Zane van Iperen --- libavutil/Makefile | 1 + libavutil/tests/.gitignore | 1 + libavutil/tests/uuid.c | 139 + tests/fate/libavutil.mak | 5 ++ 4 files cha

[FFmpeg-devel] [PATCH 3/7] avformat/mov: refactor to use avutil/uuid

2022-02-22 Thread Zane van Iperen
From: Pierre-Anthony Lemieux Signed-off-by: Pierre-Anthony Lemieux Signed-off-by: Zane van Iperen --- libavformat/mov.c| 25 + libavformat/movenc.c | 9 + 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/libavformat/mov.c b/libavformat/mov.c

[FFmpeg-devel] [PATCH 4/7] avformat/smoothstreamingenc: refactor to use avutil/uuid

2022-02-22 Thread Zane van Iperen
From: Pierre-Anthony Lemieux Signed-off-by: Pierre-Anthony Lemieux Signed-off-by: Zane van Iperen --- libavformat/smoothstreamingenc.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libavformat/smoothstreamingenc.c b/libavformat/smoothstreamingenc.c index a0ea5b8fa8

[FFmpeg-devel] [PATCH 5/7] avcodec/cbs_sei: refactor to use avutil/uuid

2022-02-22 Thread Zane van Iperen
From: Pierre-Anthony Lemieux Signed-off-by: Pierre-Anthony Lemieux Signed-off-by: Zane van Iperen --- libavcodec/cbs_sei.h | 3 ++- libavcodec/vaapi_encode_h264.c | 8 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/libavcodec/cbs_sei.h b/libavcodec/cbs_sei.h

[FFmpeg-devel] [PATCH 6/7] avformat/imf: refactor to use avutil/uuid

2022-02-22 Thread Zane van Iperen
From: Pierre-Anthony Lemieux Signed-off-by: Pierre-Anthony Lemieux Signed-off-by: Zane van Iperen --- libavformat/imf.h | 18 - libavformat/imf_cpl.c | 60 +++-- libavformat/imfdec.c| 34 +++ libavformat/tests/imf.

[FFmpeg-devel] [PATCH 7/7] avfilter/showinfo: refactor to use avutil/uuid

2022-02-22 Thread Zane van Iperen
From: Pierre-Anthony Lemieux Signed-off-by: Pierre-Anthony Lemieux Signed-off-by: Zane van Iperen --- libavfilter/vf_showinfo.c | 17 + 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index 71728bced4..395e87c

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

2022-02-22 Thread Martin Storsjö
On Mon, 14 Feb 2022, Andre Kempe wrote: This patch adds optional support for Arm Pointer Authentication Codes. PAC support is turned on or off at compile time using additional compiler flags. Unless any of these is enabled explicitly, no additional code will be emitted at all. Signed-off-by: A

Re: [FFmpeg-devel] [PATCH 1/7] avutil/uuid: add utility library for manipulating UUIDs as specified in RFC 4122

2022-02-22 Thread James Almer
On 2/22/2022 10:01 AM, Zane van Iperen wrote: Loosely based on libuuid Co-authored-by: Pierre-Anthony Lemieux Signed-off-by: Pierre-Anthony Lemieux Signed-off-by: Zane van Iperen --- libavutil/Makefile | 2 + libavutil/uuid.c | 156 ++ libavu

Re: [FFmpeg-devel] [PATCH 1/7] avutil/uuid: add utility library for manipulating UUIDs as specified in RFC 4122

2022-02-22 Thread Zane van Iperen
On 22/2/22 23:01, Zane van Iperen wrote: +int av_uuid_urn_parse(const char *in, AVUUID uu) +{ +return av_uuid_parse(in + 9, uu); Self-review: this should check if "strlen(in) == 45", then simply return av_uuid_parse_range(in + 9). ___ ffmpeg-d

Re: [FFmpeg-devel] [PATCH v3] avformat/nutdec: Add check for avformat_new_stream

2022-02-22 Thread Michael Niedermayer
On Tue, Feb 22, 2022 at 10:41:51AM +0800, Jiasheng Jiang wrote: > As the potential failure of the memory allocation, > the avformat_new_stream() could return NULL pointer. > Therefore, it should be better to check it and return > error if fails. > Also, the caller, nut_read_header(), needs to deal

[FFmpeg-devel] [PATCH 1/3] avfilter/af_loudnorm: switch to activate

2022-02-22 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavfilter/af_loudnorm.c | 62 ++- 1 file changed, 48 insertions(+), 14 deletions(-) diff --git a/libavfilter/af_loudnorm.c b/libavfilter/af_loudnorm.c index dbe7fba986..5b4b6e8548 100644 --- a/libavfilter/af_loudnorm.c +++ b/l

[FFmpeg-devel] [PATCH 2/3] avfilter/af_loudnorm: stop rewritting pts

2022-02-22 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavfilter/af_loudnorm.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/libavfilter/af_loudnorm.c b/libavfilter/af_loudnorm.c index 5b4b6e8548..7c8ac3a39d 100644 --- a/libavfilter/af_loudnorm.c +++ b/libavfilter/af_lo

[FFmpeg-devel] [PATCH 3/3] avfilter/af_loudnorm: remove hard clipping of samples

2022-02-22 Thread Paul B Mahol
It can cause unpleasant artifacts. Signed-off-by: Paul B Mahol --- libavfilter/af_loudnorm.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libavfilter/af_loudnorm.c b/libavfilter/af_loudnorm.c index 7c8ac3a39d..9bb0c65bb7 100644 --- a/libavfilter/af_loudnorm.c +++ b/li

Re: [FFmpeg-devel] [PATCH 6/6] avcodec/setts_bsf: add constants to modify packet duration

2022-02-22 Thread James Almer
On 2/14/2022 7:41 PM, James Almer wrote: Signed-off-by: James Almer --- Missing doc changes. libavcodec/setts_bsf.c | 25 - 1 file changed, 24 insertions(+), 1 deletion(-) Ping for set. Original patches 2, 3 and 4 are withdrawn, so the set is: [PATCH 1/6] ffmpeg: f

Re: [FFmpeg-devel] [PATCH 6/6] avcodec/setts_bsf: add constants to modify packet duration

2022-02-22 Thread Paul B Mahol
On Tue, Feb 22, 2022 at 5:50 PM James Almer wrote: > On 2/14/2022 7:41 PM, James Almer wrote: > > Signed-off-by: James Almer > > --- > > Missing doc changes. > > > > libavcodec/setts_bsf.c | 25 - > > 1 file changed, 24 insertions(+), 1 deletion(-) > > Ping for set. >

Re: [FFmpeg-devel] [PATCH 1/2] lavc/bsf: add general documentation

2022-02-22 Thread James Almer
On 2/22/2022 3:27 AM, Anton Khirnov wrote: Also, place the BSF api docs in their own doxygen group. --- libavcodec/bsf.h | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/libavcodec/bsf.h b/libavcodec/bsf.h index 8c5355d186..ba8b48f222 100644 --- a/

[FFmpeg-devel] [PATCH] avcodec/h263dec: Avoid copying data when flipping image

2022-02-22 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/h263dec.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index e940b7f7c7..423036e97b 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -703,17 +703,11 @

[FFmpeg-devel] [PATCH 3/3] avformat/movenc: Add support for AVIF muxing

2022-02-22 Thread Vignesh Venkatasubramanian
Add an AVIF muxer by re-using the existing the mov/mp4 muxer. AVIF Specifiation: https://aomediacodec.github.io/av1-avif Sample usage for still image: ffmpeg -i image.png -c:v libaom-av1 -avif-image 1 image.avif Sample usage for animated AVIF image: ffmpeg -i video.mp4 animated.avif We can re-u

Re: [FFmpeg-devel] [PATCH 3/3] avformat/movenc: Add support for AVIF muxing

2022-02-22 Thread James Almer
On 2/22/2022 3:40 PM, Vignesh Venkatasubramanian wrote: Add an AVIF muxer by re-using the existing the mov/mp4 muxer. AVIF Specifiation: https://aomediacodec.github.io/av1-avif Sample usage for still image: ffmpeg -i image.png -c:v libaom-av1 -avif-image 1 image.avif Sample usage for animat

[FFmpeg-devel] [PATCH 1/3] avcodec/libaomenc: Add parameter for avif single image encoding

2022-02-22 Thread Vignesh Venkatasubramanian
Add a parameter to libaom-av1 encoder to enforce some of the single image constraints in the AV1 encoder. Setting this flag will limit the encoder to producing exactly one frame and the sequence header that is produced by the encoder will be conformant to the AVIF specification [1]. Part of Fixing

[FFmpeg-devel] [PATCH 3/3] avformat/movenc: Add support for AVIF muxing

2022-02-22 Thread Vignesh Venkatasubramanian
Add an AVIF muxer by re-using the existing the mov/mp4 muxer. AVIF Specifiation: https://aomediacodec.github.io/av1-avif Sample usage for still image: ffmpeg -i image.png -c:v libaom-av1 -avif-image 1 image.avif Sample usage for animated AVIF image: ffmpeg -i video.mp4 animated.avif We can re-u

Re: [FFmpeg-devel] [PATCH 3/3] avformat/movenc: Add support for AVIF muxing

2022-02-22 Thread Vignesh Venkatasubramanian
On Tue, Feb 22, 2022 at 12:03 PM James Almer wrote: > > > On 2/22/2022 3:40 PM, Vignesh Venkatasubramanian wrote: > > Add an AVIF muxer by re-using the existing the mov/mp4 muxer. > > > > AVIF Specifiation: https://aomediacodec.github.io/av1-avif > > > > Sample usage for still image: > > ffmpeg -

[FFmpeg-devel] [PATCH 3/3] avformat/movenc: Add support for AVIF muxing

2022-02-22 Thread Vignesh Venkatasubramanian
Add an AVIF muxer by re-using the existing the mov/mp4 muxer. AVIF Specifiation: https://aomediacodec.github.io/av1-avif Sample usage for still image: ffmpeg -i image.png -c:v libaom-av1 -avif-image 1 image.avif Sample usage for animated AVIF image: ffmpeg -i video.mp4 animated.avif We can re-u

Re: [FFmpeg-devel] [PATCH 1/2] fftools/ffprobe: Flush decoder after draining

2022-02-22 Thread Andreas Rheinhardt
Andreas Rheinhardt: > This is a prerequisite to continue using the decoder at all > to decode the next interval (if any). > This fixes a regression introduced in commit > 2a88ebd096f3c748a2d99ed1b60b22879b3c567c and reported in ticket #8657. > > Signed-off-by: Andreas Rheinhardt > --- > I wonder

[FFmpeg-devel] [PATCH 1/5] avcodec/magicyuvenc: Avoid unnecessary av_frame_clone()

2022-02-22 Thread Andreas Rheinhardt
It is unnecessary and unchecked; the intention seems to be to ensure that the frame's data is writable, but it does not provide this. This will be fixed in a latter commit. Signed-off-by: Andreas Rheinhardt --- libavcodec/magicyuvenc.c | 26 -- 1 file changed, 12 insertio

[FFmpeg-devel] [PATCH 2/5] avcodec/magicyuvenc: Add const where appropriate

2022-02-22 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/magicyuvenc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/magicyuvenc.c b/libavcodec/magicyuvenc.c index 4440ab3ce2..ffb0be1d14 100644 --- a/libavcodec/magicyuvenc.c +++ b/libavcodec/magicyuvenc.c @@ -69,1

[FFmpeg-devel] [PATCH 3/5] avcodec/magicyuvenc: Don't modify input frame

2022-02-22 Thread Andreas Rheinhardt
It need not be writable at all. Instead, use temporary buffers for decorrelation. Signed-off-by: Andreas Rheinhardt --- The prediction functions could be rewritten to allow src and dst to alias each other; yet LLVidEncDSPContext.diff_bytes has the requirement that dst has an alignment of 16. li

[FFmpeg-devel] [PATCH 4/5] avcodec/libopenjpegenc: Don't clone AVFrame unnecessarily

2022-02-22 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/libopenjpegenc.c | 83 +++-- 1 file changed, 42 insertions(+), 41 deletions(-) diff --git a/libavcodec/libopenjpegenc.c b/libavcodec/libopenjpegenc.c index 3e52bcd4e9..08b7b6a152 100644 --- a/libavcodec/libopenjpege

[FFmpeg-devel] [PATCH 5/5] avcodec/magicyuvenc: Remove unused context variable

2022-02-22 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/magicyuvenc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavcodec/magicyuvenc.c b/libavcodec/magicyuvenc.c index 5a37a49d63..7fb7578327 100644 --- a/libavcodec/magicyuvenc.c +++ b/libavcodec/magicyuvenc.c @@ -58,7 +58,6 @@ typedef struct

[FFmpeg-devel] [PATCH] tools/target_dec_fuzzer: Adjust threshold for DSICINVIDEO

2022-02-22 Thread Michael Niedermayer
Fixes: Timeout Fixes: 44829/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DSICINVIDEO_fuzzer-6190334340628480 Signed-off-by: Michael Niedermayer --- tools/target_dec_fuzzer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c index 1376

Re: [FFmpeg-devel] [PATCH v3] avformat/nutdec: Add check for avformat_new_stream

2022-02-22 Thread Jiasheng Jiang
Michael Niedermayer: >> diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c >> index 0a8a700acf..32a4f6bbcb 100644 >> --- a/libavformat/nutdec.c >> +++ b/libavformat/nutdec.c >> @@ -351,8 +351,13 @@ static int decode_main_header(NUTContext *nut) >> ret = AVERROR(ENOMEM); >> g

[FFmpeg-devel] [PATCH v4] avformat/nutdec: Add check for avformat_new_stream

2022-02-22 Thread Jiasheng Jiang
As the potential failure of the memory allocation, the avformat_new_stream() could return NULL pointer. Therefore, it should be better to check it and return error if fails. Also, the caller, nut_read_header(), needs to deal with the return value of the decode_main_header() and return error if memo

Re: [FFmpeg-devel] [PATCH 1/7] avutil/uuid: add utility library for manipulating UUIDs as specified in RFC 4122

2022-02-22 Thread Lynne
22 Feb 2022, 14:01 by z...@zanevaniperen.com: > Loosely based on libuuid > > Co-authored-by: Pierre-Anthony Lemieux > Signed-off-by: Pierre-Anthony Lemieux > Signed-off-by: Zane van Iperen > --- > +int av_uuid_parse(const char *in, AVUUID uu) > +{ > +size_t len = strlen(in); > +if (len

Re: [FFmpeg-devel] [PATCH 1/7] avutil/uuid: add utility library for manipulating UUIDs as specified in RFC 4122

2022-02-22 Thread Zane van Iperen
On 23/2/22 16:01, Lynne wrote: Code style Mostly fixed, do these changes look right? https://github.com/vs49688/FFmpeg/commit/867fffe04ffedf0609260557d1db0ebbc519c4d2 Why the double header in the header file? It doesn't contain any libuuid code. It does, this was copy/pasted from libu

Re: [FFmpeg-devel] [PATCH 1/7] avutil/uuid: add utility library for manipulating UUIDs as specified in RFC 4122

2022-02-22 Thread Zane van Iperen
On 23/2/22 00:21, James Almer wrote: +int av_uuid_equal(const AVUUID uu1, const AVUUID uu2) +{ +    return memcmp(uu1, uu2, AV_UUID_LEN) == 0; +} + +void av_uuid_copy(AVUUID dest, const AVUUID src) +{ +    memcpy(dest, src, AV_UUID_LEN); +} + +void av_uuid_nil_set(AVUUID uu) +{ +    memset(uu,

Re: [FFmpeg-devel] [PATCH 1/7] avutil/uuid: add utility library for manipulating UUIDs as specified in RFC 4122

2022-02-22 Thread Zane van Iperen
On 23/2/22 16:48, Zane van Iperen wrote: On 23/2/22 16:01, Lynne wrote: Code style Mostly fixed, do these changes look right? https://github.com/vs49688/FFmpeg/commit/867fffe04ffedf0609260557d1db0ebbc519c4d2 Uhh, wrong one: https://github.com/vs49688/FFmpeg/commit/58af67b9bee0b9b235b8

Re: [FFmpeg-devel] [PATCH] lavu: make av_get_media_type_string() never return NULL

2022-02-22 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2022-02-02 03:13:12) > Who sets invalid media types? > (In case of fftools/*: If they don't set it themselves, they (and all > our users) should be able to rely on our libraries to not set invalid > values. The same goes for all demuxers (as they set this value > themsel