aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdgar Hucek <ebsi4711@gmail.com>2011-09-11 12:53:17 +0200
committerAnton Khirnov <anton@khirnov.net>2014-08-14 05:50:08 +0000
commitab059f0aa896e01e8e4529f5f714fde111f05377 (patch)
treed224da93109626281d864bb63ad8583068aef341
parente8049af1325dd59a51546c15b2e71a0f578e9d27 (diff)
downloadffmpeg-ab059f0aa896e01e8e4529f5f714fde111f05377.tar.gz
vaapi: set the scaling list correctly.
Fixes VAAPI decoding artefacts. CC:libav-stable@libav.org Signed-off-by: Anton Khirnov <anton@khirnov.net>
-rw-r--r--libavcodec/vaapi_h264.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/vaapi_h264.c b/libavcodec/vaapi_h264.c
index 7529f0469c..651a50b85c 100644
--- a/libavcodec/vaapi_h264.c
+++ b/libavcodec/vaapi_h264.c
@@ -282,7 +282,8 @@ static int vaapi_h264_start_frame(AVCodecContext *avctx,
if (!iq_matrix)
return -1;
memcpy(iq_matrix->ScalingList4x4, h->pps.scaling_matrix4, sizeof(iq_matrix->ScalingList4x4));
- memcpy(iq_matrix->ScalingList8x8, h->pps.scaling_matrix8, sizeof(iq_matrix->ScalingList8x8));
+ memcpy(iq_matrix->ScalingList8x8[0], h->pps.scaling_matrix8[0], sizeof(iq_matrix->ScalingList8x8[0]));
+ memcpy(iq_matrix->ScalingList8x8[1], h->pps.scaling_matrix8[3], sizeof(iq_matrix->ScalingList8x8[0]));
return 0;
}