avcodec/nvdec_hevc: fix scaling lists
authorPhilip Langdale <philipl@overt.org>
Thu, 10 May 2018 01:48:59 +0000 (18:48 -0700)
committerTimo Rothenpieler <timo@rothenpieler.org>
Thu, 10 May 2018 16:41:56 +0000 (18:41 +0200)
commit1261003700322789d62a892e3325f8b58349d051
tree5d0018fe0ffc65b1d41f91686028b57cda7a29f6
parent46c1ee19171c4704ad7dec65b1c716a727238486
avcodec/nvdec_hevc: fix scaling lists

The main issue here was the use of [i] instead of [i * 3] for the 32x32
matrix. As part of fixing this, I changed the code to match that used
in vdpau_hevc, which I spent a lot of time verifying.

I also changed to calculating NumPocTotalCurr using the existing helper,
which is what vdpau does.

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
libavcodec/nvdec_hevc.c