Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhao Zhili <quinkblack@foxmail.com>2019-11-02 20:41:18 +0300
committerMarton Balint <cus@passwd.hu>2019-11-12 00:15:45 +0300
commit20c5f4d8358e5dab2eb87e611167987a4840122a (patch)
treee9a10e2546c65d0aaac5d396741766cea44653ab /libavutil/frame.h
parent0e495608069550915ee13c14bb657c8e0eb89f25 (diff)
avutil/frame: fix remove_side_data
remove_side_data is supposed to remove a single instance by design. Since new_side_data() doesn't forbid add multiple instances of the same type, remove_side_data should deal with that. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavutil/frame.h')
-rw-r--r--libavutil/frame.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavutil/frame.h b/libavutil/frame.h
index 5d3231e7bb..b5afb58634 100644
--- a/libavutil/frame.h
+++ b/libavutil/frame.h
@@ -920,8 +920,7 @@ AVFrameSideData *av_frame_get_side_data(const AVFrame *frame,
enum AVFrameSideDataType type);
/**
- * If side data of the supplied type exists in the frame, free it and remove it
- * from the frame.
+ * Remove and free all side data instances of the given type.
*/
void av_frame_remove_side_data(AVFrame *frame, enum AVFrameSideDataType type);