diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-07-28 14:28:56 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-07-28 14:28:56 +0200 |
commit | 772dfd5f6e5d0722b9c577929c7de41d851cf87d (patch) | |
tree | 750db0be00c54d1e21ba4e4a5c29a660e497fd02 /libavcodec/hevc.c | |
parent | 42ffa226f9a5eb9458415223d1b70e3e7f7a946d (diff) |
avcodec/hevc: add some const to cbf arrays
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/hevc.c')
-rw-r--r-- | libavcodec/hevc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index 3e9c86ae2e..592d897e3b 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -1082,7 +1082,7 @@ static int hls_transform_tree(HEVCContext *s, int x0, int y0, int xBase, int yBase, int cb_xBase, int cb_yBase, int log2_cb_size, int log2_trafo_size, int trafo_depth, int blk_idx, - int *base_cbf_cb, int *base_cbf_cr) + const int *base_cbf_cb, const int *base_cbf_cr) { HEVCLocalContext *lc = s->HEVClc; uint8_t split_transform_flag; @@ -2076,7 +2076,7 @@ static int hls_coding_unit(HEVCContext *s, int x0, int y0, int log2_cb_size) lc->cu.rqt_root_cbf = ff_hevc_no_residual_syntax_flag_decode(s); } if (lc->cu.rqt_root_cbf) { - int cbf[2] = { 0 }; + const static int cbf[2] = { 0 }; lc->cu.max_trafo_depth = lc->cu.pred_mode == MODE_INTRA ? s->sps->max_transform_hierarchy_depth_intra + lc->cu.intra_split_flag : s->sps->max_transform_hierarchy_depth_inter; |