diff options
author | Ivan Uskov <ivan.uskov@nablet.com> | 2015-07-06 16:58:33 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-07-06 17:39:08 +0200 |
commit | 115c14c3b6644181e0331bfbda7f86c61e939a7d (patch) | |
tree | 61f1d384e966275e4cf6d590286b8fc8d0bfd349 /libavcodec | |
parent | 2375a85c36c4941042e6ee58a31d6560bde91d37 (diff) | |
download | ffmpeg-115c14c3b6644181e0331bfbda7f86c61e939a7d.tar.gz |
libavcodec/qsvenc.c: A warning message when library will work at partial hardware acceleration.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/qsvenc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index f3008c0fe3..dc8b5f238a 100644 --- a/libavcodec/qsvenc.c +++ b/libavcodec/qsvenc.c @@ -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); } |