aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-09-21 23:47:34 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-09-21 23:48:41 +0200
commit5d833dd29985b53789304b350ac229abd4de0ff6 (patch)
treecf9dbb041aeaa13b854c1f0b2ae35e0cce7b4689 /libavcodec
parent01f1201267f3d5c24d835c940545665382dc4ef1 (diff)
downloadffmpeg-5d833dd29985b53789304b350ac229abd4de0ff6.tar.gz
Fix dxva2 decoding for some H264 samples.
(cherry picked from commit bf7dc6b29d785f149f18c39db021413e08735546)
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/dxva2_h264.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/dxva2_h264.c b/libavcodec/dxva2_h264.c
index bc80e982fb..3f728e27b5 100644
--- a/libavcodec/dxva2_h264.c
+++ b/libavcodec/dxva2_h264.c
@@ -158,9 +158,10 @@ static void fill_scaling_lists(const H264Context *h, DXVA_Qmatrix_H264 *qm)
for (j = 0; j < 16; j++)
qm->bScalingLists4x4[i][j] = h->pps.scaling_matrix4[i][zigzag_scan[j]];
- for (i = 0; i < 2; i++)
- for (j = 0; j < 64; j++)
- qm->bScalingLists8x8[i][j] = h->pps.scaling_matrix8[i][ff_zigzag_direct[j]];
+ for (j = 0; j < 64; j++) {
+ qm->bScalingLists8x8[0][j] = h->pps.scaling_matrix8[0][ff_zigzag_direct[j]];
+ qm->bScalingLists8x8[1][j] = h->pps.scaling_matrix8[3][ff_zigzag_direct[j]];
+ }
}
static int is_slice_short(struct dxva_context *ctx)