avformat/internal: Document the freeing behavior of ff_alloc_extradata()
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 7 Mar 2018 09:03:46 +0000 (10:03 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 7 Mar 2018 19:37:33 +0000 (20:37 +0100)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/internal.h

index 2ac7e2e..a020b1b 100644 (file)
@@ -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
  */