summaryrefslogtreecommitdiff
path: root/libavformat/internal.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-09-26 02:05:58 +0200
committerJames Almer <jamrial@gmail.com>2019-09-25 21:54:18 -0300
commitb6be2be765b3f9104ca5bc9f608a934db0fc012a (patch)
tree3ebabff81ec6a649a30cc448f83153af2278b096 /libavformat/internal.h
parent4f589d668efdabc3764dcb0094929c2b4e01b35c (diff)
avformat/utils: ensure that all packets in AVPacketList are reference counted
This is done so that its data is really owned by the packet. This was already true for the current callers. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r--libavformat/internal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h
index 163587f416..67c35cc3e1 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -763,7 +763,8 @@ void ff_format_set_url(AVFormatContext *s, char *url);
*
* @param head List head element
* @param tail List tail element
- * @param pkt The packet being appended
+ * @param pkt The packet being appended. The data described in it will
+ * be made reference counted if it isn't already.
* @param flags Any combination of FF_PACKETLIST_FLAG_* flags
* @return 0 on success, negative AVERROR value on failure. On failure,
the list is unchanged