From 87872280813589805b91f08385ade60363f53aad Mon Sep 17 00:00:00 2001 From: midzer Date: Wed, 19 Oct 2016 20:56:01 +0200 Subject: qsv: Fix possible null pointer dereference. --- libhb/qsv_filter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libhb/qsv_filter.c b/libhb/qsv_filter.c index 56116fbd2..1a676ee2b 100644 --- a/libhb/qsv_filter.c +++ b/libhb/qsv_filter.c @@ -599,14 +599,14 @@ static int hb_qsv_filter_work( hb_filter_object_t * filter, hb_buffer_t * out = *buf_out; int sts = 0; - av_qsv_context* qsv = pv->job->qsv.ctx; - if ( !pv ) { *buf_out = in; *buf_in = NULL; return HB_FILTER_OK; } + + av_qsv_context* qsv = pv->job->qsv.ctx; while(1) { -- cgit v1.2.3