mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
lavu/qsv: fix a random hwupload failure regression
Variable 'ret' hasn't been initialized,thus introducing a random hwupload failure regression due to qsv session uninitialized. Signed-off-by: Zhong Li <zhong.li@intel.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
parent
a2041a6522
commit
21733b39d0
@ -833,7 +833,7 @@ static int qsv_transfer_data_to(AVHWFramesContext *ctx, AVFrame *dst,
|
|||||||
|
|
||||||
mfxSyncPoint sync = NULL;
|
mfxSyncPoint sync = NULL;
|
||||||
mfxStatus err;
|
mfxStatus err;
|
||||||
int ret;
|
int ret = 0;
|
||||||
|
|
||||||
while (!s->session_upload_init && !s->session_upload && !ret) {
|
while (!s->session_upload_init && !s->session_upload && !ret) {
|
||||||
#if HAVE_PTHREADS
|
#if HAVE_PTHREADS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user