diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-12-18 01:55:02 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-12-18 01:55:02 +0100 |
commit | 99f8c9e4d177643b3bad0540437c0e53a185b198 (patch) | |
tree | b317497795b9a56a1424d67b762e7eda54b81280 /libavcodec | |
parent | 00d7555f3468193a761c0534df6742646b15829c (diff) | |
download | ffmpeg-99f8c9e4d177643b3bad0540437c0e53a185b198.tar.gz |
avcodec/hevc: move qp_block_mask to where its used
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/hevc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index 7a9935d498..0a11c76b9b 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -2102,7 +2102,6 @@ static int hls_coding_quadtree(HEVCContext *s, int x0, int y0, HEVCLocalContext *lc = s->HEVClc; const int cb_size = 1 << log2_cb_size; int ret; - int qp_block_mask = (1<<(s->sps->log2_ctb_size - s->pps->diff_cu_qp_delta_depth)) - 1; int split_cu; lc->ct_depth = cb_depth; @@ -2125,6 +2124,7 @@ static int hls_coding_quadtree(HEVCContext *s, int x0, int y0, } if (split_cu) { + int qp_block_mask = (1<<(s->sps->log2_ctb_size - s->pps->diff_cu_qp_delta_depth)) - 1; const int cb_size_split = cb_size >> 1; const int x1 = x0 + cb_size_split; const int y1 = y0 + cb_size_split; |