You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
libavcodec/qsvenc.c: A warning message when library will work at partial hardware acceleration.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
committed by
Michael Niedermayer
parent
2375a85c36
commit
115c14c3b6
@@ -226,7 +226,9 @@ int ff_qsv_enc_init(AVCodecContext *avctx, QSVEncContext *q)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ret = MFXVideoENCODE_Init(q->session, &q->param);
|
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");
|
av_log(avctx, AV_LOG_ERROR, "Error initializing the encoder\n");
|
||||||
return ff_qsv_error(ret);
|
return ff_qsv_error(ret);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user