avutil/utils: run ff_check_pixfmt_descriptors() only when ASSERT_LEVEL is > 0

this safes about 0.1ms

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-12-06 23:51:58 +01:00
parent a044a183a3
commit f52852098d

View File

@ -51,7 +51,9 @@ unsigned avutil_version(void)
av_log(NULL, AV_LOG_ERROR, "Libavutil has been linked to a broken llrint()\n"); av_log(NULL, AV_LOG_ERROR, "Libavutil has been linked to a broken llrint()\n");
} }
#if defined(ASSERT_LEVEL) && ASSERT_LEVEL > 0
ff_check_pixfmt_descriptors(); ff_check_pixfmt_descriptors();
#endif
checks_done = 1; checks_done = 1;
return LIBAVUTIL_VERSION_INT; return LIBAVUTIL_VERSION_INT;
} }