[FFmpeg-cvslog] avcodec/hevc: remove FFUMOD() in slice qp_y init

Michael Niedermayer git at videolan.org
Sat Feb 8 12:42:29 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Feb  8 12:14:43 2014 +0100| [3b6655ebff7c63271c55c4a909f9d9b512751041] | committer: Michael Niedermayer

avcodec/hevc: remove FFUMOD() in slice qp_y init

This has become redundant

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

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

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

diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index ebbe9b6..95f538f 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;
 



More information about the ffmpeg-cvslog mailing list