diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-05-12 14:25:52 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-06-12 20:27:53 +0200 |
commit | 6e92181bf836f48627a4733b6fd240a99fd36365 (patch) | |
tree | e757205629068072cacd770add80597fee464ec4 /libavcodec/h264.h | |
parent | d1f539c97e04e7cebecaf6916c5064f243d39fcf (diff) | |
download | ffmpeg-6e92181bf836f48627a4733b6fd240a99fd36365.tar.gz |
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.h')
-rw-r--r-- | libavcodec/h264.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h index 9a336a6ea1..dd89b490f2 100644 --- a/libavcodec/h264.h +++ b/libavcodec/h264.h @@ -783,9 +783,9 @@ static av_always_inline uint16_t pack8to16(int a, int b) /** * Get the chroma qp. */ -static av_always_inline int get_chroma_qp(const H264Context *h, int t, int qscale) +static av_always_inline int get_chroma_qp(const PPS *pps, int t, int qscale) { - return h->ps.pps->chroma_qp_table[t][qscale]; + return pps->chroma_qp_table[t][qscale]; } /** |