]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/hwcontext_qsv.c
swscale/ppc: VSX-optimize hScale16To*
[ffmpeg] / libavutil / hwcontext_qsv.c
index b6d8bfe2bfbaaf60aa7b200a6e9e8b2640344fe8..49b5952cef28a17ebe27c92d724e100435091d05 100644 (file)
@@ -863,7 +863,8 @@ static int qsv_transfer_data_to(AVHWFramesContext *ctx, AVFrame *dst,
     mfxStatus err;
     int ret = 0;
     /* make a copy if the input is not padded as libmfx requires */
-    AVFrame tmp_frame, *src_frame;
+    AVFrame tmp_frame;
+    const AVFrame *src_frame;
     int realigned = 0;
 
 
@@ -891,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;