Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(303)

Unified Diff: patched-ffmpeg-mt/libavcodec/dxva2_h264.c

Issue 789004: ffmpeg roll of source to mar 9 version... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: patched-ffmpeg-mt/libavcodec/dxva2_h264.c
===================================================================
--- patched-ffmpeg-mt/libavcodec/dxva2_h264.c (revision 41250)
+++ patched-ffmpeg-mt/libavcodec/dxva2_h264.c (working copy)
@@ -220,11 +220,11 @@
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[i][list][0];
+ o = h->luma_weight[i][list][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[i][list][plane-1][0];
+ o = h->chroma_weight[i][list][plane-1][1];
} else {
w = 1 << (plane == 0 ? h->luma_log2_weight_denom :
h->chroma_log2_weight_denom);

Powered by Google App Engine
This is Rietveld 408576698