[FFmpeg-devel] [PATCH] avutil/frame: Add av_frame_transfer_side_data() function

Hendrik Leppkes h.leppkes at gmail.com
Tue Dec 7 11:04:47 EET 2021


On Tue, Dec 7, 2021 at 9:00 AM Anton Khirnov <anton at khirnov.net> wrote:
>
> Quoting Lynne (2021-12-06 20:12:31)
> > 6 Dec 2021, 19:37 by anton at khirnov.net:
> >
> >
> > I think av_frame_copy_side_data() makes more sense. Transfer
> > implies that it strips the source frame of side data.
>
> The whole point is that it makes refs, not copies (except when it
> doesn't). I am open to alternative names, but copy is a bad one IMO.

How about staying close to avframe, and using av_frame_side_data_ref
or such (analogous to av_frame_ref)?

- Hendrik


More information about the ffmpeg-devel mailing list