summaryrefslogtreecommitdiffstats
path: root/libhb/cropscale.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/cropscale.c')
-rw-r--r--libhb/cropscale.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libhb/cropscale.c b/libhb/cropscale.c
index 15c04c4bb..d1ef0f9bb 100644
--- a/libhb/cropscale.c
+++ b/libhb/cropscale.c
@@ -245,19 +245,19 @@ static int hb_crop_scale_work( hb_filter_object_t * filter,
}
/* OpenCL/DXVA2 */
- if ((!pv->use_decomb && !pv->use_detelecine &&
+ if ((!pv->use_dxva &&
!pv->crop[0] && !pv->crop[1] && !pv->crop[2] && !pv->crop[3] &&
in->f.fmt == pv->pix_fmt_out && in->f.width == pv->width_out &&
- in->f.height == pv->height_out) || (pv->use_dxva &&
- in->f.width == pv->width_out &&
- in->f.height == pv->height_out))
+ in->f.height == pv->height_out) ||
+ (pv->use_dxva && !pv->use_decomb && !pv->use_detelecine &&
+ in->f.width == pv->width_out && in->f.height == pv->height_out))
{
*buf_out = in;
*buf_in = NULL;
return HB_FILTER_OK;
}
- *buf_out = crop_scale( pv, in );
+ *buf_out = crop_scale(pv, in);
return HB_FILTER_OK;
}