aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhong Li <zhong.li@intel.com>2018-09-30 17:59:52 +0800
committerLuca Barbato <lu_zero@gentoo.org>2018-10-03 11:10:02 +0000
commit21733b39d0af5211d7b9f168ff3667ea86362e2b (patch)
treef1c01f24294f79bcfa32f0bd547edc4869f4239a
parenta2041a6522642859ce64af1c618d6fb90a50d4af (diff)
downloadffmpeg-21733b39d0af5211d7b9f168ff3667ea86362e2b.tar.gz
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>
-rw-r--r--libavutil/hwcontext_qsv.c2
1 files changed, 1 insertions, 1 deletions
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