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

2022-05-30 Thread Pierre-Anthony Lemieux
On Wed, May 11, 2022 at 8:02 AM Zane van Iperen wrote: > > > > On 10/5/22 23:18, Andreas Rheinhardt wrote: > > >> +int av_uuid_parse_range(const char *in_start, const char *in_end, AVUUID > >> uu) > >> +{ > >> +int i; > >> +const char *cp; > >> +char buf[3]; > >> + > >> +if

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

2022-05-30 Thread Pierre-Anthony Lemieux
On Wed, May 11, 2022 at 8:03 AM Zane van Iperen wrote: > > > > On 11/5/22 21:53, Anton Khirnov wrote: > > Quoting Zane van Iperen (2022-04-24 12:14:03) > >> +void av_uuid_nil_set(AVUUID uu) > > ^^^ > > sounds weird > > > > av_uuid_zero()? > > av_uuid_reset()? > > > > Good

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

2022-05-11 Thread Zane van Iperen
On 11/5/22 21:53, Anton Khirnov wrote: Quoting Zane van Iperen (2022-04-24 12:14:03) +void av_uuid_nil_set(AVUUID uu) ^^^ sounds weird av_uuid_zero()? av_uuid_reset()? Good point, `av_uuid_zero()` has a nice ring to it.

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

2022-05-11 Thread Zane van Iperen
On 10/5/22 23:18, Andreas Rheinhardt wrote: +int av_uuid_parse_range(const char *in_start, const char *in_end, AVUUID uu) +{ +int i; +const char *cp; +char buf[3]; + +if ((in_end - in_start) != 36) +return -1; + +for (i = 0, cp = in_start; i < 36; i++, cp++) { +

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

2022-05-11 Thread Anton Khirnov
Quoting Zane van Iperen (2022-04-24 12:14:03) > +void av_uuid_nil_set(AVUUID uu) ^^^ sounds weird av_uuid_zero()? av_uuid_reset()? -- Anton Khirnov ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org

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

2022-05-10 Thread Andreas Rheinhardt
Zane van Iperen: > Co-authored-by: Pierre-Anthony Lemieux > Signed-off-by: Zane van Iperen > --- > libavutil/Makefile | 2 + > libavutil/uuid.c | 155 + > libavutil/uuid.h | 137 +++ > 3 files changed, 294

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

2022-04-24 Thread Zane van Iperen
Co-authored-by: Pierre-Anthony Lemieux Signed-off-by: Zane van Iperen --- libavutil/Makefile | 2 + libavutil/uuid.c | 155 + libavutil/uuid.h | 137 +++ 3 files changed, 294 insertions(+) create mode 100644