You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-14 22:15:12 +02:00
avutil/frame: add helper for getting side data from array
This commit is contained in:
@ -1041,6 +1041,20 @@ AVFrameSideData *av_frame_side_data_new(AVFrameSideData ***sd, int *nb_sd,
|
||||
int av_frame_side_data_clone(AVFrameSideData ***sd, int *nb_sd,
|
||||
const AVFrameSideData *src, unsigned int flags);
|
||||
|
||||
/**
|
||||
* Get a side data entry of a specific type from an array.
|
||||
*
|
||||
* @param sd array of side data.
|
||||
* @param nb_sd integer containing the number of entries in the array.
|
||||
* @param type type of side data to be queried
|
||||
*
|
||||
* @return a pointer to the side data of a given type on success, NULL if there
|
||||
* is no side data with such type in this set.
|
||||
*/
|
||||
const AVFrameSideData *av_frame_side_data_get(const AVFrameSideData **sd,
|
||||
const int nb_sd,
|
||||
enum AVFrameSideDataType type);
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
Reference in New Issue
Block a user