[FFmpeg-devel] [PATCH] avutil/hdr_dynamic_metadata: allow av_dynamic_hdr_plus_to_t35() to accept an existing buffer

James Almer jamrial at gmail.com
Mon Apr 3 21:26:38 EEST 2023


On 4/1/2023 12:22 PM, James Almer wrote:
> The function now accepts an existing buffer to avoid unnecessary allocations,
> as well as only reporting the needed amount of bytes if you pass a NULL pointer
> as input for data.
> For this, both parameters become input and output, as well as making data
> optional, and the max payload size define is made public so library users can
> just use that f they want to use their own buffers, knowing it will be enough
> for any input AVDynamicHDRPlus.
> 
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
> Missing version bump (Or maybe i can just not bump since this function is
> recent enough?) and APIChanges entry.

I'll apply this with a version bump soon.


More information about the ffmpeg-devel mailing list