]> git.sesse.net Git - vlc/commitdiff
Fixed a typo in weight computation (dxva2).
authorLaurent Aimar <fenrir@videolan.org>
Tue, 8 Dec 2009 20:58:41 +0000 (21:58 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Tue, 8 Dec 2009 20:59:57 +0000 (21:59 +0100)
Noticed by GBeauchesne.

extras/contrib/src/Patches/ffmpeg-dxva2.patch

index 2e27d1ef7083ff5f511e31d9ac7f1e588ae29003..80b929017a99065241e3c51940131c801d830bcb 100644 (file)
@@ -378,7 +378,7 @@ Index: libavcodec/dxva2_h264.c
 +                    slice->Weights[list][i][0][0] = h->luma_weight[list][i];
 +                    slice->Weights[list][i][0][1] = h->luma_offset[list][i];
 +                } else {
-+                    slice->Weights[list][i][0][0] = 1 << h->luma_weight_flag[list];
++                    slice->Weights[list][i][0][0] = 1 << h->luma_log2_weight_denom;
 +                    slice->Weights[list][i][0][1] = 0;
 +                }
 +                for (plane = 1; plane < 3; plane++) {