@@ -90,6 +90,11 @@ static void wipe_side_data_from_frame(AVFrame *frame) {
wipe_side_data(&frame->side_data, &frame->nb_side_data);
}
+void av_side_data_set_wipe(AVFrameSideDataSet *set)
+{
+ wipe_side_data(&set->side_data, &set->nb_side_data);
+}
+
AVFrame *av_frame_alloc(void)
{
AVFrame *frame = av_malloc(sizeof(*frame));
@@ -991,6 +991,13 @@ int av_frame_apply_cropping(AVFrame *frame, int flags);
*/
const char *av_frame_side_data_name(enum AVFrameSideDataType type);
+/**
+ * Clear all side data from a side data set
+ *
+ * @param set the set which should be cleared
+ */
+void av_side_data_set_wipe(AVFrameSideDataSet *set);
+
/**
* @}
*/