mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
qsv: add return value check for MFXQueryIMPL
add a return value check for function MFXQueryIMPL to handle the error message. Signed-off-by: Tong Wu <tong1.wu@intel.com>
This commit is contained in:
parent
342d4fb056
commit
d05ca3d779
@ -424,7 +424,10 @@ int ff_qsv_init_internal_session(AVCodecContext *avctx, QSVSession *qs,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
MFXQueryIMPL(qs->session, &impl);
|
ret = MFXQueryIMPL(qs->session, &impl);
|
||||||
|
if (ret != MFX_ERR_NONE)
|
||||||
|
return ff_qsv_print_error(avctx, ret,
|
||||||
|
"Error querying the session attributes");
|
||||||
|
|
||||||
switch (MFX_IMPL_BASETYPE(impl)) {
|
switch (MFX_IMPL_BASETYPE(impl)) {
|
||||||
case MFX_IMPL_SOFTWARE:
|
case MFX_IMPL_SOFTWARE:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user