[FFmpeg-devel] [PATCH] avutil/frame: add new functions to get frame side data

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Mon Mar 10 16:57:24 EET 2025


Leandro Santiago:
> The functions are:
> 
> av_frame_side_data_get_nth_c()
> av_frame_side_data_get_nth()
> av_frame_get_nth_side_data()
> 
> They mimic the counterparts without the `_nth` suffix/infix, with an extra
> argument, which specifies the relative position of the entry of a given
> type.
> 
> Signed-off-by: Leandro Santiago <leandrosansilva at gmail.com>
> ---
>  libavutil/frame.c     | 10 ++++++++++
>  libavutil/frame.h     | 43 ++++++++++++++++++++++++++++++++++++++++---
>  libavutil/side_data.c | 14 +++++++++++---
>  3 files changed, 61 insertions(+), 6 deletions(-)
> 
Is this really such an important usecase that we need to add new public
functions for this? Why can't users simply iterate over the array on
their own?

- Andreas



More information about the ffmpeg-devel mailing list