Skip to content
Snippets Groups Projects
Commit 21733b39 authored by Zhong Li's avatar Zhong Li Committed by Luca Barbato
Browse files

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: default avatarZhong Li <zhong.li@intel.com>
Signed-off-by: default avatarLuca Barbato <lu_zero@gentoo.org>
parent a2041a65
No related branches found
No related tags found
No related merge requests found
...@@ -833,7 +833,7 @@ static int qsv_transfer_data_to(AVHWFramesContext *ctx, AVFrame *dst, ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment