changeset 11347:d48922f77738 libavcodec

Fixed DXVA2 H264 hwaccel compilation.
author fenrir
date Wed, 03 Mar 2010 19:54:12 +0000
parents a8b76b8455bc
children 3c624d573966
files dxva2_h264.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/dxva2_h264.c	Wed Mar 03 19:44:27 2010 +0000
+++ b/dxva2_h264.c	Wed Mar 03 19:54:12 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];
-                        o = h->luma_offset[list][i];
+                        w = h->luma_weight[list][i][0];
+                        o = h->luma_weight[list][i][1];
                     } else if (plane >= 1 && h->chroma_weight_flag[list]) {
-                        w = h->chroma_weight[list][i][plane-1];
-                        o = h->chroma_offset[list][i][plane-1];
+                        w = h->chroma_weight[list][i][plane-1][0];
+                        o = h->chroma_weight[list][i][plane-1][1];
                     } else {
                         w = 1 << (plane == 0 ? h->luma_log2_weight_denom :
                                                h->chroma_log2_weight_denom);