summaryrefslogtreecommitdiffstats
path: root/libhb/fifo.c
diff options
context:
space:
mode:
authorArtem Galin <[email protected]>2020-07-16 12:31:40 +0100
committerScott <[email protected]>2020-07-20 16:56:43 +0100
commit990654edba2cd1fd1c81b28fe60e126ee3ee8ef9 (patch)
tree583cf44c73a1458adaff10ea4271f5ba2e77131b /libhb/fifo.c
parentcf4c834504cdaf23c845d164e0b61237e4159e41 (diff)
qsv: move hw filters flag check into function
Diffstat (limited to 'libhb/fifo.c')
-rw-r--r--libhb/fifo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/fifo.c b/libhb/fifo.c
index 4a75d06bb..14da3a9f2 100644
--- a/libhb/fifo.c
+++ b/libhb/fifo.c
@@ -728,7 +728,7 @@ void hb_buffer_close( hb_buffer_t ** _b )
if(b->qsv_details.frame)
{
mfxFrameSurface1 *surface = (mfxFrameSurface1*)b->qsv_details.frame->data[3];
- if(surface)
+ if(surface && b->qsv_details.ctx)
{
if(b->qsv_details.ctx->qsv_filters_are_enabled)
{