[FFmpeg-cvslog] vaapi: set the scaling list correctly.

Edgar Hucek git at videolan.org
Thu Aug 14 12:43:03 CEST 2014


ffmpeg | branch: master | Edgar Hucek <ebsi4711 at gmail.com> | Sun Sep 11 12:53:17 2011 +0200| [ab059f0aa896e01e8e4529f5f714fde111f05377] | committer: Anton Khirnov

vaapi: set the scaling list correctly.

Fixes VAAPI decoding artefacts.

CC:libav-stable at libav.org

Signed-off-by: Anton Khirnov <anton at khirnov.net>

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

 libavcodec/vaapi_h264.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/vaapi_h264.c b/libavcodec/vaapi_h264.c
index 7529f04..651a50b 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;
 }
 



More information about the ffmpeg-cvslog mailing list