Commit 6adf794d authored by Laurent Aimar's avatar Laurent Aimar

Fixed a typo in weight computation (dxva2).

Noticed by GBeauchesne.
parent f9475d6b
......@@ -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++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment