[FFmpeg-devel] [PATCH] avutil/map: replace passing Compare functions by flags

Michael Niedermayer michael at niedermayer.cc
Thu Apr 17 02:07:56 EEST 2025


On Wed, Apr 16, 2025 at 08:22:18PM +0000, softworkz . wrote:
[...]
>
> That's a good change, because it was in fact confusing.
> 
> Another confusing part of the API is the need for specifying the 
> lengths of key and value - and I finally figured out why it 
> didn't retrieve any elements: those values need to be strlen + 1
> 

> I think the final API should not require any length params
> (or at least it should have a function that doesn't need it)

its there because people asked for support for non string data
ill add a
int av_map_add_strings(AVMap *s, const char *key, const char *value, int flags);

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If you fake or manipulate statistics in a paper in physics you will never
get a job again.
If you fake or manipulate statistics in a paper in medicin you will get
a job for life at the pharma industry.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250417/a8934f49/attachment.sig>


More information about the ffmpeg-devel mailing list