From 6e92181bf836f48627a4733b6fd240a99fd36365 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 12 May 2016 14:25:52 +0200 Subject: h264: pass just the PPS to get_chroma_qp() It does not need the whole context. This will simplify the following commit. --- libavcodec/h264_cabac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavcodec/h264_cabac.c') diff --git a/libavcodec/h264_cabac.c b/libavcodec/h264_cabac.c index 80e438985a..783bc0f5c9 100644 --- a/libavcodec/h264_cabac.c +++ b/libavcodec/h264_cabac.c @@ -2385,8 +2385,8 @@ decode_intra_mb: if (sl->qscale < 0) sl->qscale += max_qp + 1; else sl->qscale -= max_qp + 1; } - sl->chroma_qp[0] = get_chroma_qp(h, 0, sl->qscale); - sl->chroma_qp[1] = get_chroma_qp(h, 1, sl->qscale); + sl->chroma_qp[0] = get_chroma_qp(h->ps.pps, 0, sl->qscale); + sl->chroma_qp[1] = get_chroma_qp(h->ps.pps, 1, sl->qscale); }else sl->last_qscale_diff=0; -- cgit v1.2.3