[FFmpeg-devel] [PATCH 02/42] avcodec/refstruct: Add simple API for refcounted objects

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Fri Oct 6 23:20:09 EEST 2023


Nicolas George:
> Andreas Rheinhardt (12023-10-06):
>> Will apply patches 2-16 (i.e. up to the pool API) tomorrow unless there
>> are objections.
> 
> Have you given some thought to using a template to make the API
> type-safe directly?

Do you mean a template that generates functions like

HEVCVPS *ff_hevc_vps_ref(HEVCVPS *vps)
{
    return ff_refstruct_ref(vps);
}

automatically? I don't think that's worth it.

- Andreas



More information about the ffmpeg-devel mailing list