Index: patched-ffmpeg-mt/libavcodec/h264_refs.c |
=================================================================== |
--- patched-ffmpeg-mt/libavcodec/h264_refs.c (revision 41250) |
+++ patched-ffmpeg-mt/libavcodec/h264_refs.c (working copy) |
@@ -315,11 +315,11 @@ |
field[1].reference = PICT_BOTTOM_FIELD; |
field[1].poc= field[1].field_poc[1]; |
- h->luma_weight[list][16+2*i] = h->luma_weight[list][16+2*i+1] = h->luma_weight[list][i]; |
- h->luma_offset[list][16+2*i] = h->luma_offset[list][16+2*i+1] = h->luma_offset[list][i]; |
+ h->luma_weight[16+2*i][list][0] = h->luma_weight[16+2*i+1][list][0] = h->luma_weight[i][list][0]; |
+ h->luma_weight[16+2*i][list][1] = h->luma_weight[16+2*i+1][list][1] = h->luma_weight[i][list][1]; |
for(j=0; j<2; j++){ |
- h->chroma_weight[list][16+2*i][j] = h->chroma_weight[list][16+2*i+1][j] = h->chroma_weight[list][i][j]; |
- h->chroma_offset[list][16+2*i][j] = h->chroma_offset[list][16+2*i+1][j] = h->chroma_offset[list][i][j]; |
+ h->chroma_weight[16+2*i][list][j][0] = h->chroma_weight[16+2*i+1][list][j][0] = h->chroma_weight[i][list][j][0]; |
+ h->chroma_weight[16+2*i][list][j][1] = h->chroma_weight[16+2*i+1][list][j][1] = h->chroma_weight[i][list][j][1]; |
} |
} |
} |