Commit f5285209 authored by Michael Niedermayer's avatar Michael Niedermayer

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

this safes about 0.1ms
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a044a183
......@@ -51,7 +51,9 @@ unsigned avutil_version(void)
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();
#endif
checks_done = 1;
return LIBAVUTIL_VERSION_INT;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment