X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fcbs.h;h=53ac360bb1dda214b6e3e0d958993e1589e04503;hb=420ab946ace27e4b4bfb6c2be0a65a4ffd6e05a1;hp=402eb39e00aef758aa9575f3d80c45922007f308;hpb=c00579ab32aa620116c97dbc52c4c31418bc7fbb;p=ffmpeg diff --git a/libavcodec/cbs.h b/libavcodec/cbs.h index 402eb39e00a..53ac360bb1d 100644 --- a/libavcodec/cbs.h +++ b/libavcodec/cbs.h @@ -48,6 +48,7 @@ struct CodedBitstreamType; * H.264 / AVC: nal_unit_type * H.265 / HEVC: nal_unit_type * MPEG-2: start code value (without prefix) + * VP9: unused, set to zero (every unit is a frame) */ typedef uint32_t CodedBitstreamUnitType; @@ -84,8 +85,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 +132,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;