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;