mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-27 18:02:11 +00:00
Merge commit 'e05e5920a4e1f1f15cc8a7c843159d519f6ec18e'
* commit 'e05e5920a4e1f1f15cc8a7c843159d519f6ec18e': qsv: Error out if getting session handle failed in avfilter Merged-by: James Almer <jamrial@gmail.com>
This commit is contained in:
commit
185aa5e896
@ -503,6 +503,11 @@ static int init_vpp_session(AVFilterContext *avctx, QSVVPPContext *s)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ret != MFX_ERR_NONE) {
|
||||||
|
av_log(avctx, AV_LOG_ERROR, "Error getting the session handle\n");
|
||||||
|
return AVERROR_UNKNOWN;
|
||||||
|
}
|
||||||
|
|
||||||
/* create a "slave" session with those same properties, to be used for vpp */
|
/* create a "slave" session with those same properties, to be used for vpp */
|
||||||
ret = MFXInit(impl, &ver, &s->session);
|
ret = MFXInit(impl, &ver, &s->session);
|
||||||
if (ret != MFX_ERR_NONE) {
|
if (ret != MFX_ERR_NONE) {
|
||||||
|
@ -202,6 +202,11 @@ static int init_out_session(AVFilterContext *ctx)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (err != MFX_ERR_NONE) {
|
||||||
|
av_log(ctx, AV_LOG_ERROR, "Error getting the session handle\n");
|
||||||
|
return AVERROR_UNKNOWN;
|
||||||
|
}
|
||||||
|
|
||||||
/* create a "slave" session with those same properties, to be used for
|
/* create a "slave" session with those same properties, to be used for
|
||||||
* actual deinterlacing */
|
* actual deinterlacing */
|
||||||
err = MFXInit(impl, &ver, &s->session);
|
err = MFXInit(impl, &ver, &s->session);
|
||||||
|
@ -302,6 +302,11 @@ static int init_out_session(AVFilterContext *ctx)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (err != MFX_ERR_NONE) {
|
||||||
|
av_log(ctx, AV_LOG_ERROR, "Error getting the session handle\n");
|
||||||
|
return AVERROR_UNKNOWN;
|
||||||
|
}
|
||||||
|
|
||||||
/* create a "slave" session with those same properties, to be used for
|
/* create a "slave" session with those same properties, to be used for
|
||||||
* actual scaling */
|
* actual scaling */
|
||||||
err = MFXInit(impl, &ver, &s->session);
|
err = MFXInit(impl, &ver, &s->session);
|
||||||
|
Loading…
Reference in New Issue
Block a user