# HG changeset patch # User fenrir # Date 1267729940 0 # Node ID 4b64693d115d4020bb24d088ada29a815d33e366 # Parent a4596f842e189881be5b9b9d00a7d412fa72d014 Fixed DXVA2 H264 hwaccel after luma/chroma_weight changes. diff -r a4596f842e18 -r 4b64693d115d dxva2_h264.c --- a/dxva2_h264.c Thu Mar 04 19:10:44 2010 +0000 +++ b/dxva2_h264.c Thu Mar 04 19:12:20 2010 +0000 @@ -220,11 +220,11 @@ for (plane = 0; plane < 3; plane++) { int w, o; if (plane == 0 && h->luma_weight_flag[list]) { - w = h->luma_weight[list][i][0]; - o = h->luma_weight[list][i][1]; + w = h->luma_weight[i][list][0]; + o = h->luma_weight[i][list][1]; } else if (plane >= 1 && h->chroma_weight_flag[list]) { - w = h->chroma_weight[list][i][plane-1][0]; - o = h->chroma_weight[list][i][plane-1][1]; + w = h->chroma_weight[i][list][plane-1][0]; + o = h->chroma_weight[i][list][plane-1][1]; } else { w = 1 << (plane == 0 ? h->luma_log2_weight_denom : h->chroma_log2_weight_denom);