diff options
author | James Almer <jamrial@gmail.com> | 2020-11-15 18:55:38 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-01-04 16:28:29 -0300 |
commit | 9caf132462de6fe9b68644703c953c899c4e5bb8 (patch) | |
tree | 966e838bb0a7f853ebb59f38c24825318e6c9972 /libavcodec/cbs_internal.h | |
parent | 0cd8769207f1a89fc2236aab9da1c77f5a0b490a (diff) | |
download | ffmpeg-9caf132462de6fe9b68644703c953c899c4e5bb8.tar.gz |
avcodec/cbs: add an AVClass to CodedBitstreamType for option handling
So unit parsing may be configured with caller set options.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/cbs_internal.h')
-rw-r--r-- | libavcodec/cbs_internal.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/cbs_internal.h b/libavcodec/cbs_internal.h index faa847aad3..a392880036 100644 --- a/libavcodec/cbs_internal.h +++ b/libavcodec/cbs_internal.h @@ -86,6 +86,12 @@ typedef const struct CodedBitstreamUnitTypeDescriptor { typedef struct CodedBitstreamType { enum AVCodecID codec_id; + // A class for the private data, used to declare private AVOptions. + // This field is NULL for types that do not declare any options. + // If this field is non-NULL, the first member of the filter private data + // must be a pointer to AVClass. + const AVClass *priv_class; + size_t priv_data_size; // List of unit type descriptors for this codec. |