1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Fixed DXVA2 H264 hwaccel compilation.

Originally committed as revision 22180 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Laurent Aimar 2010-03-03 19:54:12 +00:00
parent 65f3c029b9
commit 19a9846f3d

View File

@ -220,11 +220,11 @@ static void fill_slice_long(AVCodecContext *avctx, DXVA_Slice_H264_Long *slice,
for (plane = 0; plane < 3; plane++) { for (plane = 0; plane < 3; plane++) {
int w, o; int w, o;
if (plane == 0 && h->luma_weight_flag[list]) { if (plane == 0 && h->luma_weight_flag[list]) {
w = h->luma_weight[list][i]; w = h->luma_weight[list][i][0];
o = h->luma_offset[list][i]; o = h->luma_weight[list][i][1];
} else if (plane >= 1 && h->chroma_weight_flag[list]) { } else if (plane >= 1 && h->chroma_weight_flag[list]) {
w = h->chroma_weight[list][i][plane-1]; w = h->chroma_weight[list][i][plane-1][0];
o = h->chroma_offset[list][i][plane-1]; o = h->chroma_weight[list][i][plane-1][1];
} else { } else {
w = 1 << (plane == 0 ? h->luma_log2_weight_denom : w = 1 << (plane == 0 ? h->luma_log2_weight_denom :
h->chroma_log2_weight_denom); h->chroma_log2_weight_denom);