[FFmpeg-devel] [PATCH 2/2] avcodec/librav1e: Pass through timestamps as opaque user data

Derek Buitenhuis derek.buitenhuis at gmail.com
Thu Jan 14 16:12:04 EET 2021


On 14/01/2021 14:09, James Almer wrote:
> Is the ownership of the opaque user data moved from the RaFrame to the 
> RaPacket to ensure this is safe? If so, why does 
> rav1e_frame_set_opaque() take a free callback argument? When does it 
> trigger?

It's a bit of a weird API. The free callback that rav1e_frame_set_opaque takes
is only executed in case of a failue inside of rav1e - once the packet is output,
it's up to the API caller to free it.

- Derek


More information about the ffmpeg-devel mailing list