summaryrefslogtreecommitdiff
path: root/libavcodec/vdpau.c
diff options
context:
space:
mode:
authorClément Bœsch <clement@stupeflix.com>2016-06-21 15:24:59 +0200
committerClément Bœsch <clement@stupeflix.com>2016-06-21 15:26:20 +0200
commitc01f1157acbec4274a38a728cf7fa9731ef23d82 (patch)
tree72d4fd691fdab418e75e05963b4e2a7e86fb7539 /libavcodec/vdpau.c
parent82439dec0fbf8a31159327ddf57096a0013109b9 (diff)
parent0f40c9098498ad90dbbd2380eb4269015e84bde4 (diff)
downloadffmpeg-c01f1157acbec4274a38a728cf7fa9731ef23d82.tar.gz
Merge commit '0f40c9098498ad90dbbd2380eb4269015e84bde4'
* commit '0f40c9098498ad90dbbd2380eb4269015e84bde4': Drop pointless assert.h #includes Merged-by: Clément Bœsch <clement@stupeflix.com>
Diffstat (limited to 'libavcodec/vdpau.c')
-rw-r--r--libavcodec/vdpau.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/libavcodec/vdpau.c b/libavcodec/vdpau.c
index 057f907927..1d4c1ce743 100644
--- a/libavcodec/vdpau.c
+++ b/libavcodec/vdpau.c
@@ -22,19 +22,26 @@
*/
#include <limits.h>
-#include "libavutil/avassert.h"
+
#include "avcodec.h"
#include "internal.h"
#include "h264.h"
#include "vc1.h"
-
-#undef NDEBUG
-#include <assert.h>
-
#include "vdpau.h"
#include "vdpau_compat.h"
#include "vdpau_internal.h"
+// XXX: at the time of adding this ifdefery, av_assert* wasn't use outside.
+// When dropping it, make sure other av_assert* were not added since then.
+#if FF_API_BUFS_VDPAU
+#include "libavutil/avassert.h"
+#endif
+
+#if FF_API_VDPAU
+#undef NDEBUG
+#include <assert.h>
+#endif
+
/**
* @addtogroup VDPAU_Decoding
*