summaryrefslogtreecommitdiff
path: root/libavcodec/cbs.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-01-10 19:22:59 -0300
committerJames Almer <jamrial@gmail.com>2021-01-10 19:23:07 -0300
commit9219ed213d10fb2ae13da15402f5acf35ffb25ba (patch)
tree60b3a73d29592c7e08a803b0c5468331c6dc786b /libavcodec/cbs.h
parenta0acc44106ea615cf378048fc721e7d5af871bf7 (diff)
downloadffmpeg-9219ed213d10fb2ae13da15402f5acf35ffb25ba.tar.gz
avcodec/cbs: constify decompose_unit_types
CBS doesn't change its contents in any way whatsoever internally, and most users already set it to a const array. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/cbs.h')
-rw-r--r--libavcodec/cbs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cbs.h b/libavcodec/cbs.h
index 3fd0a0ef33..f022282b75 100644
--- a/libavcodec/cbs.h
+++ b/libavcodec/cbs.h
@@ -196,7 +196,7 @@ typedef struct CodedBitstreamContext {
* Types not in this list will be available in bitstream form only.
* If NULL, all supported types will be decomposed.
*/
- CodedBitstreamUnitType *decompose_unit_types;
+ const CodedBitstreamUnitType *decompose_unit_types;
/**
* Length of the decompose_unit_types array.
*/