From 21733b39d0af5211d7b9f168ff3667ea86362e2b Mon Sep 17 00:00:00 2001 From: Zhong Li Date: Sun, 30 Sep 2018 17:59:52 +0800 Subject: 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 Signed-off-by: Luca Barbato --- libavutil/hwcontext_qsv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavutil') diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c index 1887936e33..f550bac572 100644 --- a/libavutil/hwcontext_qsv.c +++ b/libavutil/hwcontext_qsv.c @@ -833,7 +833,7 @@ static int qsv_transfer_data_to(AVHWFramesContext *ctx, AVFrame *dst, mfxSyncPoint sync = NULL; mfxStatus err; - int ret; + int ret = 0; while (!s->session_upload_init && !s->session_upload && !ret) { #if HAVE_PTHREADS -- cgit v1.2.3