libavcodec/qsvenc.c: A warning message when library will work at partial hardware...
authorIvan Uskov <ivan.uskov@nablet.com>
Mon, 6 Jul 2015 13:58:33 +0000 (16:58 +0300)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 6 Jul 2015 15:39:08 +0000 (17:39 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/qsvenc.c

index f3008c0..dc8b5f2 100644 (file)
@@ -226,7 +226,9 @@ int ff_qsv_enc_init(AVCodecContext *avctx, QSVEncContext *q)
     }
 
     ret = MFXVideoENCODE_Init(q->session, &q->param);
-    if (ret < 0) {
+    if (MFX_WRN_PARTIAL_ACCELERATION==ret) {
+        av_log(avctx, AV_LOG_WARNING, "Encoder will work with partial HW acceleration\n");
+    } else if (ret < 0) {
         av_log(avctx, AV_LOG_ERROR, "Error initializing the encoder\n");
         return ff_qsv_error(ret);
     }