dxva2_hevc: fix 32x32 scaling lists
authorHendrik Leppkes <h.leppkes@gmail.com>
Thu, 28 May 2015 16:25:36 +0000 (18:25 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Sun, 31 May 2015 11:05:13 +0000 (13:05 +0200)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/dxva2_hevc.c

index 9d130d9..a2abb97 100644 (file)
@@ -209,12 +209,12 @@ static void fill_scaling_lists(AVDXVAContext *ctx, const HEVCContext *h, DXVA_Qm
             qm->ucScalingLists2[i][j] = sl->sl[2][i][pos];
 
             if (i < 2)
-                qm->ucScalingLists3[i][j] = sl->sl[3][i][pos];
+                qm->ucScalingLists3[i][j] = sl->sl[3][i * 3][pos];
         }
 
         qm->ucScalingListDCCoefSizeID2[i] = sl->sl_dc[0][i];
         if (i < 2)
-            qm->ucScalingListDCCoefSizeID3[i] = sl->sl_dc[1][i];
+            qm->ucScalingListDCCoefSizeID3[i] = sl->sl_dc[1][i * 3];
     }
 }