From 5735a390a69df29b426d7626d63cd06baa30bc38 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 7 Mar 2018 10:03:46 +0100 Subject: [PATCH] avformat/internal: Document the freeing behavior of ff_alloc_extradata() Signed-off-by: Michael Niedermayer --- libavformat/internal.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/internal.h b/libavformat/internal.h index 2ac7e2e1a0..a020b1b417 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -580,6 +580,8 @@ static inline int ff_rename(const char *oldpath, const char *newpath, void *logc * Allocate extradata with additional AV_INPUT_BUFFER_PADDING_SIZE at end * which is always set to 0. * + * Previously allocated extradata in par will be freed. + * * @param size size of extradata * @return 0 if OK, AVERROR_xxx on error */