[FFmpeg-cvslog] avcodec/hevc: add some const to cbf arrays

Michael Niedermayer git at videolan.org
Mon Jul 28 14:34:09 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Jul 28 14:28:56 2014 +0200| [772dfd5f6e5d0722b9c577929c7de41d851cf87d] | committer: Michael Niedermayer

avcodec/hevc: add some const to cbf arrays

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=772dfd5f6e5d0722b9c577929c7de41d851cf87d
---

 libavcodec/hevc.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index 3e9c86a..592d897 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;



More information about the ffmpeg-cvslog mailing list