[FFmpeg-cvslog] r22180 - trunk/libavcodec/dxva2_h264.c
fenrir
subversion
Wed Mar 3 20:54:12 CET 2010
Author: fenrir
Date: Wed Mar 3 20:54:12 2010
New Revision: 22180
Log:
Fixed DXVA2 H264 hwaccel compilation.
Modified:
trunk/libavcodec/dxva2_h264.c
Modified: trunk/libavcodec/dxva2_h264.c
==============================================================================
--- trunk/libavcodec/dxva2_h264.c Wed Mar 3 20:44:27 2010 (r22179)
+++ trunk/libavcodec/dxva2_h264.c Wed Mar 3 20:54:12 2010 (r22180)
@@ -220,11 +220,11 @@ static void fill_slice_long(AVCodecConte
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);
More information about the ffmpeg-cvslog
mailing list