[FFmpeg-cvslog] Fix VA-API decoding artefacts.

Edgar Hucek git at videolan.org
Sun Sep 11 12:57:42 CEST 2011


ffmpeg | branch: release/0.7 | Edgar Hucek <ebsi4711 at gmail.com> | Sun Sep 11 12:53:17 2011 +0200| [01f1201267f3d5c24d835c940545665382dc4ef1] | committer: Carl Eugen Hoyos

Fix VA-API decoding artefacts.

Fixes ticket #457.
(cherry picked from commit 3fec40b601827e75aae9f0baa47671af15de181a)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=01f1201267f3d5c24d835c940545665382dc4ef1
---

 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 922dc86..7d8eb60 100644
--- a/libavcodec/vaapi_h264.c
+++ b/libavcodec/vaapi_h264.c
@@ -281,7 +281,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;
 }
 



More information about the ffmpeg-cvslog mailing list