mirror of https://git.ffmpeg.org/ffmpeg.git
avutil/frame: add helper to remove side data of a given type from an array
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
55621f6fae
commit
662dbf826d
|
@ -937,6 +937,12 @@ const AVFrameSideData *av_frame_side_data_get_c(const AVFrameSideData * const *s
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void av_frame_side_data_remove(AVFrameSideData ***sd, int *nb_sd,
|
||||||
|
enum AVFrameSideDataType type)
|
||||||
|
{
|
||||||
|
remove_side_data(sd, nb_sd, type);
|
||||||
|
}
|
||||||
|
|
||||||
AVFrameSideData *av_frame_get_side_data(const AVFrame *frame,
|
AVFrameSideData *av_frame_get_side_data(const AVFrame *frame,
|
||||||
enum AVFrameSideDataType type)
|
enum AVFrameSideDataType type)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1149,6 +1149,11 @@ const AVFrameSideData *av_frame_side_data_get(AVFrameSideData * const *sd,
|
||||||
nb_sd, type);
|
nb_sd, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove and free all side data instances of the given type from an array.
|
||||||
|
*/
|
||||||
|
void av_frame_side_data_remove(AVFrameSideData ***sd, int *nb_sd,
|
||||||
|
enum AVFrameSideDataType type);
|
||||||
/**
|
/**
|
||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue