aboutsummaryrefslogtreecommitdiff
path: root/lib/ffmpeg/libavcodec
diff options
context:
space:
mode:
authorEdgar Hucek <ebsi4711@gmail.com>2011-09-11 12:53:17 +0200
committerelupus <elupus@xbmc.org>2011-12-09 22:08:35 +0100
commit1273fc0e2c262566be26b7c4a5155bda725f7a51 (patch)
treedbd573d44bd96a0ba55d885852d0c902ec432a96 /lib/ffmpeg/libavcodec
parentea07d6a697ef98f336c33d50b4b3adfa2a85aab8 (diff)
Fix VA-API decoding artefacts.
Fixes ffmpeg ticket #457. Signed-off-by: elupus <elupus@xbmc.org>
Diffstat (limited to 'lib/ffmpeg/libavcodec')
-rw-r--r--lib/ffmpeg/libavcodec/vaapi_h264.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ffmpeg/libavcodec/vaapi_h264.c b/lib/ffmpeg/libavcodec/vaapi_h264.c
index cbe526b6e7..6359f4779a 100644
--- a/lib/ffmpeg/libavcodec/vaapi_h264.c
+++ b/lib/ffmpeg/libavcodec/vaapi_h264.c
@@ -280,7 +280,8 @@ static int 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;
}