summaryrefslogtreecommitdiffstats
path: root/libhb/qsv_libav.h
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-12-09 08:57:34 -0800
committerJohn Stebbins <[email protected]>2016-12-17 07:28:51 -0800
commita4a6332a90b21eb246b5147dc3285b36cd6f631e (patch)
treee7085c7b1ebfd3128189397d3cffabe4cb538fda /libhb/qsv_libav.h
parent85a1e94e356df5ad8bca2b73b197e87aabf59fe6 (diff)
qsv: fix more compiler warnings
Diffstat (limited to 'libhb/qsv_libav.h')
-rw-r--r--libhb/qsv_libav.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libhb/qsv_libav.h b/libhb/qsv_libav.h
index 3a1ebf7bf..779571022 100644
--- a/libhb/qsv_libav.h
+++ b/libhb/qsv_libav.h
@@ -150,6 +150,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define AV_QSV_DEBUG_ASSERT(x,y) { if ((x)) { fprintf(stderr, "\nASSERT: %s\n", y); } }
#endif
+#define AV_QSV_CHECK_RET(P, X, ERR) {if ((X) > (P)) {AV_QSV_PRINT_RET_MSG(ERR); return;}}
#define AV_QSV_CHECK_RESULT(P, X, ERR) {if ((X) > (P)) {AV_QSV_PRINT_RET_MSG(ERR); return ERR;}}
#define AV_QSV_CHECK_POINTER(P, ERR) {if (!(P)) {AV_QSV_PRINT_RET_MSG(ERR); return ERR;}}
#define AV_QSV_IGNORE_MFX_STS(P, X) {if ((X) == (P)) {P = MFX_ERR_NONE;}}