[FFmpeg-devel] [PATCH 3/7] avutil/frame: add a param change side data type

Nicolas George george at nsup.org
Wed Jan 22 23:21:14 EET 2025


Nicolas George (12025-01-22):
> That limitation of side data is very annoying. We should get rid of it,
> especially since it is not that hard.
> 
> The issue is that side data has to be flat because its refcounting is
> built on top of AVBufferRef when AVBufferRef if only good for flat data
> (if it is even good for that).
> 
> So, plan:
> 
…
> 
> (Having a structure for every type in FFmpeg that contains function
> pointers to free, ref, clone, display, parse, hash, compare, etc.,
> elements of that type was a project of mine. It went nowhere for the
> obvious reason it requires an efficient strings API.)

Now that I think of refcounting, I remember that a long time ago I
proposed a system of templates and macros to easily add refcounting to
any structure. It was argued against and went nowhere, but later
somebody told me they realized my proposal was actually good, and I
think I remember it was you, was it not?

Regards,

-- 
  Nicolas George


More information about the ffmpeg-devel mailing list