diff options
author | Mark Thompson <sw@jkqxz.net> | 2018-05-01 00:18:16 +0100 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2018-05-01 23:31:37 +0100 |
commit | d7786b66bdd4b625765eb461ec286b846e94e9f2 (patch) | |
tree | f6ee7f4d6ea003bb04ca4cf9def4a4d279cad87a /libavcodec/cbs.h | |
parent | d176497cec95f14aed1db847b2889843ef0843dd (diff) | |
download | ffmpeg-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.h | 10 |
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; |