]> git.sesse.net Git - ffmpeg/commitdiff
lavu/hwcontext_qsv: Fix the realign check for hwupload
authorLinjie Fu <linjie.fu@intel.com>
Mon, 15 Apr 2019 13:23:40 +0000 (21:23 +0800)
committerZhong Li <zhong.li@intel.com>
Tue, 30 Apr 2019 09:14:23 +0000 (17:14 +0800)
Fix the aligned check in hwupload, input surface should be 16 aligned
too.

Partly fix #7830.

Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Signed-off-by: Zhong Li <zhong.li@intel.com>
libavutil/hwcontext_qsv.c

index 8f9838d7d819b64db7e5251988a6c77d871451ef..49b5952cef28a17ebe27c92d724e100435091d05 100644 (file)
@@ -892,8 +892,7 @@ static int qsv_transfer_data_to(AVHWFramesContext *ctx, AVFrame *dst,
     if (ret < 0)
         return ret;
 
-
-    if (src->height & 16 || src->linesize[0] & 16) {
+    if (src->height & 15 || src->linesize[0] & 15) {
         realigned = 1;
         memset(&tmp_frame, 0, sizeof(tmp_frame));
         tmp_frame.format         = src->format;