]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/qsvdec.c
avcodec.h: split AVCodec API into its own header
[ffmpeg] / libavcodec / qsvdec.c
index baaf1f205f724f0d3a8cd21d78b4d494ff20861e..fc25dc73e577d702d5df82bb22d3a4bd841f1749 100644 (file)
@@ -99,9 +99,11 @@ static int qsv_init_session(AVCodecContext *avctx, QSVContext *q, mfxSession ses
     int ret;
 
     if (q->gpu_copy == MFX_GPUCOPY_ON &&
-        !(q->iopattern & MFX_IOPATTERN_OUT_SYSTEM_MEMORY))
+        !(q->iopattern & MFX_IOPATTERN_OUT_SYSTEM_MEMORY)) {
         av_log(avctx, AV_LOG_WARNING, "GPU-accelerated memory copy "
-                        "only works in MFX_IOPATTERN_OUT_SYSTEM_MEMORY.\n");
+                        "only works in system memory mode.\n");
+        q->gpu_copy = MFX_GPUCOPY_OFF;
+    }
     if (session) {
         q->session = session;
     } else if (hw_frames_ref) {