summaryrefslogtreecommitdiff
path: root/libavcodec/dxva2_h264.c
diff options
context:
space:
mode:
authorLaurent Aimar <fenrir@videolan.org>2010-03-04 19:12:20 +0000
committerLaurent Aimar <fenrir@videolan.org>2010-03-04 19:12:20 +0000
commit6c389ddbd32d0e08d3db8510d55fc2d3924ea495 (patch)
tree14d74614467bd15cbc8e6d54a09e980c3b785831 /libavcodec/dxva2_h264.c
parentb8fb21e902f83d8bd8dc340a52cadfd64e685774 (diff)
Fixed DXVA2 H264 hwaccel after luma/chroma_weight changes.
Originally committed as revision 22211 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dxva2_h264.c')
-rw-r--r--libavcodec/dxva2_h264.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/dxva2_h264.c b/libavcodec/dxva2_h264.c
index bf66f1e01e..9262bb8957 100644
--- a/libavcodec/dxva2_h264.c
+++ b/libavcodec/dxva2_h264.c
@@ -220,11 +220,11 @@ static void fill_slice_long(AVCodecContext *avctx, DXVA_Slice_H264_Long *slice,
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);