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

Unified Diff: patched-ffmpeg-mt/libavcodec/vaapi_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/vaapi_h264.c
===================================================================
--- patched-ffmpeg-mt/libavcodec/vaapi_h264.c (revision 41250)
+++ patched-ffmpeg-mt/libavcodec/vaapi_h264.c (working copy)
@@ -198,16 +198,16 @@
/* VA API also wants the inferred (default) values, not
only what is available in the bitstream (7.4.3.2). */
if (h->luma_weight_flag[list]) {
- luma_weight[i] = h->luma_weight[list][i];
- luma_offset[i] = h->luma_offset[list][i];
+ luma_weight[i] = h->luma_weight[i][list][0];
+ luma_offset[i] = h->luma_weight[i][list][1];
} else {
luma_weight[i] = 1 << h->luma_log2_weight_denom;
luma_offset[i] = 0;
}
for (j = 0; j < 2; j++) {
if (h->chroma_weight_flag[list]) {
- chroma_weight[i][j] = h->chroma_weight[list][i][j];
- chroma_offset[i][j] = h->chroma_offset[list][i][j];
+ chroma_weight[i][j] = h->chroma_weight[i][list][j][0];
+ chroma_offset[i][j] = h->chroma_weight[i][list][j][1];
} else {
chroma_weight[i][j] = 1 << h->chroma_log2_weight_denom;
chroma_offset[i][j] = 0;

Powered by Google App Engine
This is Rietveld 408576698