diff options
Diffstat (limited to 'libhb/vadxva2.c')
-rw-r--r-- | libhb/vadxva2.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/libhb/vadxva2.c b/libhb/vadxva2.c index 98ff41dcc..d173d4a08 100644 --- a/libhb/vadxva2.c +++ b/libhb/vadxva2.c @@ -10,14 +10,12 @@ Li Cao <[email protected]> <http://www.multicorewareinc.com/> */ -#include "vadxva2.h" -#ifdef USE_OPENCL +#ifdef USE_HWD + +#include "vadxva2.h" #include "extras/cl.h" #include "oclnv12toyuv.h" -#endif - -#ifdef USE_HWD static int hb_va_setup( hb_va_dxva2_t *dxva2, void **hw, int width, int height ); static int hb_va_get( hb_va_dxva2_t *dxva2, AVFrame *frame ); @@ -112,12 +110,11 @@ void hb_va_close( hb_va_dxva2_t *dxva2 ) if( dxva2->hd3d9_dll ) FreeLibrary( dxva2->hd3d9_dll ); -#ifdef USE_OPENCL if ( dxva2->nv12toyuv_tmp_in ) free( dxva2->nv12toyuv_tmp_in ); if ( dxva2->nv12toyuv_tmp_out ) free( dxva2->nv12toyuv_tmp_out ); -#endif + dxva2->description = NULL; free( dxva2 ); } @@ -775,4 +772,5 @@ int hb_check_hwd_fmt( int fmt ) } return result; } -#endif + +#endif // USE_HWD |