Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-05-12 15:25:52 +0300
committerAnton Khirnov <anton@khirnov.net>2016-06-12 21:27:53 +0300
commit6e92181bf836f48627a4733b6fd240a99fd36365 (patch)
treee757205629068072cacd770add80597fee464ec4 /libavcodec/h264_cavlc.c
parentd1f539c97e04e7cebecaf6916c5064f243d39fcf (diff)
h264: pass just the PPS to get_chroma_qp()
It does not need the whole context. This will simplify the following commit.
Diffstat (limited to 'libavcodec/h264_cavlc.c')
-rw-r--r--libavcodec/h264_cavlc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h264_cavlc.c b/libavcodec/h264_cavlc.c
index 5d80243968..dabd61cd79 100644
--- a/libavcodec/h264_cavlc.c
+++ b/libavcodec/h264_cavlc.c
@@ -1110,8 +1110,8 @@ decode_intra_mb:
}
}
- 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);
if ((ret = decode_luma_residual(h, sl, gb, scan, scan8x8, pixel_shift, mb_type, cbp, 0)) < 0 ) {
return -1;