diff options
author | Edgar Hucek <ebsi4711@gmail.com> | 2011-09-11 12:53:17 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-09-11 12:54:47 +0200 |
commit | 3fec40b601827e75aae9f0baa47671af15de181a (patch) | |
tree | 36e1a57e6297012c22a19628b1e7368ed3f22a07 /libavcodec/vaapi_h264.c | |
parent | ea0ac11e52b9cf5264f3d4eb7543e760c2a5fbb4 (diff) | |
download | ffmpeg-3fec40b601827e75aae9f0baa47671af15de181a.tar.gz |
Fix VA-API decoding artefacts.
Fixes ticket #457.
Diffstat (limited to 'libavcodec/vaapi_h264.c')
-rw-r--r-- | libavcodec/vaapi_h264.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/vaapi_h264.c b/libavcodec/vaapi_h264.c index 718e180942..01c42f5af1 100644 --- a/libavcodec/vaapi_h264.c +++ b/libavcodec/vaapi_h264.c @@ -282,7 +282,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; } |