aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/cbs.h
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2018-05-01 00:18:16 +0100
committerMark Thompson <sw@jkqxz.net>2018-05-01 23:31:37 +0100
commitd7786b66bdd4b625765eb461ec286b846e94e9f2 (patch)
treef6ee7f4d6ea003bb04ca4cf9def4a4d279cad87a /libavcodec/cbs.h
parentd176497cec95f14aed1db847b2889843ef0843dd (diff)
downloadffmpeg-d7786b66bdd4b625765eb461ec286b846e94e9f2.tar.gz
cbs: Fragment/unit data is always reference counted
Make this clear in the documentation and add some asserts to ensure that it is always true.
Diffstat (limited to 'libavcodec/cbs.h')
-rw-r--r--libavcodec/cbs.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/libavcodec/cbs.h b/libavcodec/cbs.h
index 402eb39e00..487358afaf 100644
--- a/libavcodec/cbs.h
+++ b/libavcodec/cbs.h
@@ -84,8 +84,9 @@ typedef struct CodedBitstreamUnit {
*/
size_t data_bit_padding;
/**
- * If data is reference counted, a reference to the buffer containing
- * data. Null if data is not reference counted.
+ * A reference to the buffer containing data.
+ *
+ * Must be set if data is not NULL.
*/
AVBufferRef *data_ref;
@@ -130,8 +131,9 @@ typedef struct CodedBitstreamFragment {
*/
size_t data_bit_padding;
/**
- * If data is reference counted, a reference to the buffer containing
- * data. Null if data is not reference counted.
+ * A reference to the buffer containing data.
+ *
+ * Must be set if data is not NULL.
*/
AVBufferRef *data_ref;