diff options
author | James Almer <jamrial@gmail.com> | 2021-01-10 19:22:59 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-01-10 19:23:07 -0300 |
commit | 9219ed213d10fb2ae13da15402f5acf35ffb25ba (patch) | |
tree | 60b3a73d29592c7e08a803b0c5468331c6dc786b /libavcodec/av1_frame_split_bsf.c | |
parent | a0acc44106ea615cf378048fc721e7d5af871bf7 (diff) |
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/av1_frame_split_bsf.c')
-rw-r--r-- | libavcodec/av1_frame_split_bsf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/av1_frame_split_bsf.c b/libavcodec/av1_frame_split_bsf.c index 13bebe19f5..fa8b887b6c 100644 --- a/libavcodec/av1_frame_split_bsf.c +++ b/libavcodec/av1_frame_split_bsf.c @@ -214,7 +214,7 @@ static int av1_frame_split_init(AVBSFContext *ctx) if (ret < 0) return ret; - s->cbc->decompose_unit_types = (CodedBitstreamUnitType*)decompose_unit_types; + s->cbc->decompose_unit_types = decompose_unit_types; s->cbc->nb_decompose_unit_types = FF_ARRAY_ELEMS(decompose_unit_types); if (!ctx->par_in->extradata_size) |