Mercurial > libavcodec.hg
comparison dxva2_h264.c @ 11364:4b64693d115d libavcodec
Fixed DXVA2 H264 hwaccel after luma/chroma_weight changes.
author | fenrir |
---|---|
date | Thu, 04 Mar 2010 19:12:20 +0000 |
parents | d48922f77738 |
children | 8a4984c5cacc |
comparison
equal
deleted
inserted
replaced
11363:a4596f842e18 | 11364:4b64693d115d |
---|---|
218 ff_dxva2_get_surface_index(ctx, r), | 218 ff_dxva2_get_surface_index(ctx, r), |
219 r->reference == PICT_BOTTOM_FIELD); | 219 r->reference == PICT_BOTTOM_FIELD); |
220 for (plane = 0; plane < 3; plane++) { | 220 for (plane = 0; plane < 3; plane++) { |
221 int w, o; | 221 int w, o; |
222 if (plane == 0 && h->luma_weight_flag[list]) { | 222 if (plane == 0 && h->luma_weight_flag[list]) { |
223 w = h->luma_weight[list][i][0]; | 223 w = h->luma_weight[i][list][0]; |
224 o = h->luma_weight[list][i][1]; | 224 o = h->luma_weight[i][list][1]; |
225 } else if (plane >= 1 && h->chroma_weight_flag[list]) { | 225 } else if (plane >= 1 && h->chroma_weight_flag[list]) { |
226 w = h->chroma_weight[list][i][plane-1][0]; | 226 w = h->chroma_weight[i][list][plane-1][0]; |
227 o = h->chroma_weight[list][i][plane-1][1]; | 227 o = h->chroma_weight[i][list][plane-1][1]; |
228 } else { | 228 } else { |
229 w = 1 << (plane == 0 ? h->luma_log2_weight_denom : | 229 w = 1 << (plane == 0 ? h->luma_log2_weight_denom : |
230 h->chroma_log2_weight_denom); | 230 h->chroma_log2_weight_denom); |
231 o = 0; | 231 o = 0; |
232 } | 232 } |