aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-02-08 12:14:43 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-02-08 12:27:00 +0100
commit3b6655ebff7c63271c55c4a909f9d9b512751041 (patch)
tree99dfc1c4e5a4b83e15d62b22e7cd6bb4e0ac0b55
parent1e263133cc067b1986ac6f46f4a77f9fa1f6403c (diff)
downloadffmpeg-3b6655ebff7c63271c55c4a909f9d9b512751041.tar.gz
avcodec/hevc: remove FFUMOD() in slice qp_y init
This has become redundant Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/hevc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index ebbe9b6436..95f538fec4 100644
--- a/libavcodec/hevc.c
+++ b/libavcodec/hevc.c
@@ -709,8 +709,7 @@ static int hls_slice_header(HEVCContext *s)
s->HEVClc->first_qp_group = !s->sh.dependent_slice_segment_flag;
if (!s->pps->cu_qp_delta_enabled_flag)
- s->HEVClc->qp_y = FFUMOD(s->sh.slice_qp + 52 + 2 * s->sps->qp_bd_offset,
- 52 + s->sps->qp_bd_offset) - s->sps->qp_bd_offset;
+ s->HEVClc->qp_y = s->sh.slice_qp;
s->slice_initialized = 1;