diff options
author | Jan Ekström <jeebjp@gmail.com> | 2023-03-19 11:25:54 +0200 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2024-03-20 19:14:02 +0200 |
commit | 919c9cdbe6d2d69beb6c675d879dd77588f4f001 (patch) | |
tree | c75701804df9046fc12faf4985648f4d73c27850 /libavutil/frame.c | |
parent | d5104b3401f9513a92f869d6ebe9f51e8277d177 (diff) | |
download | ffmpeg-919c9cdbe6d2d69beb6c675d879dd77588f4f001.tar.gz |
avutil/frame: add helper for freeing arrays of side data
Diffstat (limited to 'libavutil/frame.c')
-rw-r--r-- | libavutil/frame.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavutil/frame.c b/libavutil/frame.c index ab425b2235..baac0706db 100644 --- a/libavutil/frame.c +++ b/libavutil/frame.c @@ -78,6 +78,11 @@ static void frame_side_data_wipe(AVFrame *frame) wipe_side_data(&frame->side_data, &frame->nb_side_data); } +void av_frame_side_data_free(AVFrameSideData ***sd, int *nb_sd) +{ + wipe_side_data(sd, nb_sd); +} + AVFrame *av_frame_alloc(void) { AVFrame *frame = av_malloc(sizeof(*frame)); |